Samond Classes Library 1.2.6-STABLE build 219
|
Parent class of all library classes. More...
#import <SCObject.h>
Instance Properties | |
NSString * | className |
Serialized Files Support | |
(instancetype) | - initWithCoder: |
(instancetype) | - initWithContentsOfSerializedFile: |
(void) | - encodeWithCoder: |
(BOOL) | - writeContentsToSerializedFile: |
Data Dictionaries Support | |
(instancetype) | - initWithDataDictionary: |
(instancetype) | - initWithDataDictionaryFromFile: |
(void) | - writeToDataDictionary: |
(void) | - writeToDataDictionaryFile:atomically: |
(void) | - writeToDataDictionaryFile: |
(NSDictionary *) | - dataDictionary |
Streams Support | |
(instancetype) | - initWithStream: |
(instancetype) | - initWithFileStream: |
(void) | - writeToStream: |
(void) | - writeToFileStream: |
(void) | - appendToFileStream: |
Collections Support | |
(id) | - copyObject |
(SCComparisonResult) | - compareWithObject: |
Comparing Objects | |
(BOOL) | - isEqual: |
Interaction with Data Objects | |
(instancetype) | - initWithData: |
(instancetype) | - initWithDataWrapper: |
(instancetype) | - initWithContentsOfFile: |
(instancetype) | - initWithContentsOfURL: |
(instancetype) | - initWithContentsOfURLString: |
(void) | - writeToData: |
(BOOL) | - writeToFile: |
(BOOL) | - writeToURL: |
(BOOL) | - writeToURLString: |
(NSData *) | - data |
Parent class of all library classes.
Defines the methods, which are using for communicate with the serialized files, collections, streams and dictionaries.
- (void) appendToFileStream: | (NSString *) | path |
Appends the class instance data into the file stream with the specified path.
path | - the path to the output file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
- (SCComparisonResult) compareWithObject: | (id<SCCollectioning>) | object |
Returns the result of comparison the receiving instance with the specified instance.
object | - second instance for comparison |
- (id) copyObject |
Returns the copy of the receiving instance.
- (NSData *) data |
Returns the data object with the receiving class instance.
- (NSDictionary *) dataDictionary |
Returns the data dictionary with the receiving class instance data.
- (void) encodeWithCoder: | (NSCoder *) | coder |
Writes the receiving class instance data into the specified coder.
coder | - the coder to write class instance data |
- (instancetype) initWithCoder: | (NSCoder *) | coder |
Initializes a class instance by using the data from the specified source coder.
coder | - the source coder |
- (instancetype) initWithContentsOfFile: | (NSString *) | path |
Initializes a class instance using the data from the file with the specified path.
path | - the path to the source file |
- (instancetype) initWithContentsOfSerializedFile: | (NSString *) | path |
Initializes a class instance by using the content of the serialized file with the specified path.
path | - the path to the source serialized file |
- (instancetype) initWithContentsOfURL: | (NSURL *) | url |
Initializes a class instance using the data from the specified URL.
url | - the source URL |
- (instancetype) initWithContentsOfURLString: | (NSString *) | urlString |
Initializes a class instance using the data from the specified URL string.
urlString | - the source URL string |
- (instancetype) initWithData: | (NSData *) | data |
Initializes a class instance using the specified data object.
data | - the source data object |
Reimplemented in SCData.
- (instancetype) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes a class instance by using the data from the specified data dictionary.
dictionary | - the source data dictionary |
- (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 |
- (instancetype) initWithDataWrapper: | (SCData *) | data |
Initializes a class instance using the specified data object wrapper.
data | - the data object wrapper |
- (instancetype) initWithFileStream: | (NSString *) | path |
Initializes the class instance using the data from the file stream with the specified path.
path | - the path to the source file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
- (instancetype) initWithStream: | (SCStream *) | stream |
Initializes the class instance using the data from the specified stream.
stream | - the source stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
- (BOOL) isEqual: | (id) | object |
Returns a boolean value that indicates whether the receiving class instance is equal to an another given class instance.
object | - the class instance with which to compare the receiving class instance |
Reimplemented in SCCollection, SCRuntimeProperty, SCStrings, SCRuntimeMethod, SCRuntimeUnregisteredClass, SCRuntimeVariable, SCRuntimeProtocol, and SCTextIndex.
- (BOOL) writeContentsToSerializedFile: | (NSString *) | path |
Writes the receiving class instance into the serialized file with the specified path.
path | - the path to the serialized file |
- (void) writeToData: | (NSMutableData *) | data |
Writes the receiving class instance into the specified data object.
data | - the destination data object |
- (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the receiving class instance into the specified data dictionary.
dictionary | - the data dictionary for storing the receiving class instance |
- (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 |
- (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 |
- (BOOL) writeToFile: | (NSString *) | path |
Writes the receiving class instance into the file with the specified path.
path | - the path of the destination file |
- (void) writeToFileStream: | (NSString *) | path |
Writes the class instance data into the file stream with the specified path.
path | - the path to the output file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
- (void) writeToStream: | (SCStream *) | stream |
Writes the class instance data into the specified stream.
stream | - the output stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
- (BOOL) writeToURL: | (NSURL *) | url |
Writes the receiving class instance into the specified URL.
url | - the destination URL |
- (BOOL) writeToURLString: | (NSString *) | urlString |
Writes the receiving class instance into the specified URL string.
urlString | - the destination URL string |
|
readnonatomiccopy |
A name of the receiving instance class