为应用程序创建URI [英] Create an URI for an application
本文介绍了为应用程序创建URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为我的应用程式建立URI。例如,如果我的应用程式名称为「GetIt」:
I want to have an URI for my app. For example, if my app's name is "GetIt":
getit://
getit://
是否有一种简单的方法来创建一个?
Is there an easy way to create one?
推荐答案
对于GetURL事件,然后在您的应用程序包中放置一个URL方案列表。 Kimbro Staken有一篇包含更多详情的博文。
Create an Apple event handler for the GetURL event, then put a list of URL schemes in your app bundle. Kimbro Staken has a blog post with more details.
我认为有一些可重用的Cocoa源代码浮动,为你处理AE处理程序,但我忘了它的名称和在哪里得到它。
I think there's some reusable Cocoa source code floating around that takes care of the AE handler for you, but I forgot its name and where to get it.
这篇关于为应用程序创建URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文