xcode 如何使用以及在哪里使用 NSOperation 和 NSOperationQueue>
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5547573/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use and where to use NSOperation and NSOperationQueue>
提问by Shanmugaraja G
Possible Duplicate:
NSOperation on the iPhone
可能的重复:
iPhone 上的 NSOperation
I am new to Objective-c Iphone, and I came to know about NSOperation and NSOperationQueue. Where to use this and how can I use this? Can anyone give me explanations with any small example program?
我是 Objective-c Iphone 的新手,我开始了解 NSOperation 和 NSOperationQueue。在哪里使用它以及如何使用它?任何人都可以用任何小示例程序给我解释吗?
Thanks in advance...
提前致谢...
回答by Saurabh
回答by Tim
A quick Google turned up:
一个快速的谷歌出现了:
- The Concurrency Programming Guide, dealing with operations and threading
- The NSOperationQueueclass reference
- The (aptly named) NSOperationSampleexample project, straight from Apple, and
- A descriptive postfrom the excellent blog "Cocoa Is My Girlfriend," with a small, well-explained example, complete with code snippets.
- 在并发编程指南,处理操作和线程
- 该NSOperationQueue类参考
- (恰如其分地命名)NSOperationSample示例项目,直接来自 Apple,以及
- 来自优秀博客“Cocoa Is My Girlfriend”的描述性文章,其中包含一个解释良好的小示例,并附有代码片段。