Re: Help with closing Sheets
Re: Help with closing Sheets
- Subject: Re: Help with closing Sheets
- From: Martin Weil <email@hidden>
- Date: Thu, 20 Jun 2002 09:19:22 +0200
>
Hi,
>
>
I am trying to close a Sheet (NSPanel) attached to my main window (which
>
I can open just fine), but the endSheet method won't do anything, and
>
the sheet remains attached on the window. What am I missing?
>
>
In my sheet window controller:
>
>
- (IBAction)openPrefsSheet:(id)sender
>
{
>
[[NSApplication sharedApplication] beginSheet:prefsSheet
>
modalForWindow:mainWindow
>
modalDelegate:self
>
didEndSelector:nil
>
contextInfo:nil];
>
}
>
>
- (IBAction)clickedSave:(id)sender
>
{
>
[[NSApplication sharedApplication] endSheet:prefsSheet];
>
}
Try:
- (IBAction)clickedSave:(id)sender
{
[prefs Sheet orderOut:nil];
[NSApp endSheet:loeschenSheet];
}
Hope this helps,
Martin
--
http://www.mweil.net
_______________________________________________
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.