FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSData(Serialization) Category Reference

NSData serialization/deserialization extension collection. More...

#import <NSData.h>

Instance Methods

Property list
(id) - propertyListObjectUsingFormat:error:
 Deserialize property list data to object. More...
 

Hexadecimal

(NSString *) - hexadecimalString
 Serialized string in hexadecimal format. More...
 
(instancetype) - initWithHexadecimalString:
 Initialize with deserialized data from hexadecimal string. More...
 
(instancetype) + dataWithHexadecimalString:
 Creates and returns deserialized data from hexadecimal string. More...
 

Detailed Description

NSData serialization/deserialization extension collection.

Method Documentation

+ (instancetype) dataWithHexadecimalString: (NSString *)  hexadecimal

Creates and returns deserialized data from hexadecimal string.

See also
- initWithHexadecimalString:
- (NSString *) hexadecimalString

Serialized string in hexadecimal format.

Returns
Hexadecimal string.
- (instancetype) initWithHexadecimalString: (NSString *)  hexadecimal

Initialize with deserialized data from hexadecimal string.

Parameters
hexadecimalHexadecimal string.
- (id) propertyListObjectUsingFormat: (NSPropertyListFormat *)  format
error: (NSError **)  error 

Deserialize property list data to object.

Parameters
formatA property list format. Possible values for format are described in 'NSPropertyListFormat'.
errorIf the method does not complete successfully, upon return contains an NSError object that describes the problem.
Returns
Property list object. Usually NSArray or NSDictionary.
See also
NSPropertyListSerialization propertyListWithData:options:format:error:

The documentation for this category was generated from the following file: