• 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: openURL: and fragments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openURL: and fragments


  • Subject: Re: openURL: and fragments
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Wed, 19 May 2004 23:12:42 -0700

Hello...

Cocoa (or specifically NSDocumentController and NSDocument) has a tendency to convert any file url into a file path and use the ...WithPath: versions of methods, which discards any additional information included in the url.

You are probably running into the same sort of problem, where your url is being converted to a path somewhere within the openURL code because it is a file url.

I hope someone out there has an easy solution for you, but in the case of the NSDocument/Controller issue with urls, the fix was to rewrite significant portions of those classes...

Louis

If I include a fragment (e.g. file://mypath/myfile#myfragment) in a file NSURL and try to use openURL the fragment is stripped off and ignored. No problem for http urls. What do I need to do in order for the fragment to be used by the web browser?

Thanks,

John DeSoi, Ph.D.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >openURL: and fragments (From: John DeSoi <email@hidden>)

  • Prev by Date: Re: Can't edit an NSTableView
  • Next by Date: Re: Global preferences using CFPreferences
  • Previous by thread: openURL: and fragments
  • Next by thread: How to sharpen image?
  • Index(es):
    • Date
    • Thread