• 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: NSApp beginSheet:NSWindow notification of sheet opening?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApp beginSheet:NSWindow notification of sheet opening?


  • Subject: Re: NSApp beginSheet:NSWindow notification of sheet opening?
  • From: Erik Buck <email@hidden>
  • Date: Fri, 12 Dec 2008 12:42:42 -0800 (PST)

Custom sheets don't spontaneously show themselves.  Right before you send messages to display a sheet, reconfigure the sheet as desired.  Better yet, add a method to the window controller for the sheet and implement that method to both do the special configuration and show the sheet on the specified window.  Make all code that shows the sheet call through the method you added.
 
Inside your window controller subclass:
 
- (void)configureAndShowSpecialSheetOnWindow:(NSWindow *)aWindow
{
    // do your configuration
    // show your sheet on aWindow
}
 
 
_______________________________________________

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

  • Prev by Date: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
  • Next by Date: Encoding a Custom Object which has a CALayer instance Variable (newbie Question)
  • Previous by thread: Re: NSApp beginSheet:NSWindow notification of sheet opening?
  • Next by thread: Encoding a Custom Object which has a CALayer instance Variable (newbie Question)
  • Index(es):
    • Date
    • Thread