Sorting objects in Cocoa

On 10/06/2011, in Cocoa OSX, Cocoa Touch, English, Objective C, by FRR

Sorting objects in Cocoa: Sorting using selector (in ascending order) This is the most common sorting method for sorting objects in Cocoa. It uses a selector that must return an NSComparisonResult (either NSOrderedAscending, NSOrderedSame, or NSOrderedDescending). The most common selector is compare:.  MUST be declared in header file, as NSObject doesn’t implement it. All custom [...]

Tagged with: