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
The event when system queries description for object.

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
Sets the property of the receiver specified by a given key to a given value.

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
Invoked by setValueForKey when it finds no property for a given key.

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
Return the value for the property identified by a given key.

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
Invoked by valueForKey when it finds no property corresponding to a given key.

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.


The biggest plugin in space...