Platforms to show: All Mac Windows Linux Cross-Platform
Back to KeyValueCodingMBS class.
KeyValueCodingMBS.Description as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacControls Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
See also:
KeyValueCodingMBS.setValueForKey(key as string, value as Variant)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacControls Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
value: The value for the property identified by key.
key: The name of one of the receiver's properties.
If key identifies a to-one relationship, relate the object specified by value to the receiver, unrelating the previously related object if there was one. Given a collection object and a key that identifies a to-many relationship, relate the objects contained in the collection to the receiver, unrelating previously related objects if there were any.
The search pattern that setValueForKey uses is described in Accessor Search Patterns in Key-Value Coding Programming Guide.
In a reference-counted environment, if the instance variable is accessed directly, value is retained.
KeyValueCodingMBS.setValueForUndefinedKey(key as string, value as Variant)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacControls Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
value: The value for the key identified by key.
key: A string that is not equal to the name of any of the receiver's properties.
Subclasses can override this method to handle the request in some other way. The default implementation raises an NSUndefinedKeyException.
KeyValueCodingMBS.valueForKey(key as string) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacControls Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
key: The name of one of the receiver's properties.
Returns the value for the property identified by key.
If event is not implemented, the search pattern that valueForKey uses to find the correct value to return is described in Accessor Search Patterns in Key-Value Coding Programming Guide.
See also:
KeyValueCodingMBS.valueForUndefinedKey(key as string) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacControls Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
key: A string that is not equal to the name of any of the receiver's properties.
Subclasses can override this method to return an alternate value for undefined keys. The default implementation raises an NSUndefinedKeyException.
The items on this page are in the following plugins: MBS MacControls Plugin.