|
Samond Classes Library 1.2.6-STABLE build 219
|
Standard class NSArray functionality extending category. More...
#import <NSArray+SCArray.h>
Inheritance diagram for NSArray(SCArray):Creating Arrays | |
| (instancetype) | + arrayWithCoder: |
| (instancetype) | + arrayWithContentsOfSerializedFile: |
| (instancetype) | + arrayWithDataDictionary: |
| (instancetype) | + arrayWithDataDictionaryFromFile: |
| (instancetype) | + arrayWithStream: |
| (instancetype) | + arrayWithFileStream: |
| (instancetype) | + arrayWithData: |
| (instancetype) | + arrayWithContentsOfURLString: |
| (instancetype) | + arrayWithAscendingSortedCollection:sorter: |
| (instancetype) | + arrayWithDescendingSortedCollection:sorter: |
| (instancetype) | + arrayWithSortedCollection:sorter: |
| (instancetype) | + arrayWithAscendingSortedCollection: |
| (instancetype) | + arrayWithDescendingSortedCollection: |
| (instancetype) | + arrayWithSortedCollection: |
| (instancetype) | + arrayWithCollection: |
Initializing Arrays | |
| (instancetype) | - initWithAscendingSortedCollection:sorter: |
| (instancetype) | - initWithDescendingSortedCollection:sorter: |
| (instancetype) | - initWithSortedCollection:sorter: |
| (instancetype) | - initWithAscendingSortedCollection: |
| (instancetype) | - initWithDescendingSortedCollection: |
| (instancetype) | - initWithSortedCollection: |
| (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 an Array | |
| SCIndex | indexOfLastObject |
| (BOOL) | - containsObjects: |
| (BOOL) | - containsCollection: |
| (BOOL) | - containsAnyObject: |
| (BOOL) | - containsAnyObjectFromCollection: |
Converting Arrays | |
| SCArray * | array |
| SCSet * | set |
| SCOrderedSet * | orderedSet |
| SCDictionary * | dictionary |
| SCStack * | stack |
| SCQueue * | queue |
| SCUnidirectionalList * | unidirectionalList |
| SCBidirectionalList * | bidirectionalList |
| NSArray * | foundationArray |
| NSSet * | foundationSet |
| NSOrderedSet * | foundationOrderedSet |
| NSDictionary * | foundationDictionary |
| NSArray * | reversedArray |
Sorting Arrays | |
| NSArray * | ascendingSortedArray |
| NSArray * | descendingSortedArray |
| NSArray * | sortedArray |
| (NSArray *) | - ascendingSortedArrayWithSorter: |
| (NSArray *) | - descendingSortedArrayWithSorter: |
| (NSArray *) | - sortedArrayWithSorter: |
Comparing Arrays | |
| (BOOL) | - isEqualToCollection: |
Deriving New Arrays | |
| (NSArray *) | - arrayByAddingObjects: |
| (NSArray *) | - arrayByAddingArray: |
| (NSArray *) | - arrayByAddingCollection: |
Standard class NSArray functionality extending category.
Implements the additional methods for add into the standard class NSArray the enhanced functionality.
| - (NSArray *) arrayByAddingArray: | (NSArray *) | array |
Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end.
| array | - the array with added objects |
| - (NSArray *) arrayByAddingCollection: | (id<SCCollection>) | collection |
Returns a new array that is a copy of the receiving array with the objects contained in the specified collection added to the end.
| collection | - the collection with added objects |
| SCCollectionException | - collection error detected |
| - (NSArray *) arrayByAddingObjects: | (id) | object | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Returns a new array that is a copy of the receiving array with the objects from the specified list added to the end.
| object | - the first object to add into the new array |
| ... | - a comma-separated list of additional objects, ending with nil pointer |
| NS_REQUIRES_NIL_TERMINATION | - a mandatory nil pointer |
| + (instancetype) arrayWithAscendingSortedCollection: | (id<SCCollection>) | collection |
Returns an ascending sorted array created by using the specified existing collection of any supported type.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
| + (instancetype) arrayWithAscendingSortedCollection: | (id<SCCollection>) | collection | |
| sorter: | (id<SCSorter>) | sorter | |
Returns an ascending sorted array created by using the specified existing collection of any supported type and a given data sorter.
| collection | - the source collection |
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| + (instancetype) arrayWithCoder: | (NSCoder *) | coder |
Returns an array created by using the specified coder.
| coder | - the source coder |
| + (instancetype) arrayWithCollection: | (id<SCCollection>) | collection |
Returns an array created by using the specified existing collection of any supported type.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
| + (instancetype) arrayWithContentsOfSerializedFile: | (NSString *) | path |
Returns an array created by using the content of serialized file with the specified path.
| path | - the path to the source serialized file |
| + (instancetype) arrayWithContentsOfURLString: | (NSString *) | urlString |
Returns an array created by using the data from the URL with the specified string.
| urlString | - the string of the source URL |
| + (instancetype) arrayWithData: | (NSData *) | data |
Returns an array created by using the specified data object.
| data | - the source data object |
| + (instancetype) arrayWithDataDictionary: | (NSDictionary *) | dictionary |
Returns an array created by using the specified data dictionary.
| dictionary | - the source data dictionary |
| + (instancetype) arrayWithDataDictionaryFromFile: | (NSString *) | path |
Returns an array created by using the data dictionary from the specified file.
| path | - the path to the source file with the data dictionary |
| + (instancetype) arrayWithDescendingSortedCollection: | (id<SCCollection>) | collection |
Returns a descending sorted array created by using the specified existing collection of any supported type.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
| + (instancetype) arrayWithDescendingSortedCollection: | (id<SCCollection>) | collection | |
| sorter: | (id<SCSorter>) | sorter | |
Returns a descending sorted array created by using the specified existing collection of any supported type and a given data sorter.
| collection | - the source collection |
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| + (instancetype) arrayWithFileStream: | (NSString *) | path |
Returns an array 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) arrayWithSortedCollection: | (id<SCCollection>) | collection |
Returns an ascending sorted array created by using the specified existing collection of any supported type.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
| + (instancetype) arrayWithSortedCollection: | (id<SCCollection>) | collection | |
| sorter: | (id<SCSorter>) | sorter | |
Returns an ascending sorted array created by using the specified existing collection of any supported type and a given data sorter.
| collection | - the source collection |
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| + (instancetype) arrayWithStream: | (SCStream *) | stream |
Returns an array created by using the data from the specified stream.
| stream | - the source stream |
| SCStreamException | - stream error detected |
| SCSystemException | - system error detected |
| - (NSArray *) ascendingSortedArrayWithSorter: | (id<SCSorter>) | sorter |
Returns an array with objects from the receiving array that are ascending sorted by using the specified data sorter.
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| - (BOOL) containsAnyObject: | (id<SCCollectioning>) | object | |
| , | NS_REQUIRES_NIL_TERMINATION | ||
Returns a boolean value that indicates whether the receiving array contains at least one object from the specified list.
| object | - the first object to find within the receiving array |
| ... | - a comma-separated list of additional objects, ending with nil pointer |
| NS_REQUIRES_NIL_TERMINATION | - a mandatory nil pointer |
Reimplemented from <SCCollection>.
| - (BOOL) containsAnyObjectFromCollection: | (id<SCCollection>) | collection |
Returns a boolean value that indicates whether the receiving array 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 array 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 array contains all objects from the specified list.
| object | - the first object to find within the receiving array |
| ... | - a comma-separated list of additional objects, ending with nil pointer |
| NS_REQUIRES_NIL_TERMINATION | - a mandatory nil pointer |
Reimplemented from <SCCollection>.
| - (NSArray *) descendingSortedArrayWithSorter: | (id<SCSorter>) | sorter |
Returns an array with objects from the receiving array that are descending sorted by using the specified data sorter.
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| - (instancetype) initWithAscendingSortedCollection: | (id<SCCollection>) | collection |
Initializes an array using the ascending sorted content from the specified existing collection.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
| - (instancetype) initWithAscendingSortedCollection: | (id<SCCollection>) | collection | |
| sorter: | (id<SCSorter>) | sorter | |
Initializes an array using the ascending sorted content from the specified existing collection and a given sorter.
| collection | - the source collection |
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| - (instancetype) initWithCollection: | (id<SCCollection>) | collection |
Initializes an array using the specified existing collection of any supported type.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
Reimplemented from <SCCollection>.
| - (instancetype) initWithDescendingSortedCollection: | (id<SCCollection>) | collection |
Initializes an array using the descending sorted content from the specified existing collection.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
| - (instancetype) initWithDescendingSortedCollection: | (id<SCCollection>) | collection | |
| sorter: | (id<SCSorter>) | sorter | |
Initializes an array using the descending sorted content from the specified existing collection and a given sorter.
| collection | - the source collection |
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| - (instancetype) initWithSortedCollection: | (id<SCCollection>) | collection |
Initializes an array using the ascending sorted content from the specified existing collection.
| collection | - the source collection |
| SCCollectionException | - collection error detected |
| - (instancetype) initWithSortedCollection: | (id<SCCollection>) | collection | |
| sorter: | (id<SCSorter>) | sorter | |
Initializes an array using the ascending sorted content from the specified existing collection and a given sorter.
| collection | - the source collection |
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
| - (BOOL) isEqualToCollection: | (id<SCCollection>) | collection |
Compares the receiving array to the specified collection of any supported type.
| collection | - a collection |
| SCCollectionException | - collection error detected |
Reimplemented from <SCCollection>.
| - (NSArray *) sortedArrayWithSorter: | (id<SCSorter>) | sorter |
Returns an array with objects from the receiving array that are ascending sorted by using the specified data sorter.
| sorter | - the data sorter |
| SCCollectionException | - collection error detected |
|
readnonatomicassign |
An array with the all objects from the receiving array
|
readnonatomicassign |
An array with the ascending sorted objects
|
readnonatomicassign |
A bidirectional list with the all objects from the receiving array
|
readnonatomicassign |
A type of the collection
|
readnonatomicretain |
Array delegate object
|
readnonatomicassign |
An array with the descending sorted objects
|
readnonatomicassign |
A dictionary with the all objects from the receiving array
|
readnonatomicassign |
Determines whether the array is empty or contains at least one object
|
readnonatomicassign |
A foundation array with the all objects from the receiving array
|
readnonatomicassign |
A foundation dictionary with all objects from the receiving array
|
readnonatomicassign |
A foundation ordered set with the all objects from the receiving array
|
readnonatomicassign |
A foundation set with the all objects from the receiving array
|
readnonatomicassign |
An index of the last object within the array
|
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 array
|
readnonatomicassign |
An ordered set with the all objects from the receiving array
|
readnonatomicassign |
A queue with the all objects from the receiving array
|
readnonatomicassign |
Determines whether the array is in read only mode
|
readnonatomicassign |
An array with objects in the reversed order
|
readnonatomicassign |
A set with the all objects from the receiving array
|
readnonatomicassign |
An array with the ascending sorted objects
|
readnonatomicassign |
A stack with the all objects from the receiving array
|
readnonatomicassign |
An unidirectional list with the all objects from the receiving array
1.8.9.1