• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting application to be the default application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting application to be the default application


  • Subject: Re: Setting application to be the default application
  • From: Ryan Homer <email@hidden>
  • Date: Tue, 8 Jan 2008 18:13:54 -0500

Thanks Mike. This info helps a lot.

---

I have also discovered some additional information that may help others. While this is not Cocoa-specific, many Cocoa application developers will still need to know about this. Anyway, this associates your application with a particular type of URL. So if you are, for example, writing an FTP application (and I'm not ;-), then you need to make an entry into your application's info.plist file like this:

<key>CFBundleURLTypes</key>
<array>
	<dict>
		<key>CFBundleURLName</key>
		<string>FTP URL</string>
		<key>CFBundleURLSchemes</key>
		<array>
			<string>ftp</string>
			<string>sftp</string>
			.
			.
			.
		</array>
	</dict>
</array>

There seems to be no way to access this directly from Xcode. When you go into your application's target properties (the area where you set your Principal Class and Main Nib File), you may first think that this is all that's in your info.plist, but if you click on the "Open Info.plist as File" button, there's a lot more than the interface leads you to believe.

On 8-Jan-08, at 2:27 PM, Mike Abdullah wrote:

UTIs and all of this stuff are outside the scope of Cocoa; they apply to all apps on the system. Documentation should be pretty easy to find. e.g. http://developer.apple.com/macosx/uniformtypeidentifiers.html

Mike.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Setting application to be the default application (From: Ryan Homer <email@hidden>)
 >Re: Setting application to be the default application (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Controlling field editor for an outline view
  • Next by Date: Cut/Paste and Drag problem with Intel Mac in 10.4.11
  • Previous by thread: Re: Setting application to be the default application
  • Next by thread: Trouble getting CALayers to be transparent
  • Index(es):
    • Date
    • Thread