|
Samond Classes Library 1.1.6-RELEASE build 132
|
Keyed and tree objects collection. More...
#import <SCDictionary.h>
Keyed and tree objects collection.
Class represents the collection, which gets access to objects by key strings and can stores items in tree mode.
Class was introduced in version 1.1.3.
Class declares the following properties:
| - (SCArray *) allKeys |
Returns an array containing the dictionary's keys.
| - (SCArray *) allKeysForBool: | (BOOL) | boolean |
Returns an array containing the keys corresponding to all occurences of a given boolean value in the dictionary.
| boolean | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurrences of a given signed 8-bit integer value in the dictionary.
| byte | - value to look for in the dictionary |
| - (SCArray *) allKeysForChar: | (char) | chr |
Returns an array containing the keys corresponding to all occurences of a given char value in the dictionary.
| chr | - value to look for in the dictionary |
| - (SCArray *) allKeysForCharString: | (const char *) | string |
Returns an array containing the keys corresponding to all occurences of a given character string in the dictionary.
| string | - string to look for in the dictionary |
Returns an array containing the keys corresponding to all occurences of a given double precision float value in the dictionary.
| dbl | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurences of a given single precision float value in the dictionary.
| flt | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurrences of a given signed 32-bit integer value in the dictionary.
| integer | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurrences of a given signed 64-bit integer value in the dictionary.
| longint | - value to look for in the dictionary |
| - (SCArray *) allKeysForObject: | (id) | object |
Returns an array containing the keys corresponding to all occurrences of a given object in the dictionary.
| object | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurrences of a given signed 16-bit integer value in the dictionary.
| shortint | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurrences of a given unsigned 8-bit integer value in the dictionary.
| byte | - value to look for in the dictionary |
| - (SCArray *) allKeysForUInteger: | (SCUInteger) | integer |
Returns an array containing the keys corresponding to all occurrences of a given unsigned 32-bit integer value in the dictionary.
| integer | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurrences of a given unsigned 64-bit integer value in the dictionary.
| longint | - value to look for in the dictionary |
| - (SCArray *) allKeysForUnichar: | (unichar) | chr |
Returns an array containing the keys corresponding to all occurences of a given unichar value in the dictionary.
| chr | - value to look for in the dictionary |
Returns an array containing the keys corresponding to all occurrences of a given unsigned 16-bit integer value in the dictionary.
| shortint | - value to look for in the dictionary |
| - (SCArray *) allValues |
Returns an array containing the dictionary's values.
| - (BOOL) boolForKey: | (NSString *) | key |
Returns the boolean value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (BOOL) boolValueForKey: | (NSString *) | key |
Returns the boolean value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCByte) byteForKey: | (NSString *) | key |
Returns the signed 8-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCByte) byteValueForKey: | (NSString *) | key |
Returns the signed 8-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (char) charForKey: | (NSString *) | key |
Returns the char value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (const char *) charStringForKey: | (NSString *) | key |
Returns the character string associated with a given key.
| key | - key for which to return the corresponding string |
| SCCollectionException | - dictionary error detected |
| - (const char *) charStringValueForKey: | (NSString *) | key |
Returns the char string value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (char) charValueForKey: | (NSString *) | key |
Returns the char value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (BOOL) containsAllObjectsForKeys: | (SCArray *) | array |
Returns a Boolean value that indicates whether an object for all keys from the specified array are present in the receiving dictionary.
| array | - array with keys |
| - (BOOL) containsAnyObjectForKeys: | (SCArray *) | array |
Returns a Boolean value that indicates whether an object for at least one key from the specified array is present in the receiving dictionary.
| array | - array with keys |
| - (BOOL) containsNumberForKey: | (NSString *) | key |
Returns a Boolean value that indicates whether a number for the given key is present in the receiving dictionary.
| key | - key for desired number |
| - (BOOL) containsObjectForKey: | (NSString *) | key |
Returns a Boolean value that indicates whether an object for the given key is present in the receiving dictionary.
| key | - key for desired object |
| - (BOOL) containsStringForKey: | (NSString *) | key |
Returns a Boolean value that indicates whether a string for the given key is present in the receiving dictionary.
| key | - key for desired string |
| + (SCDictionary *) dictionary |
Returns the dictionary created by using the default settings.
Reimplemented from SCCollection.
| - (NSString *) dictionaryName |
Returns the name of the receiving dictionary.
| + (SCDictionary *) dictionaryWithCoder: | (NSCoder *) | coder |
Returns a dictionary created by using the specified coder.
| coder | - source coder |
| + (SCDictionary *) dictionaryWithCollection: | (id) | collection |
Returns the dictionary created by using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - dictionary error detected |
| + (SCDictionary *) dictionaryWithContentsOfSerializedFile: | (NSString *) | path |
Returns a dictionary created by using the contents of serialized file with the specified path.
| path | - source serialized file path |
| + (SCDictionary *) dictionaryWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a dictionary created by using the specified dictionary.
| dictionary | - source dictionary |
| + (SCDictionary *) dictionaryWithDataDictionaryFromFile: | (NSString *) | path |
Returns a dictionary created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (SCDictionary *) dictionaryWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Returns the dictionary created by using the specified delegate object.
| delegate | - delegate object |
| + (SCDictionary *) dictionaryWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Returns the dictionary created by using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - dictionary error detected |
| + (SCDictionary *) dictionaryWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Returns the dictionary created by using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing source object |
| SCCollectionException | - dictionary error detected |
| + (SCDictionary *) dictionaryWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Returns the dictionary created by using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - dictionary error detected |
| + (SCDictionary *) dictionaryWithDictionary: | (SCDictionary *) | dictionary |
Returns the dictionary created by using the existing dictionary.
| dictionary | - source dictionary |
| SCCollectionError | - dictionary error detected |
| + (SCDictionary *) dictionaryWithDictionaryName: | (NSString *) | name |
Returns the dictionary created by using the specified dictionary name.
| name | - dictionary name |
| + (SCDictionary *) dictionaryWithFileStream: | (NSString *) | path |
Returns a dictionary created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (SCDictionary *) dictionaryWithObject: | (id) | object |
Returns the dictionary created by using the specified existing object.
| object | - existing source object |
| SCCollectionException | - dictionary error detected |
| + (SCDictionary *) dictionaryWithObjects: | (id) | object | |
| , | ... | ||
Returns the dictionary created by using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - dictionary error detected |
| + (SCDictionary *) dictionaryWithStream: | (SCStream *) | stream |
Returns a dictionary created from the specified stream.
| stream | - stream for reading array |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (SCDouble) doubleForKey: | (NSString *) | key |
Returns the double precision float value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCDouble) doubleValueForKey: | (NSString *) | key |
Returns the double precision float value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCFloat) floatForKey: | (NSString *) | key |
Returns the single precision float value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCFloat) floatValueForKey: | (NSString *) | key |
Returns the single precision float value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (id) init |
Initializes the dictionary using the default settings.
Reimplemented from SCCollection.
| - (id) initWithCollection: | (id) | collection |
Initializes the dictionary using the specified existing collection.
| collection | - existing source collection |
| SCCollectionException | - dictionary error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate |
Initializes the dictionary using the specified delegate object.
| delegate | - delegate object |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| collection: | (id) | collection | |
Initializes the dictionary using the specified delegate object and existing collection.
| delegate | - delegate object |
| collection | - existing source collection |
| SCCollectionException | - dictionary error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| object: | (id) | object | |
Initializes the dictionary using the specified delegate object and existing object.
| delegate | - delegate object |
| object | - existing source object |
| SCCollectionException | - dictionary error detected |
| - (id) initWithDelegate: | (id<SCCollectionDelegate>) | delegate | |
| objects: | (id) | object | |
| , | ... | ||
Initializes the dictionary using the specified delegate objects and nil terminated list of existing objects.
| delegate | - delegate object |
| object | - first object |
| ... | - other objects |
| SCCollectionException | - dictionary error detected |
| - (id) initWithDictionary: | (SCDictionary *) | dictionary |
Initializes the dictionary using the existing dictionary.
| dictionary | - source dictionary |
| SCCollectionError | - dictionary error detected |
| - (id) initWithDictionaryName: | (NSString *) | name |
Initializes the dictionary using the specified dictionary name.
| name | - dictionary name |
| - (id) initWithObject: | (id) | object |
Initializes the dictionary using the specified existing object.
| object | - existing source object |
| SCCollectionException | - dictionary error detected |
| - (id) initWithObjects: | (id) | object | |
| , | ... | ||
Initializes the dictionary using the specified nil terminated list of existing objects.
| object | - first object |
| ... | - other objects |
| SCCollectionException | - dictionary error detected |
| - (SCInteger) integerForKey: | (NSString *) | key |
Returns the signed 32-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCInteger) integerValueForKey: | (NSString *) | key |
Returns the signed 32-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (NSEnumerator *) keyEnumerator |
Returns an enumerator object that lets you access each key in the dictionary.
| - (SCLong) longForKey: | (NSString *) | key |
Returns the signed 64-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCLong) longValueForKey: | (NSString *) | key |
Returns the signed 64-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (NSNumber *) numberForKey: | (NSString *) | key |
Returns the number associated with a given key.
| key | - key for which to return the corresponding number |
| SCCollectionException | - dictionary error detected |
| - (NSNumber *) numberValueForKey: | (NSString *) | key |
Returns the number value associated with a given key.
| key | - key for which to return the corresponding number value |
| SCCollectionException | - dictionary error detected |
| - (id) objectForKey: | (NSString *) | key |
Returns the value associated with a given key.
| key | - key for which to return the corresponding value |
| - (void) removeObjectForKey: | (NSString *) | key |
Removes from the receiving dictionary the object with the specified key.
| key | - key of the removed object |
| SCCollectionException | - dictionary error detected |
| - (void) removeObjectsForKeys: | (SCArray *) | keys |
Removes from the receiving dictionary objects for the keys from the specified array.
| keys | - array with removed keys |
| SCCollectionException | - dictionary error detected |
| - (void) setBool: | (BOOL) | boolean | |
| forKey: | (NSString *) | key | |
Adds a given boolean value with the specified key to the receiving dictionary.
| boolean | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setBoolValue: | (BOOL) | value | |
| forKey: | (NSString *) | key | |
Adds a given boolean value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setByte: | (SCByte) | byte | |
| forKey: | (NSString *) | key | |
Adds a given signed 8-bit integer value with the specified key to the receiving dictionary.
| byte | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setByteValue: | (SCByte) | value | |
| forKey: | (NSString *) | key | |
Adds a given signed 8-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setChar: | (char) | chr | |
| forKey: | (NSString *) | key | |
Adds a given char value with the specified key to the receiving dictionary.
| chr | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setCharString: | (const char *) | string | |
| forKey: | (NSString *) | key | |
Adds a given char string with the specified key to the receiving dictionary.
| string | - string for the specified key |
| key | - key for the specified string |
| SCCollectionException | - dictionary error detected |
| - (void) setCharStringValue: | (const char *) | value | |
| forKey: | (NSString *) | key | |
Adds a given char string value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setCharValue: | (char) | value | |
| forKey: | (NSString *) | key | |
Adds a given char value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setDictionaryName: | (NSString *) | name |
Sets the name of the receiving dictionary.
| name | - name of the dictionary |
| - (void) setDouble: | (SCDouble) | dbl | |
| forKey: | (NSString *) | key | |
Adds a given double precision float value with the specified key to the receiving dictionary.
| dbl | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setDoubleValue: | (SCDouble) | value | |
| forKey: | (NSString *) | key | |
Adds a given double precision float value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setFloat: | (SCFloat) | flt | |
| forKey: | (NSString *) | key | |
Adds a given single precision float value with the specified key to the receiving dictionary.
| flt | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setFloatValue: | (SCFloat) | value | |
| forKey: | (NSString *) | key | |
Adds a given single precision float value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setInteger: | (SCInteger) | integer | |
| forKey: | (NSString *) | key | |
Adds a given signed 32-bit integer value with the specified key to the receiving dictionary.
| integer | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setIntegerValue: | (SCInteger) | value | |
| forKey: | (NSString *) | key | |
Adds a given signed 32-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setLong: | (SCLong) | longint | |
| forKey: | (NSString *) | key | |
Adds a given signed 64-bit integer value with the specified key to the receiving dictionary.
| longint | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setLongValue: | (SCLong) | value | |
| forKey: | (NSString *) | key | |
Adds a given signed 64-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setObject: | (id) | object | |
| forKey: | (NSString *) | key | |
Adds a given key-value pair to the receiving dictionary.
| object | - value for the specified key |
| key | - key for the object |
| SCCollectionException | - dictionary error detected |
| - (void) setShort: | (SCShort) | shortint | |
| forKey: | (NSString *) | key | |
Adds a given signed 16-bit integer value with the specified key to the receiving dictionary.
| shortint | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setShortValue: | (SCShort) | value | |
| forKey: | (NSString *) | key | |
Adds a given signed 16-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUByte: | (SCUByte) | byte | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 8-bit integer value with the specified key to the receiving dictionary.
| byte | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUByteValue: | (SCUByte) | value | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 8-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUInteger: | (SCUInteger) | integer | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 32-bit integer value with the specified key to the receiving dictionary.
| integer | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUIntegerValue: | (SCUInteger) | value | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 32-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setULong: | (SCULong) | longint | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 64-bit integer value with the specified key to the receiving dictionary.
| longint | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setULongValue: | (SCULong) | value | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 64-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUnichar: | (unichar) | chr | |
| forKey: | (NSString *) | key | |
Adds a given unichar value with the specified key to the receiving dictionary.
| chr | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUnicharValue: | (unichar) | value | |
| forKey: | (NSString *) | key | |
Adds a given unichar value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUShort: | (SCUShort) | shortint | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 16-bit integer value with the specified key to the receiving dictionary.
| shortint | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setUShortValue: | (SCUShort) | value | |
| forKey: | (NSString *) | key | |
Adds a given unsigned 16-bit integer value with the specified key to the receiving dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (void) setValue: | (id) | value | |
| forKey: | (NSString *) | key | |
Adds a given key-value pair to the dictionary.
| value | - value for the specified key |
| key | - key for the specified value |
| SCCollectionException | - dictionary error detected |
| - (SCShort) shortForKey: | (NSString *) | key |
Returns the signed 16-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCShort) shortValueForKey: | (NSString *) | key |
Returns the signed 16-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (NSString *) stringForKey: | (NSString *) | key |
Returns the string associated with a given key.
| key | - key for which to return the corresponding string |
| SCCollectionException | - dictionary error detected |
| - (NSString *) stringValueForKey: | (NSString *) | key |
Returns the string value associated with a given key.
| key | - key for which to return the corresponding string value |
| SCCollectionException | - dictionary error detected |
| - (SCUByte) uByteForKey: | (NSString *) | key |
Returns the unsigned 8-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCUByte) uByteValueForKey: | (NSString *) | key |
Returns the unsigned 8-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCUInteger) uIntegerForKey: | (NSString *) | key |
Returns the unsigned 32-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCUInteger) uIntegerValueForKey: | (NSString *) | key |
Returns the unsigned 32-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCULong) uLongForKey: | (NSString *) | key |
Returns the unsigned 64-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCULong) uLongValueForKey: | (NSString *) | key |
Returns the unsigned 64-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (unichar) unicharForKey: | (NSString *) | key |
Returns the unichar value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (unichar) unicharValueForKey: | (NSString *) | key |
Returns the unichar value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCUShort) uShortForKey: | (NSString *) | key |
Returns the unsigned 16-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (SCUShort) uShortValueForKey: | (NSString *) | key |
Returns the unsigned 16-bit integer value associated with a given key.
| key | - key for which to return the corresponding value |
| SCCollectionException | - dictionary error detected |
| - (id) valueForKey: | (NSString *) | key |
Returns the value associated with a given key.
| key | - key for which to return the corresponding value |
1.7.3