|
FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
The indexed subscript setter protocol NSAMutableIndexedSubscript must be adopted and implemented by mutable objects used for indexed subscript in modern Objective-C. More...
#import <NSASubscript.h>
Instance Methods | |
| (void) | - setObject:atIndexedSubscript: |
| Replaces the object at the index with the new object, possibly adding the object. More... | |
Instance Methods inherited from <NSAIndexedSubscript> | |
| (id) | - objectAtIndexedSubscript: |
| Returns the object located at the specified index. More... | |
The indexed subscript setter protocol NSAMutableIndexedSubscript must be adopted and implemented by mutable objects used for indexed subscript in modern Objective-C.
| - (void) setObject: | (id) | obj | |
| atIndexedSubscript: | (NSUInteger) | index | |
Replaces the object at the index with the new object, possibly adding the object.
| anObject | The object with which to replace the object at index index in the container. |
| index | The index of the object to be replaced. This value is expected not to exceed the bounds of the container. |
If the index is equal to size of the container the element is expected to be added to the end of the container, growing the container.