Objective-C - NSProxy 类有哪些用途?

发布于 2024-12-17 11:50:24 字数 44 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沧桑㈠ 2024-12-24 11:50:24

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

再见回来 2024-12-24 11:50:24

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文