Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Block until block is called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Block until block is called



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.

I have read the Blocks Programming Topics in the documentation but
have not found that they cover this scenario.

Brian
_______________________________________________

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.