On Fri, Oct 31, 2008 at 11:23 AM, Claus Atzenbeck
<[EMAIL PROTECTED]> wrote:
> Hi all:
>
> I need a delegate that gets called whenever the window appears on the
> screen. The opposite of windowWillClose:, so to say.
>
> However,
> - (void)windowDidExpose:(NSNotification *)notification
> does not get called via any of the following methods:
>
> [windowController showWindow:self];
> [[windowController window] orderFront:self];
> [[windowController window] orderBack:self];
>
> The delegate works; for example, windowWillClose: gets called.

The delegate method is a shortcut for registering for
NSWindowDidExposeNotification. The documentation for that starts out
with "Posted whenever a portion of a nonretained NSWindow object is
exposed".

Since you essentially never want to use a nonretained window and are
almost certainly not using one here, this notification never gets
posted.

Mike
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to