• 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

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

Log Message

⌘+click a file browser icon to show in Finder

Change Summary

Incremental Difference

--- a/Frameworks/OakFileBrowser/src/FSOutlineViewDelegate.mm
+++ b/Frameworks/OakFileBrowser/src/FSOutlineViewDelegate.mm
@@ -343,7 +343,7 @@ static NSSet* VisibleItems (NSOutlineView* outlineView, FSItem* root, NSMutableS
343343 {
344344 OFBPathInfoCell* cell = (OFBPathInfoCell*)[anOutlineView preparedCellAtColumn:col row:row];
345345 NSInteger hit = [cell hitTestForEvent:[NSApp currentEvent] inRect:[anOutlineView frameOfCellAtColumn:col row:row] ofView:anOutlineView];
346- if((hit & OakImageAndTextCellHitImage) && !([[NSApp currentEvent] modifierFlags] & NSCommandKeyMask))
346+ if(hit & OakImageAndTextCellHitImage)
347347 return NO;
348348 else if(hit & NSCellHitTrackableArea)
349349 return NO;
--- a/Frameworks/OakFileBrowser/src/OakFileBrowser.mm
+++ b/Frameworks/OakFileBrowser/src/OakFileBrowser.mm
@@ -272,9 +272,11 @@ static NSURL* ParentForURL (NSURL* url)
272272 col = row != -1 && col == -1 ? 0 : col; // Clicking a row which participates in multi-row selection causes clickedColumn to return -1 <rdar://10382268>
273273 OFBPathInfoCell* cell = (OFBPathInfoCell*)[view.outlineView preparedCellAtColumn:col row:row];
274274 NSInteger hit = [cell hitTestForEvent:[NSApp currentEvent] inRect:[view.outlineView frameOfCellAtColumn:col row:row] ofView:view.outlineView];
275- if((hit & OakImageAndTextCellHitImage) && !([[NSApp currentEvent] modifierFlags] & NSCommandKeyMask))
275+ if(hit & OakImageAndTextCellHitImage)
276276 {
277- [self didDoubleClickOutlineView:sender];
277+ if([[NSApp currentEvent] modifierFlags] & NSCommandKeyMask)
278+ [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[ ((FSItem*)[view.outlineView itemAtRow:row]).url ]];
279+ else [self didDoubleClickOutlineView:sender];
278280 }
279281 else if(hit & OFBPathInfoCellHitCloseButton)
280282 {