Objective-C - NSProxy 类有哪些用途?
NSProxy 类有哪些用途?为什么您希望能够获得一个不存在的对象的描述?
What are some uses of the NSProxy class. Why would you want to be able to have the description of an object that doesn't exist?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
NSProxy 类提供了类的基本实现,该类的实例用于代表其他对象。我们需要 NSProxy 来实现透明的分布式消息传递或对象的延迟实例化。
NSProxy 类参考
分布式对象编程主题
The NSProxy class provides a basic implementation of a class whose instances are used to stand in for other objects. We need NSProxy to implement transparent distributed messaging or for lazy instantiation of object.
NSProxy Class Reference
Distributed object programming topics
NSProxy 是一个将消息转发到不同线程、不同进程甚至不同主机上的对象的对象。阅读有关分布式对象的文档。
An
NSProxy
is an object that forwards messages to an object on a different thread, in a different process, or even on a different host. Read the documentation on Distributed Objects.