Re: Sheets
Re: Sheets
- Subject: Re: Sheets
- From: Dustin Voss <email@hidden>
- Date: Thu, 26 Feb 2004 16:17:58 -0800
On 26 Feb, 2004, at 2:01 PM, Matt Jaffa wrote:
Hey,
IBOutlet NSPanel *PopUpAdd; <--------- I want this to be
the sheet to be displayed within the main preference pane, but I can't
get it to display right, the sheet bcomes attached to the Desktop for
some real weird reason.
Here's how I open a panel in a preference pane:
- (void) openPanel
{
[NSApp beginSheet:panel modalForWindow:[NSApp mainWindow]
modalDelegate:nil didEndSelector:nil contextInfo:nil];
}
- (void)closePanel:(id)sender
{
[panel close];
[NSApp endSheet:panel];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Sheets (From: Matt Jaffa <email@hidden>) |