Strange window controller behaviour with "move focus to next window..."
Strange window controller behaviour with "move focus to next window..."
- Subject: Strange window controller behaviour with "move focus to next window..."
- From: Keith Blount <email@hidden>
- Date: Sun, 4 Feb 2007 09:52:19 -0800 (PST)
Hi,
I have an app that has a full screen mode. I have the
window controller of the full screen window set up to
listen for when one of the main document windows
becomes main, and if one does so, the full screen
window closes (using NSWindowController's -close
method). All of this has been working smoothly for
months, until a user pointed out to me the other day
that if you use the "Move focus to next window in
active application" keyboard shortcut (cmd-` by
default in System Preferences), the main document
window receives the focus without closing the full
screen.
The really strange thing is that my full screen window
controller's -close override method does get called at
this point. And even stranger, all of the code that
comes before and after the call to [super close] also
gets called and works properly. The only thing that is
not working is the actual closing of the window - and
like I say, only in this one particular case.
Is there something special about the "Move focus to
next window in active application" that I have missed?
I can see no special reference to it in the docs, so
would assume that it just goes through the window list
and makes the next one key or main, but if this is the
case, I cannot understand why my code is working so
wonkily, when in every other situation that another
window becomes key or main, my full screen window
closes successfully.
Thanks in advance for any help,
All the best,
Keith
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden