Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windowDidExpose: When called?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >windowDidExpose: When called? (From: Claus Atzenbeck <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.