• 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
Re: Synchronous modal sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Synchronous modal sheet (From: Jacob Bandes-Storch <email@hidden>)
 >Re: Synchronous modal sheet (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Animating a view along a path
  • Next by Date: Re: Question about directory for Application Caches
  • Previous by thread: Re: Synchronous modal sheet
  • Next by thread: Re: Re: Synchronous modal sheet
  • Index(es):
    • Date
    • Thread