NSPanel delegate not receiving notifications such as (windowWillClose)
NSPanel delegate not receiving notifications such as (windowWillClose)
- Subject: NSPanel delegate not receiving notifications such as (windowWillClose)
- From: Tod Cunningham <email@hidden>
- Date: Fri, 23 Jul 2004 01:34:20 -0400
I have an NSPanel with a delegate set. I have verified that the
delegate is set, but the delegate isn't receiving notifications such
as:
- (void)windowDidBecomeKey:(NSNotification *)aNotification
- (void)windowWillClose:(NSNotification *)aNotification
Is there any reason why a NSPanel will not receive notifications? The
delegate is setup in interface builder, and I verified that in the init
method that the delegate object is of the type I expected. However,
the notifications don't seem to get received.
This is driving me nuts... The delegate for the main window work
great. I do register my own observer for
NSViewFrameDidChangeNotification, and that notification is received.
Is there something about setting up that notification that breaks the
window's delegate?
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(bandInUseMatrixResized:)
name:NSViewFrameDidChangeNotification
object:bandInUseMatrix];
Thanks,
- Tod
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.