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

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

#import <NSASubscript.h>

Inheritance diagram for <NSAKeyedSubscript>:
<NSAMutableKeyedSubscript>

Instance Methods

(id) - objectForKeyedSubscript:
 Returns the value associated with a given key. More...
 

Detailed Description

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

Method Documentation

- (id) objectForKeyedSubscript: (id)  key

Returns the value associated with a given key.

Parameters
keyThe key for which to return the corresponding value.
Returns
The value associated with key, or nil if no value is associated with key.

This method is expected to be identical to objectForKey:.


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