mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 21:08:51 +00:00
Monotone-Parent: da9c14ddfb4c9a9c929c7b84543af4ce664cfc10
Monotone-Revision: 829ccf73000a2d91a5daf67741479e395011b6a8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-26T20:13:10 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -344,41 +344,6 @@ static Class NSDataK, NSStringK;
|
||||
handleId = newHandleId;
|
||||
}
|
||||
|
||||
- (NSArray *) childKeys
|
||||
{
|
||||
if (!childKeys)
|
||||
{
|
||||
childKeys = [container childKeysMatchingQualifier: nil
|
||||
andSortOrderings: sortOrderings];
|
||||
[childKeys retain];
|
||||
}
|
||||
|
||||
return childKeys;
|
||||
}
|
||||
|
||||
- (NSArray *) restrictedChildKeys
|
||||
{
|
||||
NSArray *keys;
|
||||
|
||||
if (!restrictedChildKeys)
|
||||
{
|
||||
if (restrictionState != MAPIRestrictionStateAlwaysTrue)
|
||||
{
|
||||
if (restrictionState == MAPIRestrictionStateNeedsEval)
|
||||
keys = [container childKeysMatchingQualifier: restriction
|
||||
andSortOrderings: sortOrderings];
|
||||
else
|
||||
keys = [NSArray array];
|
||||
}
|
||||
else
|
||||
keys = [self childKeys];
|
||||
|
||||
ASSIGN (restrictedChildKeys, keys);
|
||||
}
|
||||
|
||||
return restrictedChildKeys;
|
||||
}
|
||||
|
||||
- (void) cleanupCaches
|
||||
{
|
||||
[restrictedChildKeys release];
|
||||
@@ -818,6 +783,20 @@ static Class NSDataK, NSStringK;
|
||||
return child;
|
||||
}
|
||||
|
||||
- (NSArray *) childKeys
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSArray *) restrictedChildKeys
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id) lookupChild: (NSString *) childKey
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
Reference in New Issue
Block a user