Monotone-Parent: 4db4e94b1f353dbdc30ed2247f4848acd4afdb7e

Monotone-Revision: 08eb86c1f84dbf4d09421e5a6380398cb40d40e0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-05-19T00:41:01
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-05-19 00:41:01 +00:00
parent df31834c37
commit 8a8dd9eca7
3 changed files with 20 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
2007-05-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/NSArray+Utilities.m ([NSMutableArray
-addObjectUniquely:object]): new method with an explicit name.
* SoObjects/SOGo/SOGoObject.m ([SOGoObject -aclUsers]): renamed
"acl" to "aclUsers". Now designed to return only the uid of the
users involved in an ACL.

View File

@@ -39,4 +39,10 @@
@end
@interface NSMutableArray (SOGoArrayUtilities)
- (void) addObjectUniquely: (id) object;
@end
#endif /* NSARRAY_UTILITIES_H */

View File

@@ -59,3 +59,14 @@
}
@end
@implementation NSMutableArray (SOGoArrayUtilities)
- (void) addObjectUniquely: (id) object
{
if (![self containsObject: object])
[self addObject: object];
}
@end