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
+3
View File
@@ -1,5 +1,8 @@
2007-05-18 Wolfgang Sourdeau <wsourdeau@inverse.ca> 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 * SoObjects/SOGo/SOGoObject.m ([SOGoObject -aclUsers]): renamed
"acl" to "aclUsers". Now designed to return only the uid of the "acl" to "aclUsers". Now designed to return only the uid of the
users involved in an ACL. users involved in an ACL.
+6
View File
@@ -39,4 +39,10 @@
@end @end
@interface NSMutableArray (SOGoArrayUtilities)
- (void) addObjectUniquely: (id) object;
@end
#endif /* NSARRAY_UTILITIES_H */ #endif /* NSARRAY_UTILITIES_H */
+11
View File
@@ -59,3 +59,14 @@
} }
@end @end
@implementation NSMutableArray (SOGoArrayUtilities)
- (void) addObjectUniquely: (id) object
{
if (![self containsObject: object])
[self addObject: object];
}
@end