Re: windowDidExpose: When called?
Re: windowDidExpose: When called?
- Subject: Re: windowDidExpose: When called?
- From: "Michael Ash" <email@hidden>
- Date: Fri, 31 Oct 2008 14:41:07 -0400
On Fri, Oct 31, 2008 at 11:23 AM, Claus Atzenbeck
<email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden