|
Samond Classes Library 1.1.6-RELEASE build 132
|
Additional functionality for class NSArray. More...
#import <SCNSArray.h>
Additional functionality for class NSArray.
Category SCNSArray extends functionality of standard class NSArray.
This category was introduced in version 1.1.3.
Category declares the following properties:
| - (void) appendToFileStream: | (NSString *) | path |
Appends the array to the new or existing stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (NSArray *) arraySortedAscendingWithArray: | (NSArray *) | array |
Returns the array created by using the ascending sorted objects from the specified existing array.
| array | - source array |
| SCStreamException | - array error detected |
| + (NSArray *) arraySortedAscendingWithArray: | (NSArray *) | array | |
| usingMethod: | (id<SCSortingProtocol>) | method | |
Returns the array created by using the ascending sorted objects from the specified existing array and with using the specified sorting algorithm.
| array | - source array |
| method | - sorting algorithm |
| SCStreamException | - array error detected |
| + (NSArray *) arraySortedDescendingWithArray: | (NSArray *) | array |
Returns the array created by using the descending sorted objects from the specified existing array.
| array | - source array |
| SCStreamException | - array error detected |
| + (NSArray *) arraySortedDescendingWithArray: | (NSArray *) | array | |
| usingMethod: | (id<SCSortingProtocol>) | method | |
Returns the array created by using the descending sorted objects from the specified existing array and with using the specified sorting algorithm.
| array | - source array |
| method | - sorting algorithm |
| SCStreamException | - array error detected |
| + (NSArray *) arraySortedWithArray: | (NSArray *) | array |
Returns the array created by using the ascending sorted objects from the specified existing array.
| array | - source array |
| SCStreamException | - array error detected |
| + (NSArray *) arraySortedWithArray: | (NSArray *) | array | |
| usingMethod: | (id<SCSortingProtocol>) | method | |
Returns the array created by using the ascending sorted objects from the specified existing array and with using the specified sorting algorithm.
| array | - source array |
| method | - sorting algorithm |
| SCStreamException | - array error detected |
| + (NSArray *) arrayWithCoder: | (NSCoder *) | coder |
Returns the array created by using the specified coder.
| coder | - source coder |
| + (NSArray *) arrayWithContentsOfSerializedFile: | (NSString *) | path |
Returns the array created by using the contens of serialized file with the specified path.
| path | - source serialized file path |
| + (NSArray *) arrayWithDataDictionary: | (NSDictionary *) | dictionary |
Returns the array created by using the specified dictionary.
| dictionary | - source dictionary |
| + (NSArray *) arrayWithDataDictionaryFromFile: | (NSString *) | path |
Returns the array created by using the dictionary from the specified file.
| path | - source dictionary file path |
| + (NSArray *) arrayWithFileStream: | (NSString *) | path |
Returns the array created from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| + (NSArray *) arrayWithStream: | (SCStream *) | stream |
Returns the array created from the specified stream.
| stream | - stream for reading class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (NSString *) className |
Returns the receiver's array class name.
| - (SCComparisonResult) compareWithObject: | (id<SCCollectionProtocol>) | object |
Returns the result of comparison receiver's array with the specified array.
| object | - second array for comparison |
| SCCollectionException | - incompatible second array detected |
| - (id< SCCollectionProtocol >) copyObject |
Returns the copy of the array.
| - (NSDictionary *) dataDictionary |
Returns the dictionary with the array data.
| - (id) initSortedAscendingWithArray: | (NSArray *) | array |
Initializes the array using the ascending sorted objects from the specified existing array.
| array | - source array |
| SCStreamException | - array error detected |
| - (id) initSortedAscendingWithArray: | (NSArray *) | array | |
| usingMethod: | (id<SCSortingProtocol>) | method | |
Initializes the array using the ascending sorted objects from the specified existing array and with using the specified sorting algorithm.
| array | - source array |
| method | - sorting algorithm |
| SCStreamException | - array error detected |
| - (id) initSortedDescendingWithArray: | (NSArray *) | array |
Initializes the array using the descending sorted objects from the specified existing array.
| array | - source array |
| SCStreamException | - array error detected |
| - (id) initSortedDescendingWithArray: | (NSArray *) | array | |
| usingMethod: | (id<SCSortingProtocol>) | method | |
Initializes the array using the descending sorted objects from the specified existing array and with using the specified sorting algorithm.
| array | - source array |
| method | - sorting algorithm |
| SCStreamException | - array error detected |
| - (id) initSortedWithArray: | (NSArray *) | array |
Initializes the array using the ascending sorted objects from the specified existing array.
| array | - source array |
| SCStreamException | - array error detected |
| - (id) initSortedWithArray: | (NSArray *) | array | |
| usingMethod: | (id<SCSortingProtocol>) | method | |
Initializes the array using the ascending sorted objects from the specified existing array and with using the specified sorting algorithm.
| array | - source array |
| method | - sorting algorithm |
| SCStreamException | - array error detected |
| - (id) initWithContentsOfSerializedFile: | (NSString *) | path |
Initializes the array using the contens of serialized file with the specified path.
| path | - source serialized file path |
| - (id) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes the array using the specified dictionary.
| dictionary | - source dictionary |
| - (id) initWithDataDictionaryFromFile: | (NSString *) | path |
Initializes the array using the dictionary from the specified file.
| path | - source dictionary file path |
| - (id) initWithFileStream: | (NSString *) | path |
Initializes array from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
| - (id) initWithStream: | (SCStream *) | stream |
Initializes the array from the specified stream.
| stream | - stream for reading class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
| - (BOOL) isArray |
Returns a boolean value that indicates whether a receiving instance is an array.
| - (BOOL) isCollection |
Returns a boolean value that indicates whether a receiving instance is a collection.
| - (BOOL) isDictionary |
Returns a boolean value that indicates whether a receiving instance is a dictionary.
| - (BOOL) isFoundationArray |
Returns a boolean value that indicates whether a receiving instance is a foundation array.
| - (BOOL) isFoundationCollection |
Returns a boolean value that indicates whether a receiving instance is a foundation collection.
| - (BOOL) isFoundationDictionary |
Returns a boolean value that indicates whether a receiving instance is a foundation dictionary.
| - (BOOL) isFoundationOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a foundation ordered set.
| - (BOOL) isFoundationSet |
Returns a boolean value that indicates whether a receiving instance is a foundation set.
| - (BOOL) isLibraryArray |
Returns a boolean value that indicates whether a receiving instance is a library array.
| - (BOOL) isLibraryCollection |
Returns a boolean value that indicates whether a receiving instance is a library collection.
| - (BOOL) isLibraryDictionary |
Returns a boolean value that indicates whether a receiving instance is a library dictionary.
| - (BOOL) isLibraryOrderedSet |
Returns a boolean value that indicates whether a receiving instance is a library ordered set.
| - (BOOL) isLibrarySet |
Returns a boolean value that indicates whether a receiving instance is a library set.
| - (BOOL) isList |
Returns a boolean value that indicates whether a receiving instance is a list.
| - (BOOL) isOrderedSet |
Returns a boolean value that indicates whether a receiving instance is an ordered set.
| - (BOOL) isQueue |
Returns a boolean value that indicates whether a receiving instance is a queue.
| - (BOOL) isSet |
Returns a boolean value that indicates whether a receiving instance is a set.
| - (BOOL) isSortable |
Returns a boolean value that indicates whether a receiving instance is a sortable collection.
| - (BOOL) isStack |
Returns a boolean value that indicates whether a receiving instance is a stack.
| - (NSArray *) sortedArray |
Returns an array with ascending sorted objects from receiving array.
| SCCollectionException | - array error detected |
| - (NSArray *) sortedArrayAscending |
Returns an array with ascending sorted objects from receiving array.
| SCCollectionException | - array error detected |
| - (NSArray *) sortedArrayAscendingWithMethod: | (id<SCSortingProtocol>) | method |
Returns an array with ascending sorted objects from receiving array using the specified sorting algorithm.
| method | - sorting algorithm |
| SCCollectionException | - array error detected |
| - (NSArray *) sortedArrayDescending |
Returns an array with descending sorted objects from receiving array.
| SCCollectionException | - array error detected |
| - (NSArray *) sortedArrayDescendingWithMethod: | (id<SCSortingProtocol>) | method |
Returns an array with descending sorted objects from receiving array using the specified sorting algorithm.
| method | - sorting algorithm |
| SCCollectionException | - array error detected |
| - (NSArray *) sortedArrayWithMethod: | (id<SCSortingProtocol>) | method |
Returns an array with ascending sorted objects from receiving array using the specified sorting algorithm.
| method | - sorting algorithm |
| SCCollectionException | - array error detected |
| - (BOOL) writeContentsToSerializedFile: | (NSString *) | path |
Writes array encoded data into the serialized file with the specified path.
| path | - path at which to write the file |
| - (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the array data into the specified dictionary.
| dictionary | - destination dictionary |
| - (void) writeToDataDictionaryFile: | (NSString *) | path |
Atomically writes the array data 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 array data 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 array 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 array to the specified stream.
| stream | - stream for writing array |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
1.7.3