summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/osx/devicesviewer.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/osx/devicesviewer.m')
-rw-r--r--src/osd/modules/debugger/osx/devicesviewer.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/osd/modules/debugger/osx/devicesviewer.m b/src/osd/modules/debugger/osx/devicesviewer.m
index 29910c57c40..5cf2d33eedd 100644
--- a/src/osd/modules/debugger/osx/devicesviewer.m
+++ b/src/osd/modules/debugger/osx/devicesviewer.m
@@ -11,6 +11,8 @@
#import "devicesviewer.h"
+#import "debugconsole.h"
+
@interface MAMEDeviceWrapper : NSObject
{
@@ -138,9 +140,9 @@
[nameColumn release];
[devicesView setOutlineTableColumn:tagColumn];
[devicesView setAutoresizesOutlineColumn:YES];
+ [devicesView setDoubleAction:@selector(showDeviceDetail:)];
[devicesView setDataSource:self];
devicesScroll = [[NSScrollView alloc] initWithFrame:[[window contentView] bounds]];
- [devicesScroll setDrawsBackground:YES];
[devicesScroll setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)];
[devicesScroll setHasHorizontalScroller:YES];
[devicesScroll setHasVerticalScroller:YES];
@@ -175,6 +177,11 @@
}
+- (IBAction)showDeviceDetail:(id)sender {
+ [console debugNewInfoWindowForDevice:[(MAMEDeviceWrapper *)[sender itemAtRow:[sender clickedRow]] device]];
+}
+
+
- (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item {
return [(MAMEDeviceWrapper *)item children] > 0;
}