Samond Classes Library 1.2.6-STABLE build 219
|
Protocol of methods for data exchanging between class instances and classes NSDictionary and NSMutableDictionary. More...
#import <SCDictionaring.h>
Instance Properties | |
NSString * | className |
Data Dictionaries Support | |
(instancetype) | - initWithDataDictionary: |
(instancetype) | - initWithDataDictionaryFromFile: |
(void) | - writeToDataDictionary: |
(void) | - writeToDataDictionaryFile:atomically: |
(void) | - writeToDataDictionaryFile: |
(NSDictionary *) | - dataDictionary |
Protocol of methods for data exchanging between class instances and classes NSDictionary and NSMutableDictionary.
Declares the methods, which are required for reading and writing data from and to instances of the classes NSDictionary and NSMutableDictionary. Also protocol describes the methods for initialing the class instances by using the data from the dictionaries and property lists.
- (NSDictionary *) dataDictionary |
Returns the data dictionary with the receiving class instance data.
Reimplemented in NSObject(SCObject).
- (instancetype) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes a class instance by using the data from the specified data dictionary.
dictionary | - the source data dictionary |
Reimplemented in NSObject(SCObject).
- (instancetype) initWithDataDictionaryFromFile: | (NSString *) | path |
Initializes a class instance by using the data from the specified data dictionary file.
path | - the path to the data dictionary file |
Reimplemented in NSObject(SCObject).
- (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the receiving class instance into the specified data dictionary.
dictionary | - the data dictionary for storing the receiving class instance |
Reimplemented in NSObject(SCObject).
- (void) writeToDataDictionaryFile: | (NSString *) | path |
Writes the receiving class instance into the data dictionary file with the specified path and using the intermediate file.
path | - the path to the data dictionary file |
Reimplemented in NSObject(SCObject).
- (void) writeToDataDictionaryFile: | (NSString *) | path | |
atomically: | (BOOL) | atomically | |
Writes the receiving class instance into the data dictionary file with the specified path.
path | - the path to the data dictionary file |
atomically | - YES for using the intermediate file and NO for direct writing operation |
Reimplemented in NSObject(SCObject).
|
readnonatomiccopy |
A name of the receiving instance class