mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
Monotone-Parent: 9526db8a187e1a3f30ac4b5933d589fcb9dbbc40
Monotone-Revision: 1639c49f52eac11f85997ccaa9ebcc659f81dd46 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-08-27T16:10:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -302,6 +302,23 @@
|
||||
[self addChild: _person];
|
||||
}
|
||||
|
||||
- (void) removeFromAttendees: (iCalPerson *) oldAttendee
|
||||
{
|
||||
NSMutableArray *newAttendees;
|
||||
int count, max;
|
||||
|
||||
newAttendees = [NSMutableArray arrayWithArray: [self attendees]];
|
||||
max = [newAttendees count];
|
||||
for (count = max - 1; count > -1; count--)
|
||||
{
|
||||
if ([[newAttendees objectAtIndex: count]
|
||||
hasSameEmailAddress: oldAttendee])
|
||||
[newAttendees removeObjectAtIndex: count];
|
||||
}
|
||||
|
||||
[self setAttendees: newAttendees];
|
||||
}
|
||||
|
||||
- (void) setAttendees: (NSArray *) attendees
|
||||
{
|
||||
[self removeAllAttendees];
|
||||
|
||||
Reference in New Issue
Block a user