From f33817e4021bee078d74ccf2535c252a97eb282b Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 21 Aug 2006 22:33:42 +0000 Subject: [PATCH] Monotone-Parent: 2512d33c93527cc0878865235de0bc639864f95b Monotone-Revision: d34e8e3372e74059bfc9d965066f34b31817a199 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-21T22:33:42 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/UIxCalFilterPanel.m | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/UI/Scheduler/UIxCalFilterPanel.m b/UI/Scheduler/UIxCalFilterPanel.m index a200f677a..1767c018e 100644 --- a/UI/Scheduler/UIxCalFilterPanel.m +++ b/UI/Scheduler/UIxCalFilterPanel.m @@ -35,15 +35,16 @@ static NSArray *filters = nil; + (void) initialize { - NSMutableDictionary *md; - NSMutableArray *ma; - - md = [[NSMutableDictionary alloc] initWithCapacity:8]; - ma = [[NSMutableArray alloc] initWithCapacity:4]; + static NSString *quals[] + = {@"view_all", @"view_today", @"view_next7", @"view_next14", + @"view_next31", @"view_thismonth", @"view_future", + @"view_selectedday" }; - filters = [ma copy]; - [md release]; md = nil; - [ma release]; ma = nil; + if (!filters) + { + filters = [NSArray arrayWithObjects: quals count: 8]; + [filters retain]; + } } - (id) init