• 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: Easy question about URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy question about URLs


  • Subject: Re: Easy question about URLs
  • From: Nir Soffer <email@hidden>
  • Date: Tue, 27 Mar 2007 01:38:18 +0200


On Mar 22, 2007, at 22:38, James Bucanek wrote:

James Bucanek wrote on Friday, March 9, 2007:
What I'd like to do is have my application open a document at a particular location. I'd like to do
this by pasing the application an url to open in the form
'file:///path/to/document.doc?at=location/in/document'.

This is not a valid url - file url scheme is not the same has http url scheme. See RFC 1738
http://rfc.net/rfc1738.html#s3.10


I think that the simplest solution would be to have your own private url scheme, which can use any format you like.

You need to register this url scheme in your Info.plist file, and register an apple event handler for open url. The system send the url as is, and you can parse the "query" easily.


Best Regards,

Nir Soffer

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: Easy question about URLs (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: MouseMoved Events, Window Activation, Borderless Windows, and Panels :(
  • Next by Date: Re: setKeyEquivalent: gives two action invocations
  • Previous by thread: Re: Easy question about URLs
  • Next by thread: Adding Checkboxes and PopUp Menus to OutlineViews
  • Index(es):
    • Date
    • Thread