Help with closing Sheets
Help with closing Sheets
- Subject: Help with closing Sheets
- From: Hisaoki Nishida <email@hidden>
- Date: Thu, 20 Jun 2002 03:13:01 -0400
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];
}
Thanks in advance.
-Yuki
_______________________________________________
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.