NSNotificationCenter 可以在不同的应用程序之间进行通信吗? [英] Can NSNotificationCenter be used between different apps to communicate?

查看:43
本文介绍了NSNotificationCenter 可以在不同的应用程序之间进行通信吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个应用程序可以在内部使用 NSNotificationCenter 来让不同的部分相互通信,但是这可以扩展到不同的应用程序可以使用它进行通信吗?

An app can make internal use of NSNotificationCenter for different parts to communicate with each other, but can this be extended such that differing apps can use it to communicate?

编辑:对于 iOS 与 OSX 的混淆,我们深表歉意.我只添加了 iOS 标签,我不知道如何/谁/为什么也添加了 Objective-c 标签,这不是我.

Edit: sorry for the confusion about iOS versus OSX. I only added the iOS tag, I don't know how/who/why an objective-c tag also got added, it wasn't me.

推荐答案

抱歉我的回答很简短,但在这种情况下,这就是全部 - 不,他们不能.

Sorry for a brief answer but in this case that's all there is to it - no they cannot.

您可以注册以处理 URL 类型,然后以这种方式启动传递一些数据.

You can register to handle a URL type and then launch pass some data that way.

这篇关于NSNotificationCenter 可以在不同的应用程序之间进行通信吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆