|
Samond Classes Library 1.1.6-RELEASE build 132
|
Additional functionality for class NSNull. More...
#import <SCNull.h>
Public Member Functions | |
Supporting Data Dictionaries | |
| (void) | - writeToDataDictionary: |
| (void) | - writeToDataDictionaryFile:atomically: |
| (void) | - writeToDataDictionaryFile: |
| (NSDictionary *) | - dataDictionary |
Supporting Coders and Serialized Files | |
| (BOOL) | - writeContentsToSerializedFile: |
Supporting Collections | |
| (id< SCCollectionProtocol >) | - copyObject |
| (SCComparisonResult) | - compareWithObject: |
| (NSString *) | - className |
Supporting Streams | |
| (void) | - writeToStream: |
| (void) | - writeToFileStream: |
| (void) | - appendToFileStream: |
Creating and Initializing Class Instance | |
| (NSNull *) | + nullWithContentsOfSerializedFile: |
| (NSNull *) | + nullWithDataDictionary: |
| (NSNull *) | + nullWithDataDictionaryFromFile: |
| (NSNull *) | + nullWithCoder: |
| (NSNull *) | + nullWithStream: |
| (NSNull *) | + nullWithFileStream: |
| (id) | - initWithContentsOfSerializedFile: |
| (id) | - initWithDataDictionary: |
| (id) | - initWithDataDictionaryFromFile: |
| (id) | - initWithStream: |
| (id) | - initWithFileStream: |
Additional functionality for class NSNull.
Category SCNull extends functionality of standard class NSNull.
This category was introduced in version 1.1.3.
Category declares the following properties:
| - (void) appendToFileStream: | (NSString *) | path |
Appends the receiver's class instance to the new or existing stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| - (NSString *) className |
Returns the receiver's instance class name.
| - (SCComparisonResult) compareWithObject: | (id<SCCollectionProtocol>) | object |
Returns the result of comparison receiver's instance with the specified instance.
| object | - second instance for comparison |
| SCCollectionException | - incompatible second instance detected |
| - (id< SCCollectionProtocol >) copyObject |
Returns the copy of receiver's instance.
| - (NSDictionary *) dataDictionary |
Returns the dictionary with the receiver's data.
| - (id) initWithContentsOfSerializedFile: | (NSString *) | path |
Initializes the class instance using the contens of serialized file with the specified path.
| path | - source serialized file path |
| - (id) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes the class instance using the specified dictionary.
| dictionary | - source dictionary |
| - (id) initWithDataDictionaryFromFile: | (NSString *) | path |
Initializes the class instance using the dictionary from the specified file.
| path | - source dictionary file path |
| - (id) initWithFileStream: | (NSString *) | path |
Initializes class instance from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| - (id) initWithStream: | (SCStream *) | stream |
Initializes the class instance from the specified stream.
| stream | - stream for reading class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (NSNull *) nullWithCoder: | (NSCoder *) | coder |
Returns the class instance created by using the specified coder.
| coder | - source coder |
| + (NSNull *) nullWithContentsOfSerializedFile: | (NSString *) | path |
Returns the class instance created by using the contens of serialized file with the specified path.
| path | - source serialized file path |
| + (NSNull *) nullWithDataDictionary: | (NSDictionary *) | dictionary |
Returns the class instance created by using the specified dictionary.
| dictionary | - source dictionary |
| + (NSNull *) nullWithDataDictionaryFromFile: | (NSString *) | path |
Returns the class instance created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (NSNull *) nullWithFileStream: | (NSString *) | path |
Returns the class instance created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (NSNull *) nullWithStream: | (SCStream *) | stream |
Returns the class instance created from the specified stream.
| stream | - stream for reading class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) writeContentsToSerializedFile: | (NSString *) | path |
Writes receiver's encoded data into the serialized file with the specified path.
| path | - path at which to write the file |
| - (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the receiver's data into the specified dictionary.
| dictionary | - destination dictionary |
| - (void) writeToDataDictionaryFile: | (NSString *) | path |
Atomically writes the receiver's data into the dictionary file with the specified path.
| path | - path at which to write the file |
| - (void) writeToDataDictionaryFile: | (NSString *) | path | |
| atomically: | (BOOL) | atomically | |
Writes the receiver's data into the dictionary file with the specified path.
| 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 |
| - (void) writeToFileStream: | (NSString *) | path |
Saves the receiver's class instance to the created stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| - (void) writeToStream: | (SCStream *) | stream |
Saves the receiver's class instance to the specified stream.
| stream | - stream for writing receiver's class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
1.7.3