开发者

NSOperation performance

开发者 https://www.devze.com 2023-02-10 10:31 出处:网络
I am trying to server side connection on a background thread us开发者_C百科ing NSOperation. I didn\'t want to subclass NSOperation ..So how can use NSOperation and how to return response from NSOperat

I am trying to server side connection on a background thread us开发者_C百科ing NSOperation. I didn't want to subclass NSOperation ..So how can use NSOperation and how to return response from NSOperation...

Any Ideas about this?


since NSOperation is an abstract class there is no way to use NSOperation without using a subclass of NSOperation.
If you don't want to subclass yourself you can use one of the NSOperation subclasses (ie NSInvocationOperation, or NSBlockOperation).


Here is a good example where to start: Cocoa Tutorial: NSOperation and NSOperationQueue

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号