Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSSortDescriptorMBS class.
NSSortDescriptorMBS.compareObject(obj1 as variant, obj2 as variant) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | iCloud | MBS Main Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns 1, -1 or 0 (zero for equal).
Some examples using this method:
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Simple Demo with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
NSSortDescriptorMBS.Constructor(key as string, ascending as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | iCloud | MBS Main Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
key: The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding.
ascending: True if the receiver specifies sorting in ascending order, otherwise false.
On success the handle property is not zero.
Available in Mac OS X v10.3 and later.
If you implement the Compare event, we use it on OS X 10.6 and newer.
See also:
NSSortDescriptorMBS.Constructor(key as string, ascending as boolean, SelectorName as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | iCloud | MBS Main Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
key: The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding.
ascending: True if the receiver specifies sorting in ascending order, otherwise false.
On success the handle property is not zero.
Please pass valid name of a selector for the objects. Wrong selector causes trouble, e.g. "localizedCompare:".
Available in Mac OS X v10.3 and later.
See also:
NSSortDescriptorMBS.reversedSortDescriptor as NSSortDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | iCloud | MBS Main Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS Main Plugin.