Monotone-Parent: b0d54fb9b69827b08042c1be219b87648b1a9df2

Monotone-Revision: 4a94a09737a35d0774170a9dea9d614507de203a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-12-01T16:54:24
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-12-01 16:54:24 +00:00
parent b9a5c1e750
commit a2033cc5d0
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -5,6 +5,10 @@
2009-12-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/UIxComponentEditor.m (-categoryList): the returned
list is now sorted, except if the category of the event was not
always present in the list (kept on top).
* UI/PreferencesUI/UIxPreferences.m (-categoryList): simplified
method by returning only the array of defined categories from the
user defaults or those defined in the Localizable.strings and sort
+3 -1
View File
@@ -840,7 +840,9 @@ iRANGE(2);
= [NSMutableArray arrayWithCapacity: [categoryLabels count] + 1];
if ([category length] && ![categoryLabels containsObject: category])
[categoryList addObject: category];
[categoryList addObjectsFromArray: categoryLabels];
[categoryList addObjectsFromArray:
[categoryLabels sortedArrayUsingSelector:
@selector (localizedCaseInsensitiveCompare:)]];
return categoryList;
}