NSArray $Revision$ $Date$ NSArray Foundation/NSArray.h NSCoding allocWithZone: zone TODO array Returns a new empty array. arrayWithArray: anArray Returns a new array containing the same elements as anArray. arrayWithContentsOfFile: aPath Returns a new array based upon the file located at aPath. This file may be in property list format or in XML format (if XML is available). This method returns nil if the file does not represent an array. arrayWithObject: anObject Returns a new array containing only one object, anObject. arrayWithObjects: firstObj, Returns a new array containing the objects passed as arguments to the method. The order is preserved. arrayWithObjects: objects count: count Returns a new array containing the objects that are in the C-array objects and which size is count. The order is preserved. arrayByAddingObject: anObject Returns a new array created by adding anObject at the end of seld. The order is respected. arrayByAddingObjectsFromArray: otherArray Returns a new array which is the concatenation of self and otherArray (in this precise order). componentsJoinedByString: separator Returns a string created by the concatenation of self's elements' description separated by the string separator. The order is preserved. containsObject: anObject Returns YES if anObject belongs to self. No otherwise. The isEqual: method of anObject is used to test equality. count Returns the number of elements contained in self. descriptionWithLocale: locale TODO descriptionWithLocale: locale TODO firstObjectCommonWithArray: otherArray Returns the first element of the array which can be found in otherArray. Equality is tested with the isEqual method. getObjects: aBuffer This methods store all the elements of self inside aBuffer which is a C-array. The order is preserved. You should get sure aBuffer's size is sufficient. getObjects: aBuffer range: aRange This methods store the elements of self in the range aRange inside aBuffer which is a C-array. The order is preserved. You should get sure aBuffer's size is sufficient. indexOfObject: anObject Returns the index of the first object of the array which is equal to anObject. Equality is tested with the isEqual: method of anObject. indexOfObject: anObject range: aRange Returns the index of the first object of the array which is equal to anObject and which is in aRange range. Equality is tested with the isEqual: method of anObject. indexOfObjectIdenticalTo: anObject Returns the index of the first object of the array which is physically equal to anObject. Physical equality is tested with ==. indexOfObjectIdenticalTo: anObject range: aRange Returns the index of the first object of the array which is physically equal to anObject and which is in aRange range. Physical equality is tested with ==. initWithArray: anArray Initialize the array with the content of anArray. The order is preserved. Returns self. initWithContentsOfFile: aPath Initialize the array based upon the file located at aPath. This file may be in property list format or in XML format (if XML is available). If the file does not represent an array, self is left uninitialized and nil is returned. Otherwise self is returned. initWithObjects: firstObj, Initialize the array with the objects passed as arguments. The order is preserved. Returns self. NSInvalidArgumentException is raised if nil is one of the objects. initWithObjects: objects count: count Initialize the array with the objects contained in the C-array argument which size is count. The order is preserved. Returns self. NSInvalidArgumentException is raised if nil is one of the objects. isEqualToArray: otherArray Returns YES if the two arrays contain the same elements, i.e. the two arrays have the same length and
for i from 0 to length - 1, [[self objectAtIndex: i] isEqual: [anArray objectAtIndex: i]] returns YES.
lastObject Returns the last element of the array. If the array is empty, returns nil. makeObjectsPerformSelector: aSelector Perform aSelector on every object of the array. This is done sequentially from the last to the first object. makeObjectsPerformSelector: aSelector withObject: anObject Perform aSelector with the argument anObject on every object of the array. This is done sequentially from the last to the first object. objectAtIndex: index Returns located in the array at position index. Raise NSRangeException if index is out of bounds objectEnumerator Returns an enumerator describing the array sequentially from the first to the last element.
If you use a mutable subclass of NSArray, you should not modify the array during enumeration
pathsMatchingExtensions: filterTypes Returns all the elements of the array which are NSString which extensions are within the filterTypes NSArray. reverseObjectEnumerator Returns an enumerator describing the array sequentially from the last to the first element.
If you use a mutable subclass of NSArray, you should not modify the array during enumeration
sortedArrayHint Returns nil. Does not do anything. TODO sortedArrayUsingFunction: comparator context: context TODO sortedArrayUsingFunction: compare context: context TODO sortedArrayUsingSelector: comparator hint: hint TODO subarrayWithRange: range Returns a new array which contains self's elements located in range. The order is preserved. writeToFile: path atomically: flag TODO writeToURL: url atomically: flag TODO