• 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: Block until block is called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Block until block is called


  • Subject: Re: Block until block is called
  • From: "Glenn L. Austin" <email@hidden>
  • Date: Fri, 26 Aug 2011 22:07:47 -0700

On Aug 26, 2011, at 9:40 PM, Brian Norh wrote:

> Hi.
>
> I'm working against an API which looks like this:
>
> - (void)performOperationWithBlock:(void (^)(void))block
>
> The call returns directly and the execution continues. At some point
> the block is eventually called. How would I do to block execution
> until the block have been called?
>
> [obj performOperationWithBlock:^(void) {
>    // Do something here
> }];
> // Block here until the block above have been called.

Um, why would you want to (or need to) do that?


_______________________________________________

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

  • Follow-Ups:
    • Re: Block until block is called
      • From: Andreas Grosam <email@hidden>
    • Re: Block until block is called
      • From: Brian Norh <email@hidden>
References: 
 >Block until block is called (From: Brian Norh <email@hidden>)

  • Prev by Date: Block until block is called
  • Next by Date: Re: Block until block is called
  • Previous by thread: Block until block is called
  • Next by thread: Re: Block until block is called
  • Index(es):
    • Date
    • Thread