Re: NSWindow questions
Re: NSWindow questions
- Subject: Re: NSWindow questions
- From: Developer <email@hidden>
- Date: Fri, 12 Apr 2002 16:39:52 -0400
After reading my post I realize it's as clear as mud. Let me try again.
I have an NSDocument app that I monitor for window notifications since I
have it wired in IB as a delegate. When the app is launched I get
notification that my window is becoming key. If I open a new window the
first window sends a notification that it did resign key and the new window
notifies that it did become key. All that is as expected.
If I then switch back to the first window I get a notification from the
second window that it did resign key but I get NO notification that the
first window is becoming key again. Why?
From this point on if I switch back and forth between windows I get no
further notifications at all. Why?
Hope this clears up the mud.
Mark
on 4/12/02 2:50 PM, Developer at email@hidden wrote:
>
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 LLC
4605 Farrar Dr.
Greensboro, NC 27410
http://www.textiletech.com
Embroidery Software for the Macintosh Since 1984
PowerStitch, Embroidery Expert, Embroidery Plus
_______________________________________________
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.