Re: How to resolve conflict between 2 NSPanels?
Re: How to resolve conflict between 2 NSPanels?
- Subject: Re: How to resolve conflict between 2 NSPanels?
- From: Luc Vandal <email@hidden>
- Date: Fri, 11 Nov 2005 11:59:10 -0500
Here's what I do (for both dialogs):
NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
[center addObserver:self
selector:@selector(windowDidMakeFirstResponder:)
name:@"WindowTextNoteDidMakeFirstResponder" object:nil];
[center addObserver:self
selector:@selector(windowDidBecomeKey:)
name:@"NSWindowDidBecomeKeyNotification" object:nil];
The thing is that I have several dialogs that works just fine. It's
just those 2 dialogs that are troublesome.
Thanks!
Luc
On 11-Nov-05, at 11:47 AM, j o a r wrote:
On 11 nov 2005, at 17.29, Luc Vandal wrote:
I've been experiencing a weird problem lately with 2 dialogs. I
don't know where the conflict could be (in the nib file?).
Basically, dialog 1 will receive notifications that were supposed
to be received by dialog 2 and vice-versa.
How do you sign up for these notifications?
// WindowDidBecomeKey
- (void)WindowDidBecomeKey:(NSNotification*)notification
You should start method names with a lower case character.
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden