, 2010 4:18:03 PM
Subject: Re: Notification of window visible?
The notification NSWindowDidBecomeKeyNotification will do it for you.
-- Reinhard
Am 04.06.2010 um 07:11 schrieb Chris Idou:
How does one get notification that a window has become visible? I
can see notifications for most every
On 7 Jun 2010, at 02:16, Chris Idou wrote:
Is it? Can't a window become visible without becoming key?
Indeed. NSWindowDidBecomeKeyNotification won't do it for you.
You might be able to use NSWindowDidUpdateNotification for this, since you'll
get one of these before the window is displayed on
Am 04.06.2010 um 07:11 schrieb Chris Idou:
How does one get notification that a window has become visible? I
can see notifications for most every type of window event except
this most obvious one.
Why do you need such a notification? Windows don't spontaneously become
visible
it was possible to detect closing via a notification, but not opening.
I ended up writing a custom -showMyPanel: method, wiring the menu to that, and
having that method set the default. Not a big deal, but it would have been
cleaner if there’d just been a window-did-become-visible notification
if there’d just been a window-did-become-visible
notification to listen to.
Hmm. You can bind the window's 'visible' binding to some property on a
controller (or even NSUserDefaultsController). If it's bound to your own
controller, then I guess that would give you a sort of notification when
Is it? Can't a window become visible without becoming key?
- Original Message
From: Reinhard Segeler macmeid...@googlemail.com
To: Chris Idou idou...@yahoo.com
Cc: cocoa-dev@lists.apple.com
Sent: Fri, 4 June, 2010 4:18:03 PM
Subject: Re: Notification of window visible
The notification NSWindowDidBecomeKeyNotification will do it for you.
-- Reinhard
Am 04.06.2010 um 07:11 schrieb Chris Idou:
How does one get notification that a window has become visible? I
can see notifications for most every type of window event except
this most obvious one.
How does one get notification that a window has become visible? I can see
notifications for most every type of window event except this most obvious one.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or