Re: Synchronous modal sheet
Re: Synchronous modal sheet
- Subject: Re: Synchronous modal sheet
- From: Jacob Bandes-Storch <email@hidden>
- Date: Fri, 15 Aug 2008 07:50:54 -0700
Yeah, I've worked with sheets before in different contexts. The
problem with this one is that I want to display the sheet during the
first iteration of a loop (in which I do a bit of work with other
loops), and splitting it up will take some work. But unless there are
any good alternatives to a sheet, I suppose I'll go for it.
On Aug 15, 2008, at 3:52 AM, Graham Cox <email@hidden> wrote:
On 15 Aug 2008, at 3:16 pm, Jacob Bandes-Storch wrote:
I want to display a modal sheet, but my code isn't currently at the
point where I can split it up. Is there a way to run a modal sheet
synchronously, so the rest of the code after it starts isn't called
until it ends? Or do I have no choice but to restructure this?
If you have to have a sheet, you have no choice.
But it's not that hard. Take the code that runs after the call,
factor it into another method, then call that method from the -
sheetDidEnd:returnCode:contextInfo: method.
hth,
Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden