Re: NSApp beginSheet:NSWindow notification of sheet opening?
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