Re: Easy question about URLs
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