NSWindow questions
NSWindow questions
- Subject: NSWindow questions
- From: Developer <email@hidden>
- Date: Fri, 12 Apr 2002 14:50:36 -0400
I am trying to get notifications when windows become active. I'm getting
confused and have a couple of questions. This is an NSDocument app.
1. What is the difference between "Key" and "Main"?
3. if I then click on the top window I get windowDidResignKey and
windowDidBecomeKey and windowDidBecomeMain. This is all as expected. If I
then click back on the first window I only get a windowDidResignKey. Why
did I not get the window I just clicked on sending a windowDidBecomeKey?
3. From this point on when I switch back and forth between windows I get no
notifications. Why?
I need to know when the windows change so that I can unregister and
reregister my own notifications so that they only get posted for the current
window and not both. Is there a better way to handle that?
Thanks in advance.
Mark
--
Mark Steinberg
Textile Technologies
http://www.textiletech.com
_______________________________________________
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.