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

The indexed subscript getter protocol NSAIndexedSubscript must be adopted and implemented by immutable objects used for indexed subscript in modern Objective-C. More...

#import <NSASubscript.h>

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

Instance Methods

(id) - objectAtIndexedSubscript:
 Returns the object located at the specified index. More...
 

Detailed Description

The indexed subscript getter protocol NSAIndexedSubscript must be adopted and implemented by immutable objects used for indexed subscript in modern Objective-C.

Method Documentation

- (id) objectAtIndexedSubscript: (NSUInteger)  index

Returns the object located at the specified index.

Parameters
indexAn index within the bounds of the container object.
Returns
The object located at index.
If index is beyond the end of the container (that is, if index is greater than or equal to the value of the container size), raise an NSRangeException.
This method is expected to be identical to objectAtIndex:.

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