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 PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to