44 An instance of an OSArray is a mutable collection which maintains a list of references to OSMetaClassBase derived objects. Objects are referenced by index, where the index is an integer with a value of 0 to N-1 where N is the number of objects contained within the array.
46 Objects placed into an array are automatically retained and objects removed or replaced are automatically released. All objects are released when the array is freed.
87 @param capacity The initial storage size of the OSArray instance. If 0, the capacity will be set to the size of count, else the capacity must be greater than or equal to count.
88 @result Returns a reference to a new instance of OSArray or 0 if an error occurred.
95 @abstract A static constructor function to create and initialize an instance of OSArray of a given capacity and populate it with the contents of the supplied OSArray object.
96 @param array An instance of OSArray from which the new instance will aquire its contents.
97 @param capacity The capacity of the new OSArray. If 0, the capacity will be set to the number of elements in the array, else the capacity must be greater than or equal to the number of elements in the array.
98 @result Returns a reference to an new instance of OSArray or 0 if an error occurred.
112 @abstract A member function which initializes an instance of OSArray and populates it with the given list of objects.
113 @param objects A static array containing references to OSMetaClassBase derived objects.
114 @param count The number of objects to added to the array.
115 @param capacity The initial capacity of the new instance of OSArray. If 0, the capacity will be set to the same value as the 'count' parameter, else capacity must be greater than or equal to the value of 'count'.
116 @result Returns a true if initialization succeeded or false if not.
123 @abstract A member function which initializes an instance of OSArray and populates it with the contents of the supplied OSArray object.
124 @param anArray An instance of OSArray containing the references to objects which will be copied to the new instances of OSArray.
125 @param capacity The initial capacity of the new instance of OSArray. If 0, the capacity will be set to the number of elements in the array, else the capacity must be greater than or equal to the number of elements in the array.
126 @result Returns a true if initialization succeeded or false if not.
178 @abstract A member function which appends an object onto the end of the array.
179 @param anObject The object to add to the OSArray instance. The object will be retained automatically.
180 @result Returns true if the addition of 'anObject' was successful, false if not; failure usually results from failing to allocate the necessary memory.
202 @abstract A member function which will replace an object in an array at a given index. The original object will be released and the new object will be retained.
203 @param index The index into the array at which the new object will be placed.
204 @param anObject The object to be placed into the array.
209 @abstract A member function which removes an object from the array.
210 @param index The index of the object to be removed.
211 @discussion This function removes an object from the array which is located at a given index. Once removed the contents of the array will shift to fill in the vacated spot. The removed object is automatically released.
224 @abstract A member function which compares the equality of the values of a receiving array to an arbitrary object.
225 @param anObject The object to be compared against the receiver.
226 @result Returns true if the two objects are equivalent, that is they are either the same object or they are both arrays containing the same or equivalent objects, or false otherwise.
232 @abstract A member function which returns a reference to an object located within the array at a given index. The caller should not release the returned object.
233 @param index The index into the array from which the reference to an object is taken.
234 @result Returns a reference to an object or 0 if the index is beyond the bounds of the array.
271 @abstract Do a deep copy of this array and its collections.
272 @discussion This function copies this array included collections recursively. Objects that don't derive from OSContainter are NOT copied, that is objects like OSString and OSData.
273 @param cycleDict Is a dictionary of all of the collections that have been, to start the copy at the top level just leave this field 0.
274 @result The newly copied collecton or 0 if insufficient memory