• 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: How do I display a sheet as soon as the main window has displayed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I display a sheet as soon as the main window has displayed


  • Subject: Re: How do I display a sheet as soon as the main window has displayed
  • From: Robert Clair <email@hidden>
  • Date: Wed, 7 Feb 2007 13:53:35 -0500

You could also register to receive this notification in your code:

[ [NSNotificationCenter defaultCenter]
                  addObserver: observingObject
                  selector: @selector(windowBecameVisible:)
                  name: @"_NSWindowDidBecomeVisible"
                  object: theWindow ];

and it the observingObject

- (void)windowBecameVisible:(NSNotification *)notification
{
   // whatever
}

All the usual warnings about undocumented features apply.

You could then file a bug. I don't see why this should be a secret notification.

....Bob Clair

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Re: NSProgressIndicator and _heartBeatThread
  • Next by Date: Re: Conditional OR for Enabled binding
  • Previous by thread: Re: Conditional OR for Enabled binding
  • Next by thread: Re: How do I display a sheet as soon as the main window has displayed
  • Index(es):
    • Date
    • Thread