mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-29 02:07:36 +00:00
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:
@@ -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.
|
||||||
|
|||||||
@@ -39,4 +39,10 @@
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface NSMutableArray (SOGoArrayUtilities)
|
||||||
|
|
||||||
|
- (void) addObjectUniquely: (id) object;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
#endif /* NSARRAY_UTILITIES_H */
|
#endif /* NSARRAY_UTILITIES_H */
|
||||||
|
|||||||
@@ -59,3 +59,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@implementation NSMutableArray (SOGoArrayUtilities)
|
||||||
|
|
||||||
|
- (void) addObjectUniquely: (id) object
|
||||||
|
{
|
||||||
|
if (![self containsObject: object])
|
||||||
|
[self addObject: object];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user