Array class.
More...
#import <SCArray.h>
Array class.
- Since
- version 1.1.3
Implements the array, which is a collection with the indexed access to the objects.
Class instances can thrown the following exceptions:
Returns an empty unnamed array created by using the default settings.
- Returns
- A created array
Reimplemented from SCCollection.
Returns an array created by using the specified existing array.
- Parameters
-
array | - existing source array |
- Returns
- A created array
- Exceptions
-
+ (SCArray *) arrayWithAscendingSortedCollection: |
|
(id) |
collection |
|
Returns an ascending sorted array created by using the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Returns
- A created array with the ascending sorted objects
- Exceptions
-
- See also
- + arrayWithSortedCollection:
Returns an ascending sorted array created by using the specified existing collection of any supported type and a given data sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Returns
- A created array with the ascending sorted objects
- Exceptions
-
- See also
- + arrayWithSortedCollection:sorter:
+ (SCArray *) arrayWithCoder: |
|
(NSCoder *) |
coder |
|
Returns an array created by using the specified coder.
- Parameters
-
- Returns
- A created array
+ (SCArray *) arrayWithCollection: |
|
(id) |
collection |
|
Returns an array created by using the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Returns
- A created array
- Exceptions
-
+ (SCArray *) arrayWithContentsOfSerializedFile: |
|
(NSString *) |
path |
|
Returns an array created by using the content of serialized file with the specified path.
- Parameters
-
path | - source serialized file path |
- Returns
- A created array
+ (SCArray *) arrayWithDataDictionary: |
|
(NSDictionary *) |
dictionary |
|
Returns an array created by using the specified data dictionary.
- Parameters
-
dictionary | - source data dictionary |
- Returns
- A created array
+ (SCArray *) arrayWithDataDictionaryFromFile: |
|
(NSString *) |
path |
|
Returns an array created by using the data dictionary from the specified file.
- Parameters
-
path | - source data dictionary file path |
- Returns
- A created array
+ (SCArray *) arrayWithDescendingSortedCollection: |
|
(id) |
collection |
|
Returns a descending sorted array created by using the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Returns
- A created array with the descending sorted objects
- Exceptions
-
Returns a descending sorted array created by using the specified existing collection of any supported type and a given data sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Returns
- A created array with the descending sorted objects
- Exceptions
-
+ (SCArray *) arrayWithFileStream: |
|
(NSString *) |
path |
|
Returns an array created by using the data from the file stream with the specified path.
- Parameters
-
path | - path of the source file stream |
- Returns
- A created array
- Exceptions
-
+ (SCArray *) arrayWithName: |
|
(NSString *) |
name |
|
Returns an empty array created by using the specified array name.
- Parameters
-
- Returns
- A created array
+ (SCArray *) arrayWithObject: |
|
(id) |
object |
|
Returns an array created by using the specified existing object.
- Parameters
-
object | - existing source object |
- Returns
- A created array
- Exceptions
-
+ (SCArray *) arrayWithObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Returns an array created by using objects from the specified nil terminated list.
- Parameters
-
object | - first object |
... | - other objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Returns
- A created array
+ (SCArray *) arrayWithSortedCollection: |
|
(id) |
collection |
|
Returns an ascending sorted array created by using the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Returns
- A created array with the ascending sorted objects
- Exceptions
-
- See also
- + arrayWithAscendingSortedCollection:
Returns an ascending sorted array created by using the specified existing collection of any supported type and a given data sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Returns
- A created array with the ascending sorted objects
- Exceptions
-
- See also
- + arrayWithAscendingSortedCollection:sorter:
Returns an array created by using the data from the specified stream.
- Parameters
-
- Returns
- A created array
- Exceptions
-
Returns an array with ascending sorted objects from the receiving array.
- Returns
- Array with sorted objects
- Exceptions
-
- See also
- Property sortedArray
Returns an array with objects from the receiving array that are ascending sorted by using the specified data sorter.
- Parameters
-
- Returns
- Array with sorted objects
- Exceptions
-
- See also
- - sortedArrayWithSorter:
- (void) copyObjectAtIndex: |
|
(SCIndex) |
index |
toIndex: |
|
(SCIndex) |
destination |
|
|
| |
Copies the object at the specified source index to a given destination index.
- Parameters
-
index | - source index of the object to be copied |
destination | - destination index |
- Exceptions
-
- (void) copyObjectsInRange: |
|
(NSRange) |
range |
toIndex: |
|
(SCIndex) |
destination |
|
|
| |
Copies the objects in the specified range to a given destination index.
- Parameters
-
range | - range of the objects to be copied |
destination | - destination index |
- Exceptions
-
- (SCArray *) descendingSortedArray |
|
|
|
Returns an array with descending sorted objects from the receiving array.
- Returns
- Array with sorted objects
- Exceptions
-
Returns an array with objects from the receiving array that are descending sorted by using the specified data sorter.
- Parameters
-
- Returns
- Array with sorted objects
- Exceptions
-
Duplicates the content of the receiving array.
- Exceptions
-
- (void) duplicateAllObjects |
|
|
|
Duplicates the all objects within the receiving array.
- Exceptions
-
- (void) duplicateObjectAtIndex: |
|
(SCIndex) |
index |
|
Duplicates the object at the specified index.
- Parameters
-
index | - index of the object to be duplicate |
- Exceptions
-
- (void) duplicateObjectsInRange: |
|
(NSRange) |
range |
|
Duplicates the objects within the specified range.
- Parameters
-
range | - range of the objects to be duplicate |
- Exceptions
-
- (void) exchangeObjectAtIndex: |
|
(SCIndex) |
index |
withObjectAtIndex: |
|
(SCIndex) |
destination |
|
|
| |
Exchanges the objects in the receiving array at given indexes.
- Parameters
-
index | - index of the first object |
destination | - index of the second object |
- Exceptions
-
- (SCIndex) indexOfBool: |
|
(BOOL) |
value |
|
Returns the lowest index whose corresponding receiving array object is equal to a given boolean value.
- Parameters
-
- Returns
- Lowest index of the object that equals to the specified value, otherwise NO
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given boolean value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given signed 8-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given signed 8-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array within which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
- (SCIndex) indexOfChar: |
|
(char) |
value |
|
Returns the lowest index whose corresponding receiving array object is equal to a given character.
- Parameters
-
- Returns
- Lowest index of the object that equals to the specified character, otherwise SCNotFound
- See also
- - indexOfUnichar:
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given character.
- Parameters
-
value | - desired character |
range | - range of indexes in the array whithin which to search for the specified character |
- Returns
- Lowest index within range of the object that equals to the specified character, otherwise NO
- Exceptions
-
- See also
- - indexOfUnichar:inRange:
- (SCIndex) indexOfCharString: |
|
(const char *) |
string |
|
Returns the lowest index whose corresponding receiving array object is equal to a given character string.
- Parameters
-
- Returns
- Lowest index of the object that equals to the specified character string, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given character string.
- Parameters
-
string | - desired character string |
range | - range of indexes in the array whithin which to search for the specified character string |
- Returns
- Lowest index within range of the object that equals to the specified character string, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given double value.
- Parameters
-
- Returns
- Lowest index of the object that equals to the specified value, otherwise NO
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given double value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given float value.
- Parameters
-
- Returns
- Lowest index of the object that equals to the specified value, otherwise NO
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given float value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given signed 32-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given signed 32-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given signed 64-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given signed 64-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
- (SCIndex) indexOfObject: |
|
(id) |
object |
|
Returns the lowest index whose corresponding receiving array object is equal to a given object.
- Parameters
-
- Returns
- Lowest index of object that equals to the specified object, otherwise SCNotFound
Reimplemented from <SCIndexedCollection>.
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given object.
- Parameters
-
object | - desired object |
range | - range of indexes in the array within which to search for the specified object |
- Returns
- Lowest index within range of the object that equals to the specified object, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given signed 16-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given signed 16-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given unsigned 8-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given unsigned 8-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array within which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given unsigned 32-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given unsigned 32-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Returns the lowest index whose corresponding receiving array object is equal to a given unsigned 64-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given unsigned 64-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
- (SCIndex) indexOfUnichar: |
|
(unichar) |
value |
|
Returns the lowest index whose corresponding receiving array object is equal to a given character.
- Parameters
-
- Returns
- Lowest index of the object that equals to the specified character, otherwise SCNotFound
- See also
- - indexOfChar:
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given character.
- Parameters
-
value | - desired character |
range | - range of indexes in the array whithin which to search for the specified character |
- Returns
- Lowest index within range of the object that equals to the specified character, otherwise NO
- Exceptions
-
- See also
- - indexOfChar:inRange:
Returns the lowest index whose corresponding receiving array object is equal to a given unsigned 16-bit integer value.
- Parameters
-
- Returns
- Lowest index of object that queals to the specified value, otherwise SCNotFound
Returns the lowest index within a specified range whose corresponding receiving array object is equal to a given unsigned 16-bit integer value.
- Parameters
-
value | - desired value |
range | - range of indexes in the array whithin which to search for the specified value |
- Returns
- Lowest index within range of the object that equals to the specified value, otherwise NO
- Exceptions
-
Initializes an empty unnamed array using the default settings.
- Returns
- A newly initialized array
- (id) initWithArray: |
|
(SCArray *) |
array |
|
Initializes an array using the specified existing array.
- Attention
- Designed initializer
- Parameters
-
array | - existing source array |
- Returns
- A newly initialized array
- Exceptions
-
- (id) initWithAscendingSortedCollection: |
|
(id) |
collection |
|
Initializes an array using the ascending sorted content from the specified existing collection.
- Parameters
-
collection | - existing source collection |
- Returns
- A newly initialized array with the ascending sorted objects
- Exceptions
-
- See also
- - initWithSortedCollection:
Initializes an array using the ascending sorted content from the specified existing collection and a given sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Returns
- A newly initialized array with the ascending sorted objects
- Exceptions
-
- See also
- - initWithSortedCollection:sorter:
- (id) initWithCollection: |
|
(id) |
collection |
|
Initializes an array using the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Returns
- A newly initialized array
- Exceptions
-
Reimplemented from SCCollection.
- (id) initWithDescendingSortedCollection: |
|
(id) |
collection |
|
Initializes an array using the descending sorted content from the specified existing collection.
- Parameters
-
collection | - existing source collection |
- Returns
- A newly initialized array with the descending sorted objects
- Exceptions
-
Initializes an array using the descending sorted content from the specified existing collection and a given sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Returns
- A newly initialized array with the descending sorted objects
- Exceptions
-
- (id) initWithName: |
|
(NSString *) |
name |
|
Initializes an empty array using the specified array name.
- Attention
- Designed initializer
- Parameters
-
- Returns
- A newly initialized array
- (id) initWithObject: |
|
(id) |
object |
|
Initializes an array using the specified existing object.
- Parameters
-
object | - existing source object |
- Returns
- A newly initialized array
- Exceptions
-
- (id) initWithObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Initializes an array using the existing objects from the specified nil terminated list.
- Parameters
-
object | - first source object |
... | - other source objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Returns
- A newly initialized array
- (id) initWithSortedCollection: |
|
(id) |
collection |
|
Initializes an array using the ascending sorted content from the specified existing collection.
- Parameters
-
collection | - existing source collection |
- Returns
- A newly initialized array with the ascending sorted objects
- Exceptions
-
- See also
- - initWithAscendingSortedCollection:
Initializes an array using the ascending sorted content from the specified existing collection and a given sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Returns
- A newly initialized array with the ascending sorted objects
- Exceptions
-
- See also
- - initWithAscendingSortedCollection:sorter:
- (void) insertAtIndex: |
|
(SCIndex) |
index |
objects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Inserts the objects from the specified nil terminated list into the receiving array at a given index.
- Parameters
-
index | - index at which to insert objects |
object | - first inserting object |
... | - other inserting objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Exceptions
-
- (void) insertAtIndexes: |
|
(NSIndexSet *) |
indexes |
objects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Inserts the objects from the specified nil terminated list into the receiving array at a given indexes.
- Parameters
-
indexes | - indexes at which the objects should be inserted |
object | - first object to insert into the receiving array |
... | - other inserting objects |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Exceptions
-
- (void) insertBool: |
|
(BOOL) |
value |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Inserts into the receiving array the specified boolean value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
Inserts into the receiving array the specified signed 8-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
- (void) insertChar: |
|
(char) |
value |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Inserts into the receiving array the specified character at a given index.
- Parameters
-
value | - inserting character |
index | - index at which to insert character |
- Exceptions
-
- See also
- - insertUnichar:atIndex:
- (void) insertCharString: |
|
(const char *) |
string |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Inserts into the receiving array the specified character string at a given index.
- Parameters
-
string | - inserting character string |
index | - index at which to insert character |
- Exceptions
-
- (void) insertCollection: |
|
(id) |
collection |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Inserts the objects from the specified collection of any supported type into the receiving array at a given index.
- Parameters
-
collection | - collection of objects to insert into the receiving array at the specified index |
index | - index at which to insert objects from the specified collection |
- Exceptions
-
- (void) insertCollection: |
|
(id) |
collection |
atIndexes: |
|
(NSIndexSet *) |
indexes |
|
|
| |
Inserts the objects from the provided collection of any supported type into the receiving array at the specified indexes.
- Parameters
-
collection | - collection of objects to insert into the receiving array |
indexes | - indexes at which the objects should be inserted |
- Exceptions
-
Inserts into the receiving array the specified double value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
Inserts into the receiving array the specified float value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
Inserts into the receiving array the specified signed 32-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
Inserts into the receiving array the specified signed 64-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
- (void) insertObject: |
|
(id) |
object |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Inserts into the receiving array the specified existing object at a given index.
- Parameters
-
object | - inserting existing object |
index | - index at which to insert object |
- Exceptions
-
Reimplemented from <SCMutableIndexedCollection>.
Inserts into the receiving array the specified signed 16-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
Inserts into the receiving array the specified unsigned 8-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
Inserts into the receiving array the specified unsigned 32-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
Inserts into the receiving array the specified unsigned 64-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
- (void) insertUnichar: |
|
(unichar) |
value |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Inserts into the receiving array the specified character at a given index.
- Parameters
-
value | - inserting character |
index | - index at which to insert character |
- Exceptions
-
- See also
- - insertChar:atIndex:
Inserts into the receiving array the specified unsigned 16-bit integer value at a given index.
- Parameters
-
value | - inserting value |
index | - index at which to insert value |
- Exceptions
-
- (BOOL) isEqualToArray: |
|
(SCArray *) |
array |
|
Returns a boolean value that indicates whether the content and settings of the receiving array are equal to the content and settings of another given array.
- Parameters
-
array | - array with which to compare the receiving array |
- Returns
- YES if the content and settings of other array are equal to the content and settings of the receiving array, otherwise NO
- (BOOL) isEqualToContentsOfArray: |
|
(SCArray *) |
array |
|
Returns a boolean value that indicates whether the content of the receiving array is equals to the content of another given array.
- Parameters
-
array | - array with which to compare the receiving array |
- Returns
- YES if the content of other array is equals to the content of the receiving array, otherwise NO
- (void) moveObjectAtIndex: |
|
(SCIndex) |
index |
toIndex: |
|
(SCIndex) |
destination |
|
|
| |
Moves the object ath the specified source index to a given destination index.
- Parameters
-
index | - source index of the object to be move |
destination | - destination index |
- Exceptions
-
- (void) moveObjectsInRange: |
|
(NSRange) |
range |
toIndex: |
|
(SCIndex) |
destination |
|
|
| |
Moves the objects in the specified range to a given destination index.
- Parameters
-
range | - range of the objects to be move |
destination | - destination index |
- Exceptions
-
- (NSNumber *) numberAtIndex: |
|
(SCIndex) |
index |
|
Returns the number located at the specified index.
- Parameters
-
index | - index within the bounds of the array |
- Returns
- The number located at the specified index
- Exceptions
-
- (id) objectAtIndex: |
|
(SCIndex) |
index |
|
Returns the object located at the specified index.
- Parameters
-
index | - index within the bounds of the array |
- Returns
- The object located at the specified index
- Exceptions
-
Reimplemented from <SCIndexedCollection>.
- (SCArray *) objectsAtIndexes: |
|
(NSIndexSet *) |
indexes |
|
Returns an array containing the objects in the receving array at the indexes specified by a given index set.
- Parameters
-
indexes | - index set with indexes of the required objects |
- Returns
- Array with the required objects
- Exceptions
-
- (SCArray *) objectsInRange: |
|
(NSRange) |
range |
|
Returns an array containg the objects in the receiving array in the specified range.
- Parameters
-
range | - range of the requited objects |
- Returns
- Array with the objecst in the specified range
- Exceptions
-
- (void) removeFirstObject |
|
|
|
Removes the first object from the receiving array.
- Exceptions
-
- (void) removeLastObject |
|
|
|
Removes the object with the highest-valued index in the receiving array.
- Exceptions
-
- (void) removeObjectAtIndex: |
|
(SCIndex) |
index |
|
Removes from the receiving array the object at the specified index.
- Parameters
-
index | - index from which to remove the object in the array |
- Exceptions
-
Reimplemented from <SCMutableIndexedCollection>.
- (void) removeObjectsAtIndexes: |
|
(NSIndexSet *) |
indexes |
|
Removes the objects at the specified indexes from the receiving array.
- Parameters
-
indexes | - indexes of the objects to remove from the array |
- Exceptions
-
Reimplemented from <SCMutableIndexedCollection>.
- (void) removeObjectsInRange: |
|
(NSRange) |
range |
|
Removes from the receiving array each of the objects within a given range.
- Parameters
-
range | - range of objects to be removed from the array |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withBool: |
|
(BOOL) |
value |
|
|
| |
Replaces the object at the specified index with a given boolean value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withByte: |
|
(SCByte) |
value |
|
|
| |
Replaces the object at the specified index with a given signed 8-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withChar: |
|
(char) |
value |
|
|
| |
Replaces the object at the specified index with a given character.
- Parameters
-
index | - index of the object to be replaced |
value | - character with which to replace the object at the specified index |
- Exceptions
-
- See also
- - replaceObjectAtIndex:withUnichar:
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withCharString: |
|
(const char *) |
string |
|
|
| |
Replaces the object at the specified index with a given character string.
- Parameters
-
index | - index of the object to be replaced |
string | - character string with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withDouble: |
|
(SCDouble) |
value |
|
|
| |
Replaces the object at the specified index with a given double value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withFloat: |
|
(SCFloat) |
value |
|
|
| |
Replaces the object at the specified index with a given float value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
Replaces the object at the specified index with a given signed 32-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withLong: |
|
(SCLong) |
value |
|
|
| |
Replaces the object at the specified index with a given signed 64-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withObject: |
|
(id) |
object |
|
|
| |
Replaces the object at the specified index with a given object.
- Parameters
-
index | - index of the object to be replaced |
object | - object with which to replace the object at the specified index |
- Exceptions
-
Reimplemented from <SCMutableIndexedCollection>.
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withShort: |
|
(SCShort) |
value |
|
|
| |
Replaces the object at the specified index with a given signed 16-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withUByte: |
|
(SCUByte) |
value |
|
|
| |
Replaces the object at the specified index with a given unsigned 8-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
Replaces the object at the specified index with a given unsigned 32-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withULong: |
|
(SCULong) |
value |
|
|
| |
Replaces the object at the specified index with a given unsigned 64-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withUnichar: |
|
(unichar) |
value |
|
|
| |
Replaces the object at the specified index with a given character.
- Parameters
-
index | - index of the object to be replaced |
value | - character with which to replace the object at the specified index |
- Exceptions
-
- See also
- - replaceObjectAtIndex:withChar:
- (void) replaceObjectAtIndex: |
|
(SCIndex) |
index |
withUShort: |
|
(SCUShort) |
value |
|
|
| |
Replaces the object at the specified index with a given unsigned 16-bit integer value.
- Parameters
-
index | - index of the object to be replaced |
value | - value with which to replace the object at the specified index |
- Exceptions
-
- (void) replaceObjectsAtIndexes: |
|
(NSIndexSet *) |
indexes |
withCollection: |
|
(id) |
collection |
|
|
| |
Replaces the objects in the receiving array at the specified indexes with the objects from a given collection of any supported type.
- Parameters
-
indexes | - indexes of the objects to be replaced |
collection | - collection with the objects with which to replace the objects in the receiving array |
- Exceptions
-
- (void) replaceObjectsAtIndexes: |
|
(NSIndexSet *) |
indexes |
withObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Replaces the objects in the receiving array at locations specified with the objects from a given nil teminated list.
- Parameters
-
indexes | - indexes of the objects to be replaced |
object | - first object with which to replace the objects in the receiving array |
... | - other objects with which to replace the objects in the receiving array |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Exceptions
-
- (void) replaceObjectsInRange: |
|
(NSRange) |
range |
withCollection: |
|
(id) |
collection |
|
|
| |
Replaces the objects in the receiving array specified by a given range with the objects from a given collection of any supported type.
- Parameters
-
range | - range of objects to be replaced in (or removed from) the receiving array |
collection | - collection of objects from which to select replacements for the objects in the specified range |
- Exceptions
-
- (void) replaceObjectsInRange: |
|
(NSRange) |
range |
withObjects: |
|
(id) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Replaces the objects in the receiving array specified by a given range with the objects from a given nil terminated list.
- Parameters
-
range | - range of objects to be replaced in (or removed from) the receiving array |
object | - first object with which to replace the objects in the receiving array |
... | - other objects with which to replace the objects in the receiving array |
NS_REQUIRES_NIL_TERMINATION | - mandatory nil pointer |
- Exceptions
-
Reverses the order of all objects in the receiving array.
- Exceptions
-
- (void) setArray: |
|
(SCArray *) |
array |
|
Replaces the content and settings of the receiving array by using the content and settings from the specified existing array.
- Parameters
-
array | - existing source array |
- Exceptions
-
- (void) setAscendingSortedCollection: |
|
(id) |
collection |
|
Replaces the settings and content of the receiving array by using the settings and ascending sorted content of the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Exceptions
-
- See also
- - setSortedCollection:
Replaces the settings and content of the receiving array by using the settings and ascending sorted content of the specified existing source collection of any supported type with a given data sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Exceptions
-
- See also
- - setSortedCollection:sorter:
- (void) setBool: |
|
(BOOL) |
value |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Replaces the object at the specified index with a given boolean value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with a given signed 8-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
- (void) setChar: |
|
(char) |
value |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Replaces the object at the specified index with a given character, possibly adding the character.
- Parameters
-
value | - character with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
- See also
- - setUnichar:atIndex:
- (void) setCharString: |
|
(const char *) |
string |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Replaces the object at the specified index with a given character string, possibly adding the character string.
- Parameters
-
string | - character string with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
- (void) setDescendingSortedCollection: |
|
(id) |
collection |
|
Replaces the settings and content of the receiving array by using the settings and descending sorted content of the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Exceptions
-
Replaces the settings and content of the receiving array by using the settings and descending sorted content of the specified existing source collection of any supported type with a given data sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Exceptions
-
Replaces the object at the specified index with a given double value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with a given float value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with a given signed 32-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with a given signed 64-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with the new object, possibly adding the object.
- Parameters
-
object | - object with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with a given signed 16-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
- (void) setSortedCollection: |
|
(id) |
collection |
|
Replaces the settings and content of the receiving array by using the settings and ascending sorted content of the specified existing collection of any supported type.
- Parameters
-
collection | - existing source collection |
- Exceptions
-
- See also
- - setAscendingSortedCollection:
Replaces the settings and content of the receiving array by using the settings and ascending sorted content of the specified existing collection of any supported type with a given data sorter.
- Parameters
-
collection | - existing source collection |
sorter | - data sorter |
- Exceptions
-
- See also
- - setAscendingSortedCollection:sorter:
Replaces the object at the specified index with a given unsigned 8-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with a given unsigned 32-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Replaces the object at the specified index with a given unsigned 64-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
- (void) setUnichar: |
|
(unichar) |
value |
atIndex: |
|
(SCIndex) |
index |
|
|
| |
Replaces the object at the specified index with a given character, possibly adding the character.
- Parameters
-
value | - character with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
- See also
- - setChar:atIndex:
Replaces the object at the specified index with a given unsigned 16-bit integer value, possibly adding the value.
- Parameters
-
value | - value with which to replace the object at the specified index |
index | - index of the object to be replaced |
- Exceptions
-
Sorts ascending the receiving array using the default data sorter.
- Exceptions
-
- See also
- - sortAscending
Sorts ascending the receiving array using the default data sorter.
- Exceptions
-
- See also
- - sort
- (void) sortAscendingWithSorter: |
|
(id<SCSorter>) |
sorter |
|
Sorts ascending the receiving array using the specified data sorter.
- Parameters
-
- Exceptions
-
- See also
- - sortWithSorter:
Sorts descending the receiving array using the default data sorter.
- Exceptions
-
- (void) sortDescendingWithSorter: |
|
(id<SCSorter>) |
sorter |
|
Sorts descending the receiving array using the specified data sorter.
- Parameters
-
- Exceptions
-
Returns an array with objects from the receiving array that are ascending sorted by using the specified data sorter.
- Parameters
-
- Returns
- Array with sorted objects
- Exceptions
-
- See also
- - ascendingSortedArrayWithSorter:
- (void) sortWithSorter: |
|
(id<SCSorter>) |
sorter |
|
- (NSString *) stringAtIndex: |
|
(SCIndex) |
index |
|
Returns the string located at the specified index.
- Parameters
-
index | - index within the bounds of the array |
- Returns
- The string located at the specified index
- Exceptions
-
- (NSNumber *) firstNumber |
|
readnonatomicretain |
First object in the array as a number
- (NSString *) firstString |
|
readnonatomicretain |
First object in the array as a string
Index of the array last object
- (NSNumber *) lastNumber |
|
readnonatomicretain |
Last object in the array as a number
- (NSString *) lastString |
|
readnonatomicretain |
Last object in the array as a string
Array with objects in reverse order
Array with ascending sorted objects
The documentation for this class was generated from the following files: