TextMate is a graphical text editor for OS X 10.7+
Revision | f24462a5232284f118cd2fb42cdda3bad4ccd5ae (tree) |
---|---|
Time | 2012-08-22 22:01:38 |
Author | Jacob Bandes-Storch <jtbandes@gmai...> |
Commiter | Allan Odgaard |
Use URL-based (modern?) NSWorkspace method
@@ -338,8 +338,8 @@ static NSURL* ParentForURL (NSURL* url) | ||
338 | 338 | |
339 | 339 | - (void)showSelectedEntriesInFinder:(id)sender |
340 | 340 | { |
341 | - for(NSString* aPath in self.selectedPaths) | |
342 | - [[NSWorkspace sharedWorkspace] selectFile:aPath inFileViewerRootedAtPath:[aPath stringByDeletingLastPathComponent]]; | |
341 | + for(FSItem* item in self.selectedItems) | |
342 | + [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[ item.url ]]; | |
343 | 343 | } |
344 | 344 | |
345 | 345 | - (NSString*)parentForNewFolder |