Samond Classes Library 1.2.6-STABLE build 219
List of all members
<SCKeyedCollection> Protocol Reference

Keyed collections protocol. More...

#import <SCCollectionProtocols.h>

+ Inheritance diagram for <SCKeyedCollection>:

Querying a Collection

(id) - objectForKey:
 
(id) - objectForKeyedSubscript:
 
(id) - valueForKey:
 

Additional Inherited Members

- Instance Methods inherited from <SCCollection>
(NSUInteger) - countByEnumeratingWithState:objects:count:
 
(instancetype) - initWithCollection:
 
(BOOL) - containsObject:
 
(BOOL) - containsObjects:
 
(BOOL) - containsCollection:
 
(BOOL) - containsAnyObject:
 
(BOOL) - containsAnyObjectFromCollection:
 
(BOOL) - isEqualToCollection:
 
- Properties inherited from <SCCollection>
NSString * name
 
SCIndex count
 
BOOL empty
 
BOOL readOnly
 
id< SCCollectionDelegatedelegate
 
SCArrayarray
 
SCSetset
 
SCOrderedSetorderedSet
 
SCDictionarydictionary
 
SCStackstack
 
SCQueuequeue
 
SCUnidirectionalListunidirectionalList
 
SCBidirectionalListbidirectionalList
 
NSArray * foundationArray
 
NSSet * foundationSet
 
NSOrderedSet * foundationOrderedSet
 
NSDictionary * foundationDictionary
 
NSEnumerator * objectEnumerator
 
NSEnumerator * reverseObjectEnumerator
 
SCCollectionType collectionType
 
BOOL isCollection
 
BOOL isLibraryCollection
 
BOOL isFoundationCollection
 
BOOL isArray
 
BOOL isLibraryArray
 
BOOL isFoundationArray
 
BOOL isSet
 
BOOL isLibrarySet
 
BOOL isFoundationSet
 
BOOL isOrderedSet
 
BOOL isLibraryOrderedSet
 
BOOL isFoundationOrderedSet
 
BOOL isDictionary
 
BOOL isLibraryDictionary
 
BOOL isFoundationDictionary
 
BOOL isStack
 
BOOL isQueue
 
BOOL isList
 
BOOL isSortable
 

Detailed Description

Keyed collections protocol.

SDK
macOS 10.6+, iOS 7.0+, GNUstep
Since
version 1.2.5

Declares the mandatory methods for support keyed collections.

Method Documentation

- (id) objectForKey: (NSString *)  key

Returns the object associated with a given key.

Parameters
key- the key for which to return the corresponding object
Returns
The object associated with the specified key or nil if no object is associated with the key
See also
- valueForKey:

Reimplemented in SCDictionary.

- (id) objectForKeyedSubscript: (NSString *)  key

Returns the value associated with a given key.

Parameters
key- the key for which to return the corresponding value
Returns
The value associated with a given key or nil if no value is associated with a key
Exceptions
SCCollectionException- collection error detected

Reimplemented in SCDictionary.

- (id) valueForKey: (NSString *)  key

Returns the value associated with a given key.

Parameters
key- the key for which to return the corresponding value
Returns
The value associated with a given key or nil if no value is associated with the key
See also
- objectForKey:

Reimplemented in SCDictionary.


The documentation for this protocol was generated from the following file: