Sets the arbitrary keyed-data for the specified key.
Original signature is '+ (void)setValue:(id)anObject forKey:(NSString *)key'
Available in Mac OS X v10.5 and later.
Declaration Syntax
public static void SetValueForKey(
Id anObject,
NSString key
)
Public Shared Sub SetValueForKey ( _
anObject As Id, _
key As NSString _
)
public:
static void SetValueForKey(
Id^ anObject,
NSString^ key
)
Parameters
- anObject (Id)
- The value for the key identified by key.
- key (NSString)
- The name of one of the receiver's properties.
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)
Assembly:
Monobjc.AppKit (Module: Monobjc.AppKit)