• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

TextMate is a graphical text editor for OS X 10.7+


Commit MetaInfo

Revisionf24462a5232284f118cd2fb42cdda3bad4ccd5ae (tree)
Time2012-08-22 22:01:38
AuthorJacob Bandes-Storch <jtbandes@gmai...>
CommiterAllan Odgaard

Log Message

Use URL-based (modern?) NSWorkspace method

Change Summary

Incremental Difference

--- a/Frameworks/OakFileBrowser/src/OakFileBrowser.mm
+++ b/Frameworks/OakFileBrowser/src/OakFileBrowser.mm
@@ -338,8 +338,8 @@ static NSURL* ParentForURL (NSURL* url)
338338
339339 - (void)showSelectedEntriesInFinder:(id)sender
340340 {
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 ]];
343343 }
344344
345345 - (NSString*)parentForNewFolder