UI/Scheduler/Toolbars/SOGoAppointmentFolders.toolbar

Monotone-Parent: c4c95e670daa9c22e838239469a51f3d23b84ab0
Monotone-Revision: 92e93f3527a76deed69fa61275517490d57f9a4f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-14T22:01:02
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-09-14 22:01:02 +00:00
parent beac7e7aea
commit e2340b4c9f
67 changed files with 1130 additions and 992 deletions
+7 -5
View File
@@ -42,6 +42,7 @@
#import <NGExtensions/NSString+misc.h>
#import <SoObjects/Appointments/SOGoAppointmentFolder.h>
#import <SoObjects/Appointments/SOGoAppointmentFolders.h>
#import <SoObjects/Appointments/SOGoAppointmentObject.h>
#import <SoObjects/Appointments/SOGoTaskObject.h>
#import <SoObjects/SOGo/NSString+Utilities.h>
@@ -331,19 +332,20 @@
- (NSArray *) calendarList
{
SOGoAppointmentFolder *folder;
SOGoAppointmentFolder *calendar, *currentCalendar;
SOGoAppointmentFolders *calendarParent;
NSEnumerator *allCalendars;
NSDictionary *currentCalendar;
if (!calendarList)
{
calendarList = [NSMutableArray new];
folder = [[self clientObject] container];
allCalendars = [[folder calendarFolders] objectEnumerator];
calendar = [[self clientObject] container];
calendarParent = [calendar container];
allCalendars = [[calendarParent subFolders] objectEnumerator];
currentCalendar = [allCalendars nextObject];
while (currentCalendar)
{
if ([[currentCalendar objectForKey: @"active"] boolValue])
if ([currentCalendar isActive])
[calendarList addObject: currentCalendar];
currentCalendar = [allCalendars nextObject];
}