|
Samond Classes Library 1.1.6-RELEASE build 132
|
Additional functionality for class NSDictionary. More...
#import <SCNSDictionary.h>
Additional functionality for class NSDictionary.
Category SCNSDictionary extends functionality of standard class NSDictionary.
This category was introduced in version 1.1.3.
Category declares the following properties:
| - (void) appendToFileStream: | (NSString *) | path |
Appends the dictionary 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 dictionary class name.
| - (SCComparisonResult) compareWithObject: | (id<SCCollectionProtocol>) | object |
Returns the result of comparison receiver's dictionary with the specified dictionarey.
| object | - second dictionary for comparison |
| SCCollectionException | - incompatible second dictionary detected |
| - (id< SCCollectionProtocol >) copyObject |
Returns the copy of the dictionary.
| - (NSDictionary *) dataDictionary |
Returns the dictionary with the dictionary data.
| + (NSDictionary *) dictionaryWithCoder: | (NSCoder *) | coder |
Returns the dictionary created by using the specified coder.
| coder | - source coder |
| + (NSDictionary *) dictionaryWithContentsOfSerializedFile: | (NSString *) | path |
Returns the dictionary created by using the contens of serialized file with the specified path.
| path | - source serialized file path |
| + (NSDictionary *) dictionaryWithDataDictionary: | (NSDictionary *) | dictionary |
Returns the dictionary created by using the specified dictionary.
| dictionary | - source dictionary |
| + (NSDictionary *) dictionaryWithDataDictionaryFromFile: | (NSString *) | path |
Returns the dictionary created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (NSDictionary *) dictionaryWithFileStream: | (NSString *) | path |
Returns the dictionary created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (NSDictionary *) dictionaryWithStream: | (SCStream *) | stream |
Returns the dictionary created from the specified stream.
| stream | - stream for reading class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithContentsOfSerializedFile: | (NSString *) | path |
Initializes the dictionary using the contens of serialized file with the specified path.
| path | - source serialized file path |
| - (id) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes the dictionary using the specified dictionary.
| dictionary | - source dictionary |
| - (id) initWithDataDictionaryFromFile: | (NSString *) | path |
Initializes the dictionary using the dictionary from the specified file.
| path | - source dictionary file path |
| - (id) initWithFileStream: | (NSString *) | path |
Initializes dictionary from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| - (id) initWithStream: | (SCStream *) | stream |
Initializes the dictionary from the specified stream.
| stream | - stream for reading class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) isArray |
Returns a boolean value that indicates whether a receiving instance is an array.
| - (BOOL) isCollection |
Returns a boolean value that indicates whether a receiving instance is a collection.
| - (BOOL) isDictionary |
Returns a boolean value that indicates whether a receiving instance is a dictionary.
| - (BOOL) isFoundationArray |
Returns a boolean value that indicates whether a receiving instance is a foundation array.
| - (BOOL) isFoundationCollection |
Returns a boolean value that indicates whether a receiving instance is a foundation collection.
| - (BOOL) isFoundationDictionary |
Returns a boolean value that indicates whether a receiving instance is a foundation dictionary.
| - (BOOL) isFoundationOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a foundation ordered set.
| - (BOOL) isFoundationSet |
Returns a boolean value that indicates whether a receiving instance is a foundation set.
| - (BOOL) isLibraryArray |
Returns a boolean value that indicates whether a receiving instance is a library array.
| - (BOOL) isLibraryCollection |
Returns a boolean value that indicates whether a receiving instance is a library collection.
| - (BOOL) isLibraryDictionary |
Returns a boolean value that indicates whether a receiving instance is a library dictionary.
| - (BOOL) isLibraryOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a library ordered set.
| - (BOOL) isLibrarySet |
Returns a boolean value that indicates whether a receiving instance is a library set.
| - (BOOL) isList |
Returns a boolean value that indicates whether a receiving instance is a list.
| - (BOOL) isOrderedSet |
Returns a boolean value that indicates whether a receiving instance is an ordered set.
| - (BOOL) isQueue |
Returns a boolean value that indicates whether a receiving instance is a queue.
| - (BOOL) isSet |
Returns a boolean value that indicates whether a receiving instance is a set.
| - (BOOL) isSortable |
Returns a boolean value that indicates whether a receiving instance is a sortable collection.
| - (BOOL) isStack |
Returns a boolean value that indicates whether a receiving instance is a stack.
| - (BOOL) writeContentsToSerializedFile: | (NSString *) | path |
Writes dictionary encoded data into the serialized file with the specified path.
| path | - path at which to write the file |
| - (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the dictionary data into the specified dictionary.
| dictionary | - destination dictionary |
| - (void) writeToDataDictionaryFile: | (NSString *) | path |
Atomically writes the dictionary 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 dictionary 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 dictionary 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 dictionary to the specified stream.
| stream | - stream for writing dictionary |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
1.7.3