Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSProxy真的实现-autoreleaseand吗-release?如果没有,我需要手动dealloc NSProxy实例吗?(请假设我没有使用 GC)。
NSProxy
-autorelease
-release
dealloc
感谢您为我解决这个问题。
是的,它实现了它们。NSProxy 遵循 NSObject 协议,包括保留、释放和自动释放。NSObject 不仅仅是一个类,它也是一个协议。
@interface NSProxy <NSObject>
在 NSObject 协议定义中:
- (id)retain; - (oneway void)release; - (id)autorelease;
我有这个 ant talk 将 cgi-dir 复制到 cgi-dest。
<exec executable="cp" failonerror="yes"> <arg value="-a" /> <arg value="${cgi-dir