Mantis #5 completed, needs testing

Monotone-Parent: bb2d11200e5d8cbdc9a740b2a9e019efed65432b
Monotone-Revision: 00f021939a59d6bcc0871dadde8fbc81c2d0b614

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-16T15:57:31
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-07-16 15:57:31 +00:00
parent dced0f231d
commit 5cf62a74a9
17 changed files with 364 additions and 5 deletions

View File

@@ -615,7 +615,7 @@ iRANGE(2);
- (NSString *) title
{
SOGoObject <SOGoComponentOccurence> *co;
SOGoCalendarComponent *co;
NSString *tag;
co = [self clientObject];
@@ -806,9 +806,13 @@ iRANGE(2);
{
NSMutableArray *categoryList;
NSArray *categoryLabels;
NSUserDefaults *defaults;
categoryLabels = [[self labelForKey: @"category_labels"]
componentsSeparatedByString: @","];
defaults = [[context activeUser] userDefaults];
categoryLabels = [defaults arrayForKey: @"CalendarCategories"];
if (!categoryLabels)
categoryLabels = [[self labelForKey: @"category_labels"]
componentsSeparatedByString: @","];
categoryList
= [NSMutableArray arrayWithCapacity: [categoryLabels count] + 1];
if ([category length] && ![categoryLabels containsObject: category])