Samond Classes Library 1.2.6-STABLE build 219
|
Standard class NSSet functionality extending category. More...
#import <NSSet+SCSet.h>
Creating Sets | |
(instancetype) | + setWithCoder: |
(instancetype) | + setWithContentsOfSerializedFile: |
(instancetype) | + setWithDataDictionary: |
(instancetype) | + setWithDataDictionaryFromFile: |
(instancetype) | + setWithStream: |
(instancetype) | + setWithFileStream: |
(instancetype) | + setWithData: |
(instancetype) | + setWithContentsOfFile: |
(instancetype) | + setWithContentsOfURL: |
(instancetype) | + setWithContentsOfURLString: |
(instancetype) | + setWithCollection: |
Initializing Sets | |
(instancetype) | - initWithCollection: |
Protocol SCCollection Implementation | |
NSString * | name |
BOOL | empty |
BOOL | readOnly |
id< SCCollectionDelegate > | delegate |
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 |
Finding Objects in a Set | |
(BOOL) | - containsObjects: |
(BOOL) | - containsCollection: |
(BOOL) | - containsAnyObject: |
(BOOL) | - containsAnyObjectFromCollection: |
Converting Sets | |
SCArray * | array |
SCSet * | set |
SCOrderedSet * | orderedSet |
SCDictionary * | dictionary |
SCStack * | stack |
SCQueue * | queue |
SCUnidirectionalList * | unidirectionalList |
SCBidirectionalList * | bidirectionalList |
NSArray * | foundationArray |
NSSet * | foundationSet |
NSOrderedSet * | foundationOrderedSet |
NSDictionary * | foundationDictionary |
Comparing Sets | |
(BOOL) | - isEqualToCollection: |
Deriving New Sets | |
(NSSet *) | - setByAddingObjects: |
(NSSet *) | - setByAddingArray: |
(NSSet *) | - setByAddingSet: |
(NSSet *) | - setByAddingCollection: |
Standard class NSSet functionality extending category.
Implements the additional methods for add into the standard class NSSet the enhanced functionality.
- (BOOL) containsAnyObject: | (id<SCCollectioning>) | object | |
, | NS_REQUIRES_NIL_TERMINATION | ||
Returns a boolean value that indicates whether the receiving set contains at least one object from the specified list.
object | - the first object to find within the receiving set |
... | - a comma-separated list of additional objects, ending with nil pointer |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
Reimplemented from <SCCollection>.
- (BOOL) containsAnyObjectFromCollection: | (id<SCCollection>) | collection |
Returns a boolean value that indicates whether the receiving set contains at least one object from the specified collection of any supported type.
collection | - the collection with the required objects |
Reimplemented from <SCCollection>.
- (BOOL) containsCollection: | (id<SCCollection>) | collection |
Returns a boolean value that indicates whether the receiving set contains all objects from the specified collection of any supported type.
collection | - the collection with the required objects |
Reimplemented from <SCCollection>.
- (BOOL) containsObjects: | (id<SCCollectioning>) | object | |
, | NS_REQUIRES_NIL_TERMINATION | ||
Returns a boolean value that indicates whether the receiving set contains all objects from the specified list.
object | - the first object to find within the receiving set |
... | - a comma-separated list of additional objects, ending with nil pointer |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
Reimplemented from <SCCollection>.
- (instancetype) initWithCollection: | (id<SCCollection>) | collection |
Initializes a set using the specified existing collection of any supported type.
collection | - the source collection |
SCCollectionException | - collection error detected |
Reimplemented from <SCCollection>.
- (BOOL) isEqualToCollection: | (id<SCCollection>) | collection |
Compares the receiving set to the specified collection of any supported type.
collection | - a collection |
SCCollectionException | - collection error detected |
Reimplemented from <SCCollection>.
- (NSSet *) setByAddingArray: | (NSArray *) | array |
Returns the new set formed by adding the objects in a given array to the receiving set.
array | - the array of objects to add to the set |
- (NSSet *) setByAddingCollection: | (id<SCCollection>) | collection |
Returns the new set formed by adding the objects in a given collection of any supported type to the receiving set.
collection | - the collection of objects to add to the set |
SCCollectionException | - collection error detected |
- (NSSet *) setByAddingObjects: | (id) | object | |
, | NS_REQUIRES_NIL_TERMINATION | ||
Creates and returns a new set with objects from the receiving set and objects from a given list.
object | - the first object to add into the new set |
... | - a comma-separated list of additional objects, ending with nil pointer |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- (NSSet *) setByAddingSet: | (NSSet *) | set |
Returns the new set formed by adding the objects in a given set to the receiving set.
set | - the set of objects to add to the set |
+ (instancetype) setWithCoder: | (NSCoder *) | coder |
Returns a set created by using the specified coder.
coder | - the source coder |
+ (instancetype) setWithCollection: | (id<SCCollection>) | collection |
Returns a set created by using the specified existing collection of any supported type.
collection | - the source collection |
SCCollectionException | - collection error detected |
+ (instancetype) setWithContentsOfFile: | (NSString *) | path |
Returns a set created by using the file with the specified path.
path | - the path to the source file |
+ (instancetype) setWithContentsOfSerializedFile: | (NSString *) | path |
Returns a set created by using the content of serialized file with the specified path.
path | - the path to the source serialized file |
+ (instancetype) setWithContentsOfURL: | (NSURL *) | url |
Returns a set created by using the specified URL.
url | - the source URL |
+ (instancetype) setWithContentsOfURLString: | (NSString *) | urlString |
Returns a set created by using the data from the URL with the specified string.
urlString | - the string of the source URL |
+ (instancetype) setWithData: | (NSData *) | data |
Returns a set created by using the specified data object.
data | - the source data object |
+ (instancetype) setWithDataDictionary: | (NSDictionary *) | dictionary |
Returns a set created by using the specified data dictionary.
dictionary | - the source data dictionary |
+ (instancetype) setWithDataDictionaryFromFile: | (NSString *) | path |
Returns a set created by using the data dictionary from the specified file.
path | - the path to the source file with the data dictionary |
+ (instancetype) setWithFileStream: | (NSString *) | path |
Returns a set 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 |
+ (instancetype) setWithStream: | (SCStream *) | stream |
Returns a set created by using the data from the specified stream.
stream | - the source stream |
SCStreamException | - stream error detected |
SCSystemException | - system error detected |
|
readnonatomicassign |
An array with the all objects from the receiving set
|
readnonatomicassign |
A bidirectional list with the all objects from the receiving set
|
readnonatomicassign |
A type of the collection
|
readnonatomicretain |
A set delegate object
|
readnonatomicassign |
A dictionary with the all objects from the receiving set
|
readnonatomicassign |
Determines whether the set is empty or contains at least one object
|
readnonatomicassign |
A foundation array with the all objects from the receiving set
|
readnonatomicassign |
A foundation dictionary with all objects from the receiving set
|
readnonatomicassign |
A foundation ordered set with the all objects from the receiving set
|
readnonatomicassign |
A foundation set with the all objects from the receiving set
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is an array of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a collection of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a dictionary of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard array (instances of the classes NSArray and NSMutableArray)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard Objective-C collection
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard dictionary (instances of the classes NSDictionary and NSMutableDictionary)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard orderde set (instances of the classes NSOrderedSet and NSMutableOrderedSet)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a standard set (instances of the classes NSSet and NSMutableSet)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library array (class SCArray instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library collection
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library dictionary (class SCDictionary instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library ordered set (class SCOrderedSet instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a library set (class SCSet instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a list (instances of the classes SCUnidirectionalList and SCBidirectionalList)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is an ordered set of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a queue (class SCQueue instance)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a set of any supported type
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a sortable collection (array or ordered set of any supported type)
|
readnonatomicassign |
A boolean value that indicates whether a receiving instance is a stack (class SCStack instance)
|
readnonatomicretain |
Name of the set
|
readnonatomicassign |
An ordered set with the all objects from the receiving set
|
readnonatomicassign |
A queue with the all objects from the receiving set
|
readnonatomicassign |
Determines whether the set is in read only mode
|
readnonatomicassign |
A set with the all objects from the receiving set
|
readnonatomicassign |
A stack with the all objects from the receiving set
|
readnonatomicassign |
An unidirectional list with the all objects from the receiving set