Custom window not getting delegate notifications
Custom window not getting delegate notifications
- Subject: Custom window not getting delegate notifications
- From: John Scalo <email@hidden>
- Date: Wed, 27 Nov 2002 22:56:56 -0800
Hi,
I have a custom window for which I call [self setDelegate:self] during the
initWithContentRect method. However, the window's delegate methods such as
windowDidBecomeKey, windowDidBecomeMain, etc never get called. According to
the docs, "an NSWindow's delegate is automatically registered for all
notifications that it has methods for" so it seems they should work.
Now I know I could explicitly register for those notifications with
NSNotificationCenter, but that's not ideal because I'll get notifications
for every window, not just this one.
FWIW, I did search the archives and found one identical question with no
answers.
Thanks!
John
_______________________________________________
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.