的文檔+[NSThread detachNewThreadSelector:toTarget:withObject:]
說:NSOutration中的NSAutoreleasePool main?
對於非垃圾收集應用,上述方法
aSelector
負責 設立一個自動釋放池爲新分離的線程和釋放 該池在退出前。
我的問題是,我需要在我的-[NSOperation main]
方法的覆蓋來創建自己的NSAutoreleasePool
,或者是NSAutoreleasePool
創建由NSOperation
處理?
我認爲你必須如果他們不是主線程NSOperations,根據其他評論在這裏。 – mxcl 2011-02-10 18:50:20