Creates and returns a dictionary containing a given key and value.
Original signature is '+ (id)dictionaryWithObject:(id)anObject forKey:(id)aKey'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSDictionary DictionaryWithObjectForKey( Id anObject, Id aKey )
Public Shared Function DictionaryWithObjectForKey ( _ anObject As Id, _ aKey As Id _ ) As NSDictionary
public: static NSDictionary^ DictionaryWithObjectForKey( Id^ anObject, Id^ aKey )
Return Value
A new dictionary containing a single object, anObject, for a single key, aKey.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)