NSObject (BDSortOrderingAdditions)

Inherits from:
none (root class)
Declared in:
BDControl/BDSortOrdering.h

Class at a Glance

BDControl extends Foundation's NSObject class with methods used by the BDSortOrdering class when sorting arrays.


Class Description

BDControl extends Foundation's NSObject class with methods used by the BDSortOrdering class when sorting arrays.

Specifically, BDControl adds four methods that wrap the existing comparison methods available in various objects to use the selectors expected by BDSortOrdering.


Method Types

BDSortOrderingAdditions
-compareAscending:
-compareDescending:
-compareCaseInsensitiveAscending:
-compareCaseInsensitiveDescending:

Instance Methods

-compareAscending:

- (NSComparisonResult)compareAscending:(id)object

Compares the receiver with object and returns the result of the comparison.

-compareDescending:

- (NSComparisonResult)compareDescending:(id)object

Compares the receiver with object and returns the result of the comparison.

-compareCaseInsensitiveAscending:

- (NSComparisonResult)compareCaseInsensitiveAscending:(id)object

Compares the receiver with object and returns the result of the comparison.

-compareCaseInsensitiveDescending:

- (NSComparisonResult)compareCaseInsensitiveDescending:(id)object

Compares the receiver with object and returns the result of the comparison.


Copyright © 2002, 2003, bDistributed.com, Inc. All rights reserved worldwide.