• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: windowDidExpose: When called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windowDidExpose: When called?


  • Subject: Re: windowDidExpose: When called?
  • From: j o a r <email@hidden>
  • Date: Fri, 31 Oct 2008 09:27:58 -0700


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:
This email sent to email@hidden


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

  • Prev by Date: Re: Compare images in Cocoa
  • Next by Date: Re: NSTextView actions
  • Previous by thread: windowDidExpose: When called?
  • Next by thread: Re: windowDidExpose: When called?
  • Index(es):
    • Date
    • Thread