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 Oct 31, 2008, at 8:23 AM, Claus Atzenbeck wrote:

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.


I think that you will need to use NSWindow / NSPanel subclasses to accomplish this. That's at least how I've solved that problem in the past.

If you'd like to see this capability added to NSWindow, I suggest that you file an enhancement request. It will be flagged as a duplicate, but it would still be useful - by showing interest, it's more likely that it will be prioritized.

j o a r


_______________________________________________

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.