Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
983 views
in Technique[技术] by (71.8m points)

objective c - Create an URI for an application

I want to have an URI for my app. For example, if my app's name is "GetIt":

getit://

Is there an easy way to create one?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...