Samond Classes Library 1.2.0-RELEASE build 166
|
Standard class NSDate functionality extending category. More...
#import <SCDate.h>
Serialized Files Support | |
(NSDate *) | + dateWithCoder: |
(NSDate *) | + dateWithContentsOfSerializedFile: |
(id) | - initWithContentsOfSerializedFile: |
(BOOL) | - writeContentsToSerializedFile: |
Data Dictionaries Support | |
(NSDate *) | + dateWithDataDictionary: |
(NSDate *) | + dateWithDataDictionaryFromFile: |
(id) | - initWithDataDictionary: |
(id) | - initWithDataDictionaryFromFile: |
(void) | - writeToDataDictionary: |
(void) | - writeToDataDictionaryFile:atomically: |
(void) | - writeToDataDictionaryFile: |
(NSDictionary *) | - dataDictionary |
Streams Support | |
(NSDate *) | + dateWithStream: |
(NSDate *) | + dateWithFileStream: |
(id) | - initWithStream: |
(id) | - initWithFileStream: |
(void) | - writeToStream: |
(void) | - writeToFileStream: |
(void) | - appendToFileStream: |
Collections Support | |
(id< SCCollectioning >) | - copyObject |
(SCComparisonResult) | - compareWithObject: |
Additional Inherited Members | |
![]() | |
![]() | |
![]() |
Standard class NSDate functionality extending category.
Declares the additional methods for add into the standard class NSDate the additional functionality, such as dictionaries, collections and streans support and so on.
- (void) appendToFileStream: | (NSString *) | path |
Appends the receiving date to the file stream with the specified path.
path | - the path to the destination file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented from <SCStreaming>.
- (SCComparisonResult) compareWithObject: | (id<SCCollectioning>) | object |
Returns the result of comparison the receiving date with a given another class instance.
object | - the second class instance for comparison |
Reimplemented from <SCCollectioning>.
- (id< SCCollectioning >) copyObject |
Returns a copy of the receiving date.
Reimplemented from <SCCollectioning>.
- (NSDictionary *) dataDictionary |
Returns the dictionary with the receiving date.
Reimplemented from <SCDictionaring>.
+ (NSDate *) dateWithCoder: | (NSCoder *) | coder |
Returns a date created by using the data from the specified coder.
coder | - the source coder |
+ (NSDate *) dateWithContentsOfSerializedFile: | (NSString *) | path |
Returns a date created by using the data from the serialized file with the specified path.
path | - the path to the serialized file |
+ (NSDate *) dateWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a date created by using the data from the specified data dictionary.
dictionary | - the source data dictionary |
+ (NSDate *) dateWithDataDictionaryFromFile: | (NSString *) | path |
Returns a date created by using the data from the dictionary file with the specified path.
path | - the path to the source dictionary file |
+ (NSDate *) dateWithFileStream: | (NSString *) | path |
Returns a date created by 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 |
+ (NSDate *) dateWithStream: | (SCStream *) | stream |
Returns a date created by using the data from the specified stream.
stream | - the source stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
- (id) initWithContentsOfSerializedFile: | (NSString *) | path |
Initializes a date using the data from the serialized file with the specified path.
path | - the path to the serialized file |
Reimplemented from <SCCoding>.
- (id) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes a date using the data from the specified data dictionary.
dictionary | - the source data dictionary |
Reimplemented from <SCDictionaring>.
- (id) initWithDataDictionaryFromFile: | (NSString *) | path |
Initializes a date using the data from the dictionary file with the specified path.
path | - the path to the source dictionary file |
Reimplemented from <SCDictionaring>.
- (id) initWithFileStream: | (NSString *) | path |
Initializes a date 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 |
Reimplemented from <SCStreaming>.
- (id) initWithStream: | (SCStream *) | stream |
Initializes a date using the data from the specified stream.
stream | - the source stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented from <SCStreaming>.
- (BOOL) writeContentsToSerializedFile: | (NSString *) | path |
Writes the receiving date to the serialized file with the specified path.
path | - the path to the serialized file |
Reimplemented from <SCCoding>.
- (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the receiving date into the specified data dictionary.
dictionary | - the dictionary to store the receiving class instance |
Reimplemented from <SCDictionaring>.
- (void) writeToDataDictionaryFile: | (NSString *) | path |
Writes the receiving date into the data dictionary file with the specified path.
path | - the path to the data dictionary file |
Reimplemented from <SCDictionaring>.
- (void) writeToDataDictionaryFile: | (NSString *) | path | |
atomically: | (BOOL) | atomically | |
Writes the receiving date 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 from <SCDictionaring>.
- (void) writeToFileStream: | (NSString *) | path |
Writes the receiving date to the file stream with the specified path.
path | - the path to the destination file stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented from <SCStreaming>.
- (void) writeToStream: | (SCStream *) | stream |
Writes the receiving date to the specified stream.
stream | - the destination stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
Reimplemented from <SCStreaming>.