FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<NSAMutableArrayLikeDataObject> Protocol Reference

This protocol defines NSMutableArray-like interface methods for data objects. More...

#import <NSADataObject.h>

Inheritance diagram for <NSAMutableArrayLikeDataObject>:
<NSAArrayLikeDataObject> <NSAMutableIndexedSubscript> <NSAIndexedSubscript> <NSAIndexedSubscript> NSAMutableTriple NSAMutableTuple

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...
 

Detailed Description

This protocol defines NSMutableArray-like interface methods for data objects.

Method Documentation

- (void) replaceObjectAtIndex: (NSUInteger)  index
withObject: (id)  anObject 

Replaces the object at index with anObject.

Parameters
indexThe index of the object to be replaced. This value must not exceed the bounds of the array.
anObjectThe object with which to replace the object at index index in the array. This value must not be nil.

The documentation for this protocol was generated from the following file: