|
FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
This protocol defines NSMutableArray-like interface methods for data objects. More...
#import <NSADataObject.h>
Instance Methods | |
| (void) | - replaceObjectAtIndex:withObject: |
| Replaces the object at index with anObject. More... | |
Instance Methods inherited from <NSAArrayLikeDataObject> | |
| (id) | - objectAtIndex: |
| Returns the object located at index. More... | |
| (NSUInteger) | - indexOfObject: |
| Returns the lowest index whose corresponding member value is equal to a given object. More... | |
| (BOOL) | - containsObject: |
| Returns a Boolean value that indicates whether a given object is present in the array. More... | |
| (id) | - : |
| Returns the object located at index. Shortcut of objectAtIndex: More... | |
Instance Methods inherited from <NSAIndexedSubscript> | |
| (id) | - objectAtIndexedSubscript: |
| Returns the object located at the specified index. More... | |
Instance Methods inherited from <NSAMutableIndexedSubscript> | |
| (void) | - setObject:atIndexedSubscript: |
| Replaces the object at the index with the new object, possibly adding the object. More... | |
Additional Inherited Members | |
Properties inherited from <NSAArrayLikeDataObject> | |
| NSUInteger | count |
| Returns the number of objects currently in the data object. More... | |
| NSArray * | allObjects |
| Returns an array containing the container’s members, or an empty array if the container has no members. More... | |
This protocol defines NSMutableArray-like interface methods for data objects.
| - (void) replaceObjectAtIndex: | (NSUInteger) | index | |
| withObject: | (id) | anObject | |
Replaces the object at index with anObject.
| index | The index of the object to be replaced. This value must not exceed the bounds of the array. |
| anObject | The object with which to replace the object at index index in the array. This value must not be nil. |