Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
I have created an NSOperation subclass that performs a long task. Created an instance of that subclass and added to an NSOperationQueue. The subclass is processing a long task and result a series of NSArray that I need to pass back to caller. Though I am using KVO method to notify the main thread that there is something [NSArray] ready for main thread.
What is the proper way to share information like NSArray between NSOperation and its caller?
Any idea?
Thanks
Arnieterm
 
Use performSelectorOnMainThread and send the array as the object. I've discussed this recently in a thread on this forum.
 
Thanks for the reply
Can you point me to your post where the discussion on NSOperation takes place
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.