Samond Classes Library 1.1.6-RELEASE build 132
Public Member Functions

<SCDictionaryObjectProtocol> Protocol Reference

Data exchange with NSDictionary and NSMutableDictionary classes. More...

#import <SCDictionaryObjectProtocol.h>

Inheritance diagram for <SCDictionaryObjectProtocol>:
SCObject SCCollection SCCommon SCConfig SCDelegateObject SCLog SCNetObject SCServiceObject SCSortingAlgorithm SCStream SCStrings

List of all members.

Public Member Functions

(id) - initWithDataDictionary:
(id) - initWithDataDictionaryFromFile:
(void) - writeToDataDictionary:
(void) - writeToDataDictionaryFile:atomically:
(void) - writeToDataDictionaryFile:
(NSDictionary *) - dataDictionary
(NSString *) - className

Detailed Description

Data exchange with NSDictionary and NSMutableDictionary classes.

Protocol declares methods for data reading from and writing to NSDictionary and NSMutableDictionary classes instances. Also protocol declares methods for initializing objects from dictionaries and property lists.
Protocol was introduced in version 1.1.3.


Member Function Documentation

- (NSString *) className

Returns the receiver's instance class name.

Returns:
Class name

Reimplemented in SCObject.

- (NSDictionary *) dataDictionary

Returns the dictionary with the receiver's data.

Returns:
Dictionary with the receiver's data

Reimplemented in SCObject.

- (id) initWithDataDictionary: (NSDictionary *)  dictionary

Initializes the class instance using the specified dictionary.

Parameters:
dictionary- source dictionary
Returns:
A newly initialized class instance

Reimplemented in SCObject.

- (id) initWithDataDictionaryFromFile: (NSString *)  path

Initializes the class instance using the dictionary from the specified file.

Parameters:
path- source dictionary file path
Returns:
A newly initialized class instance

Reimplemented in SCObject.

- (void) writeToDataDictionary: (NSMutableDictionary *)  dictionary

Writes the receiver's data into the specified dictionary.

Parameters:
dictionary- destination dictionary

Reimplemented in SCObject.

- (void) writeToDataDictionaryFile: (NSString *)  path

Atomically writes the receiver's data into the dictionary file with the specified path.

Parameters:
path- path at which to write the file

Reimplemented in SCObject.

- (void) writeToDataDictionaryFile: (NSString *)  path
atomically: (BOOL)  atomically 

Writes the receiver's data into the dictionary file with the specified path.

Parameters:
path- path at which to write the file
atomically- YES for writing data to an auxiliary file, and then the auxiliary file is renamed to path, NO for writing data directly to path

Reimplemented in SCObject.


The documentation for this protocol was generated from the following file:
 All Classes Files Functions Typedefs Enumerations Enumerator Defines