Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add implementation of -sortedArrayUsingDescriptors: that was added to NSSet in OSX 10.6 #1480

Merged
merged 1 commit into from Mar 19, 2012
Jump to file or symbol
Failed to load files and symbols.
+9 −0
Split
View
@@ -381,6 +381,15 @@
}
/*!
+ Returns an array of the set’s content sorted as specified by a given array of sort descriptors.
+ @param sortDescriptors An array of NSSortDescriptor objects.
+*/
+- (CPArray)sortedArrayUsingDescriptors:(CPArray)aSortDescriptors
+{
+ return [[self allObjects] sortedArrayUsingDescriptors:aSortDescriptors];
+}
+
+/*!
Compares the receiver to another set.
@param set The set with which to compare the receiver.
*/