mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 13:17:55 -05:00
Use URL-based (modern?) NSWorkspace method
This commit is contained in:
committed by
Allan Odgaard
parent
caf77cc40c
commit
f24462a523
@@ -338,8 +338,8 @@ static NSURL* ParentForURL (NSURL* url)
|
||||
|
||||
- (void)showSelectedEntriesInFinder:(id)sender
|
||||
{
|
||||
for(NSString* aPath in self.selectedPaths)
|
||||
[[NSWorkspace sharedWorkspace] selectFile:aPath inFileViewerRootedAtPath:[aPath stringByDeletingLastPathComponent]];
|
||||
for(FSItem* item in self.selectedItems)
|
||||
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[ item.url ]];
|
||||
}
|
||||
|
||||
- (NSString*)parentForNewFolder
|
||||
|
||||
Reference in New Issue
Block a user