|
Samond Classes Library 1.1.6-RELEASE build 132
|
Additional functionality for class NSNumber. More...
#import <SCNumber.h>
Additional functionality for class NSNumber.
Category SCNumber extends functionality of standard class NSNumber.
This category was introduced in version 1.1.3.
Category declares the following properties:
| - (void) appendToFileStream: | (NSString *) | path |
Appends the receiver's number to the new or existing stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| - (SCByte) byteValue |
Returns the signed 8-bit integer representation of the receiver's number.
| - (NSString *) className |
Returns the receiver's number 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 number.
| - (id) initWithByte: | (SCByte) | byte |
Initializes the number using the specified signed 8-bit integer.
| byte | - source signed 8-bit integer |
| - (id) initWithContentsOfSerializedFile: | (NSString *) | path |
Initializes the number using the contens of serialized file with the specified path.
| path | - source serialized file path |
| - (id) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes the number using the specified dictionary.
| dictionary | - source dictionary |
| SCNumberException | - unsupported NSNumber type |
| - (id) initWithDataDictionaryFromFile: | (NSString *) | path |
Initializes the number using the dictionary from the specified file.
| path | - source dictionary file path |
| SCNumberException | - unsupported NSNumber type |
| - (id) initWithFileStream: | (NSString *) | path |
Initializes the number from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| - (id) initWithNumber: | (NSNumber *) | number |
Initializes the number using the specified existing number.
| number | - existing number |
| - (id) initWithStream: | (SCStream *) | stream |
Initializes the number from the specified stream.
| stream | - stream for reading number |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (id) initWithUnsignedByte: | (SCUByte) | byte |
Initializes the number using the specified unsigned 8-bit integer.
| byte | - source signed 8-bit integer |
| - (BOOL) isEqualToBool: | (BOOL) | boolean |
Compares the reciver's number with the specified boolean variable.
| boolean | - variable to compare |
| - (BOOL) isEqualToByte: | (SCByte) | byte |
Compares the receiver's number with the signed 8-bit integer variable.
| byte | - variable to compare |
| - (BOOL) isEqualToChar: | (char) | chr |
Compares the reciver's number with the specified char variable.
| chr | - variable to compare |
| - (BOOL) isEqualToDouble: | (SCDouble) | dbl |
Compares the receiver's number with the specified double precision float variable.
| dbl | - variable to compare |
| - (BOOL) isEqualToFloat: | (SCFloat) | flt |
Compares the receiver's number with the specified single precision float variable.
| flt | - variable to compare |
| - (BOOL) isEqualToInt: | (SCInteger) | integer |
Compares the receiver's number with the signed 32-bit integer variable.
| integer | - variable to compare |
| - (BOOL) isEqualToLongLong: | (SCLong) | longint |
Compares the receiver's number with the signed 64-bit integer variable.
| longint | - variable to compare |
| - (BOOL) isEqualToShort: | (SCShort) | sht |
Compares the receiver's number with the signed 16-bit integer variable.
| sht | - variable to compare |
| - (BOOL) isEqualToUnsignedByte: | (SCUByte) | byte |
Compares the receiver's number with the unsigned 8-bit integer variable.
| byte | - variable to compare |
| - (BOOL) isEqualToUnsignedInt: | (SCUInteger) | integer |
Compares the receiver's number with the unsigned 32-bit integer variable.
| integer | - variable to compare |
| - (BOOL) isEqualToUnsignedLongLong: | (SCULong) | longint |
Compares the receiver's number with the unsigned 64-bit integer variable.
| longint | - variable to compare |
| - (BOOL) isEqualToUnsignedShort: | (SCUShort) | sht |
Compares the receiver's number with the unsigned 16-bit integer variable.
| sht | - variable to compare |
| + (NSNumber *) numberWithByte: | (SCByte) | byte |
Returns the number created by using the specified signed 8-bit integer.
| byte | - source signed 8-bit integer |
| + (NSNumber *) numberWithContentsOfSerializedFile: | (NSString *) | path |
Returns a number created by using the contents of serialized file with the specified path.
| path | - source serialized file path |
| + (NSNumber *) numberWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a number created by using the specified dictionary.
| dictionary | - source dictionary |
| SCNumberException | - unsupported NSNumber type |
| + (NSNumber *) numberWithDataDictionaryFromFile: | (NSString *) | path |
Returns a number created by using the dictionary from the specified file.
| path | - source dictionary file path |
| SCNumberException | - unsupported NSNumber type |
| + (NSNumber *) numberWithFileStream: | (NSString *) | path |
Returns the number created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (NSNumber *) numberWithNumber: | (NSNumber *) | number |
Returns the number created by using the specified existing number.
| number | - existing number |
| + (NSNumber *) numberWithStream: | (SCStream *) | stream |
Returns the number created from the specified stream.
| stream | - stream for reading number |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| + (NSNumber *) numberWithUnsignedByte: | (SCUByte) | byte |
Returns the number created by using the specified signed 8-bit integer.
| byte | - source signed 8-bit integer |
| - (SCStandardType) type |
Returns the number data type.
| - (SCUByte) unsignedByteValue |
Returns the unsigned 8-bit integer representation of the receiver's number.
| - (BOOL) writeContentsToSerializedFile: | (NSString *) | path |
Writes receiver's encoded number into the serialized file with the specified path.
| path | - path at which to write the file |
| - (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the receiver's number into the specified dictionary.
| dictionary | - destination dictionary |
| - (void) writeToDataDictionaryFile: | (NSString *) | path |
Atomically writes the receiver's number 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 number 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 number 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 number to the specified stream.
| stream | - stream for writing receiver's number |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
1.7.3