• 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: -[NSURL path] "If the path has a trailing slash it is stripped"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSURL path] "If the path has a trailing slash it is stripped"


  • Subject: Re: -[NSURL path] "If the path has a trailing slash it is stripped"
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 09 Apr 2012 10:55:13 -0500

On Apr 9, 2012, at 12:18 AM, Jerry Krinock wrote:

> In the documentation of -[NSURL path], it says:
>
>    "If the path has a trailing slash it is stripped."
>
> Indeed, when I create an NSURL from the string "http://example.com/blah/";, its -path is "/blah".
>
> Does anyone know why?  I need the path, the whole path, verbatim.
>
> Also, does anyone know a workaround to avoid this stripping?

Perhaps CFURLCopyPath()?  Or, if that has the same problem, CFURLGetByteRangeForComponent() and CFURLGetBytes(), perhaps with some tweaking of the range.

Regards,
Ken


_______________________________________________

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

  • Follow-Ups:
    • Re: -[NSURL path] "If the path has a trailing slash it is stripped"
      • From: Jerry Krinock <email@hidden>
References: 
 >-[NSURL path] "If the path has a trailing slash it is stripped" (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSAffineTransform on iOS
  • Next by Date: Re: -[NSURL path] "If the path has a trailing slash it is stripped"
  • Previous by thread: -[NSURL path] "If the path has a trailing slash it is stripped"
  • Next by thread: Re: -[NSURL path] "If the path has a trailing slash it is stripped"
  • Index(es):
    • Date
    • Thread