beginSheet simple question.
beginSheet simple question.
- Subject: beginSheet simple question.
- From: Scott Andrew <email@hidden>
- Date: Thu, 25 Aug 2005 08:22:42 -0700
I have broken my sheets into seperate NIBs to keep the logic away
from the main window and make my app mod modular. I have a question
however.
Does all execution stop at beginSheet? I am currently doing this so
that i can release my sheet in the selector when its done. Can I, if
no post processing, just put a release at the end of my function and
not store my window controllers as member variables? I know what i am
doing is safe but is it an extra step?
-(IBAction)login:(id)sender
{
if (loginController == nil)
{
loginController = [[PBLoginPanelController alloc]
initWithServer: server];
[loginController retain];
}
[NSApp beginSheet:[loginController window]
modalForWindow:[exportManager window]
modalDelegate:self
didEndSelector: @selector(loginSheetEnded:returnCode:context:)
contextInfo:NULL];
}
Scott Andrew
New Wave Digital Media
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden