Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSSortDescriptorMBS.sortDescriptorWithKey(key as string, ascending as boolean) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 11.3 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor with the specified key and ordering.
Example:
dim n as NSSortDescriptorMBS

n = NSSortDescriptorMBS.sortDescriptorWithKey("Hello", true)
MsgBox n.key
Notes:
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.

Returns an NSSortDescriptorMBS object initialized with the specified key and ordering.
Available in Mac OS X 10.3 and newer.

Feedback, Comments & Corrections

NSSortDescriptorMBS.sortDescriptorWithKeyComparator(key as string, ascending as boolean, Comparator as NSComparatorDelegateMBS, tag as Variant = nil) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 17.1 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor object initialized to do with the given ordering and comparator delegate.
Notes:
key: The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).
ascending: true if the receiver specifies sorting in ascending order, otherwise false.
Comparator: the comparator to use with delegate declaration "NSComparatorDelegateMBS(obj1 as Variant, obj2 as Variant, tag as Variant) as Integer".

Feedback, Comments & Corrections

NSSortDescriptorMBS.sortDescriptorWithKeyWithCaseInsensitiveCompare(key as string, ascending as boolean) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 11.3 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor with the specified key and ordering.
Example:
dim n as NSSortDescriptorMBS

n = NSSortDescriptorMBS.sortDescriptorWithKeyWithCaseInsensitiveCompare("Hello", true)
MsgBox n.key
Notes:
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.

Returns an NSSortDescriptorMBS object initialized with the specified key and ordering. With case insensitive string comparison.
Available in Mac OS X 10.3 and newer.

Feedback, Comments & Corrections

NSSortDescriptorMBS.sortDescriptorWithKeyWithCompare(key as string, ascending as boolean) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 14.2 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor with the specified key and ordering.
Example:
dim n as NSSortDescriptorMBS

n = NSSortDescriptorMBS.sortDescriptorWithKeyWithCompare("Hello", true)
MsgBox n.key
Notes:
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.

Returns an NSSortDescriptorMBS object initialized with the specified key and ordering. Uses selector "compare:".
Available in Mac OS X 10.3 and newer.

See also:

Feedback, Comments & Corrections

NSSortDescriptorMBS.sortDescriptorWithKeyWithCompare(key as string, ascending as boolean, Options as Integer) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 17.1 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor with the specified key and ordering.
Example:
dim n as NSSortDescriptorMBS

n = NSSortDescriptorMBS.sortDescriptorWithKeyWithCompare("Hello", true)
MsgBox n.key
Notes:
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.

Returns an NSSortDescriptorMBS object initialized with the specified key and ordering. Uses selector "compare:options:".
Please pass options for NSString comparison. e.g. NSNumericSearch
Available in Mac OS X 10.3 and newer.

See also:

Feedback, Comments & Corrections

NSSortDescriptorMBS.sortDescriptorWithKeyWithLocalizedCaseInsensitiveCompare(key as string, ascending as boolean) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 17.1 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor with the specified key and ordering.
Example:
dim n as NSSortDescriptorMBS

n = NSSortDescriptorMBS.sortDescriptorWithKeyWithLocalizedCaseInsensitiveCompare("Hello", true)
MsgBox n.key
Notes:
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.

Returns an NSSortDescriptorMBS object initialized with the specified key and ordering. With localized string comparison. With case insensitive string comparison.
Available in Mac OS X 10.3 and newer.

Feedback, Comments & Corrections

NSSortDescriptorMBS.sortDescriptorWithKeyWithLocalizedCompare(key as string, ascending as boolean) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 11.3 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor with the specified key and ordering.
Example:
dim n as NSSortDescriptorMBS

n = NSSortDescriptorMBS.sortDescriptorWithKeyWithLocalizedCompare("Hello", true)
MsgBox n.key
Notes:
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.

Returns an NSSortDescriptorMBS object initialized with the specified key and ordering. With localized string comparison.
Available in Mac OS X 10.3 and newer.

Feedback, Comments & Corrections

NSSortDescriptorMBS.sortDescriptorWithKeyWithSelector(key as string, ascending as boolean, SelectorName as String) as NSSortDescriptorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method iCloud MBS Main Plugin 17.1 Yes No No Yes, macOS only No
Function: Creates and returns an NSSortDescriptor with the specified selector, key and ordering.
Notes:
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.

Returns an NSSortDescriptorMBS object initialized with the specified key and ordering.
Please pass valid name of a selector for the objects. Wrong selector causes trouble, e.g. "localizedCompare:".
Available in Mac OS X 10.3 and newer.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Main Plugin.




Links
MBS Xojo PDF Plugins