• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
beginSheet simple question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: beginSheet simple question.
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Manipulating compound file on Mac?
  • Next by Date: Re: Converting JPEG Image Greater Than 72dpi To 72dpi
  • Previous by thread: Re: Alloc Mocks my World
  • Next by thread: Re: beginSheet simple question.
  • Index(es):
    • Date
    • Thread