Objective-C 远程消息功能是否已弃用?
我发现 Objective-C 语言中有某种远程消息传递功能。但它不再被记录。它已被弃用吗?该功能发生了什么?
I discovered there is some kind of remote-messaging feature were in Objective-C language. But it is no longer documented. Is it deprecated? What's happening in the feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的意思是这些:
分布式对象
当然不是据我所知已弃用。更多的是被其他机制篡夺。
You mean these:
Distributed Objects
Certainly not deprecated as far as I know. More usurped by other mechanisms.
您会更高兴用其他东西来实现远程消息传递。分布式对象在 Cocoa 框架中仍然可用,但可能很难使用;例如,缺乏文档和示例,以及很多陷阱。
ZeroMQ 是用于进行远程消息传递的第三方技术。 BLIP 是另一个。两者都有 Objective-C API。
您还可以使用 JSON 和 NSURLConnection 或嵌入式 HTTP 服务器来推出您自己的东西。
You'll be happier implementing remote messaging with something else. Distributed Objects is still available in the Cocoa framework, but it can be difficult to work with; eg lack of documentation and examples, and lots of gotchas.
ZeroMQ is third party technology for doing remote messaging. BLIP is yet another. There are Objective-C APIs for both.
You could also roll your own thing using JSON and NSURLConnection or embedded HTTP servers.