changeset 743:4462bc7de1e3

Possible fix for container (and possibly tree) controls picking up combobox events.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 16 Mar 2011 02:56:18 +0000
parents 1d80d728a773
children 9882b0dfa304
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Wed Mar 16 02:30:32 2011 +0000
+++ b/mac/dw.m	Wed Mar 16 02:56:18 2011 +0000
@@ -1068,7 +1068,7 @@
 	data = [[[NSMutableArray alloc] init] retain];
 	types = [[[NSMutableArray alloc] init] retain];
 	titles = [[NSPointerArray pointerArrayWithWeakObjects] retain];
-	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selectionChanged:) name:NSTableViewSelectionDidChangeNotification object:[self window]];
+	[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selectionChanged:) name:NSTableViewSelectionDidChangeNotification object:self];
 }
 -(void)doubleClicked:(id)sender
 {
@@ -1172,8 +1172,8 @@
         textcol = [[NSTableColumn alloc] init];
         [self addTableColumn:textcol];
         [self setOutlineTableColumn:textcol];
-        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(treeSelectionChanged:) name:NSOutlineViewSelectionDidChangeNotification object:[self window]];
-        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(treeItemExpanded:) name:NSOutlineViewItemDidExpandNotification object:[self window]];
+        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(treeSelectionChanged:) name:NSOutlineViewSelectionDidChangeNotification object:self];
+        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(treeItemExpanded:) name:NSOutlineViewItemDidExpandNotification object:self];
     }
     return self;
 }