Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSKeyValueObserverMBS class.
NSKeyValueObserverMBS.NSKeyValueChangeIndexesKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the value of the NSKeyValueChangeKindKey entry is NSKeyValueChangeInsertion, NSKeyValueChangeRemoval, or NSKeyValueChangeReplacement, the value of this key is an NSIndexSetMBS object that contains the indexes of the inserted, removed, or replaced objects.
Available in OS X v10.3 and later.
NSKeyValueObserverMBS.NSKeyValueChangeKindKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some examples using this method:
NSKeyValueObserverMBS.NSKeyValueChangeNewKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the value of the NSKeyValueChangeKindKey entry is NSKeyValueChangeSetting, and NSKeyValueObservingOptionNew was specified when the observer was registered, the value of this key is the new value for the attribute.
For NSKeyValueChangeInsertion or NSKeyValueChangeReplacement, if NSKeyValueObservingOptionNew was specified when the observer was registered, the value for this key is an NSArray instance that contains the objects that have been inserted or replaced other objects, respectively.
Available in OS X v10.3 and later.
Some examples using this method:
NSKeyValueObserverMBS.NSKeyValueChangeNotificationIsPriorKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the option NSKeyValueObservingOptionPrior was specified when the observer was registered this notification is sent prior to a change.
The change dictionary contains an NSKeyValueChangeNotificationIsPriorKey entry whose value is a boolean.
Available in OS X v10.5 and later.
NSKeyValueObserverMBS.NSKeyValueChangeOldKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 13.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the value of the NSKeyValueChangeKindKey entry is NSKeyValueChangeSetting, and NSKeyValueObservingOptionOld was specified when the observer was registered, the value of this key is the value before the attribute was changed.
For NSKeyValueChangeRemoval or NSKeyValueChangeReplacement, if NSKeyValueObservingOptionOld was specified when the observer was registered, the value is an NSArray instance that contains the objects that have been removed or have been replaced by other objects, respectively.
Available in OS X v10.3 and later.
Some examples using this method:
The items on this page are in the following plugins: MBS MacBase Plugin.