FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSDictionary(Shortcuts) Category Reference

NSDictionary shortcut methods extension. More...

#import <NSDictionary.h>

Instance Methods

(BOOL) - containsKey:
 Returns a Boolean value that indicates whether a given object is present in the keys. More...
 
(id) - anyKey
 Returns one of the keys in the dictionary, or nil if the dictionary contains no objects. More...
 
(id) - anyObject
 Returns one of the objects in the dictionary, or nil if the dictionary contains no objects. More...
 

Detailed Description

NSDictionary shortcut methods extension.

Method Documentation

- (id) anyKey

Returns one of the keys in the dictionary, or nil if the dictionary contains no objects.

Returns
One of the keys in the dictionary, or nil if the dictionary contains no objects. The key returned is chosen at the dictionary's convenience—the selection is not guaranteed to be random.
- (id) anyObject

Returns one of the objects in the dictionary, or nil if the dictionary contains no objects.

Returns
One of the objects in the dictionary, or nil if the dictionary contains no objects. The object returned is chosen at the dictionary's convenience—the selection is not guaranteed to be random.
- (BOOL) containsKey: (id)  aKey

Returns a Boolean value that indicates whether a given object is present in the keys.

Parameters
aKeyA key to test dictionary has it.
Returns
YES if aKey is present in the dictionary, otherwise NO.

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