views:

529

answers:

1

Hi there,

I'm fetching some data from Facebook Connect (using the FBConnect Objective-C 2.0 framework) and I'm doing all that in an NSOperation. It is in an NSOperation because I have several other operations that run as well and this is one of them.

The problem is that all the FBConnect calls are asynchronous. Because of this, the main method of the NSOperation quickly finishes and the operation is marked as completed.

Is there some way to overcome this? It would appear there are no synchronous options in FBConnect!

Many thanks,

Mike

+2  A: 

Dave Dribin describes how to do such thing in his blog post Concurrent Operations Demystified. His example shows async NSURLConnection, but should be almost the same with FBConnect

catlan
Ah fantastic, just what I was looking for! Cheers!
Michael Waterfall