mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 04:38:13 -05:00
Rename byExpandingAncestors: → expandChildren:
We are expanding the children of the root item to select the provided URLs.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
@property (nonatomic, retain) NSArray* openURLs;
|
||||
@property (nonatomic, retain) NSArray* modifiedURLs;
|
||||
|
||||
- (void)selectURLs:(NSArray*)someURLs byExpandingAncestors:(BOOL)expandAncestors;
|
||||
- (void)selectURLs:(NSArray*)someURLs expandChildren:(BOOL)expandAncestors;
|
||||
- (void)editURL:(NSURL*)anURL;
|
||||
- (void)scrollToOffset:(CGFloat)anOffset;
|
||||
@end
|
||||
|
||||
@@ -252,7 +252,7 @@ static NSSet* VisibleItems (NSOutlineView* outlineView, FSItem* root, NSMutableS
|
||||
self.pendingExpandURLs = nil;
|
||||
}
|
||||
|
||||
- (void)selectURLs:(NSArray*)someURLs byExpandingAncestors:(BOOL)expandAncestors
|
||||
- (void)selectURLs:(NSArray*)someURLs expandChildren:(BOOL)expandAncestors
|
||||
{
|
||||
self.pendingSelectURLs = [NSSet setWithArray:someURLs];
|
||||
if([someURLs count] == 1)
|
||||
|
||||
@@ -263,7 +263,7 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot
|
||||
[self goToURL:isChild ? parentURL : ParentForURL(aURL)];
|
||||
}
|
||||
|
||||
[_outlineViewDelegate selectURLs:@[ aURL ] byExpandingAncestors:YES];
|
||||
[_outlineViewDelegate selectURLs:@[ aURL ] expandChildren:YES];
|
||||
}
|
||||
|
||||
- (NSString*)path
|
||||
@@ -522,7 +522,7 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot
|
||||
OakPlayUISound(OakSoundDidMoveItemUISound);
|
||||
if([duplicatedURLs count] == 1)
|
||||
[_outlineViewDelegate editURL:[duplicatedURLs lastObject]];
|
||||
else [_outlineViewDelegate selectURLs:duplicatedURLs byExpandingAncestors:NO];
|
||||
else [_outlineViewDelegate selectURLs:duplicatedURLs expandChildren:NO];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -533,7 +533,7 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot
|
||||
if([item.target isFileURL])
|
||||
{
|
||||
[self goToURL:ParentForURL(item.target)];
|
||||
[_outlineViewDelegate selectURLs:@[ item.target ] byExpandingAncestors:NO];
|
||||
[_outlineViewDelegate selectURLs:@[ item.target ] expandChildren:NO];
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -667,7 +667,7 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot
|
||||
if([created count] > 0)
|
||||
{
|
||||
OakPlayUISound(OakSoundDidMoveItemUISound);
|
||||
[_outlineViewDelegate selectURLs:created byExpandingAncestors:NO];
|
||||
[_outlineViewDelegate selectURLs:created expandChildren:NO];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user