mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-06-14 09:29:28 +00:00
Make option-double click open resources as hex (like ResEdit did).
This commit is contained in:
parent
639b6ba780
commit
5597403176
|
@ -898,11 +898,17 @@ static NSString *RKExportItemIdentifier = @"com.nickshanks.resknife.toolbar.exp
|
|||
if(sender == outlineView && [outlineView clickedRow] == -1)
|
||||
return;
|
||||
|
||||
NSArray *selected = [outlineView selectedItems];
|
||||
for (Resource *resource in selected) {
|
||||
id usedPlug = [self openResourceUsingEditor:resource];
|
||||
if ([usedPlug isKindOfClass:[NSWindowController class]])
|
||||
[self addWindowController:usedPlug];
|
||||
|
||||
NSEvent *event = [NSApp currentEvent];
|
||||
if ([event type] == NSLeftMouseUp && (([event modifierFlags] & NSDeviceIndependentModifierFlagsMask) & NSAlternateKeyMask) != 0)
|
||||
[self openResourcesAsHex:sender];
|
||||
else {
|
||||
NSArray *selected = [outlineView selectedItems];
|
||||
for (Resource *resource in selected) {
|
||||
id usedPlug = [self openResourceUsingEditor:resource];
|
||||
if ([usedPlug isKindOfClass:[NSWindowController class]])
|
||||
[self addWindowController:usedPlug];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user