Can you tell us why you want the trailing slash maintained? Pretty much all 
path-based APIs on OS X ignore such slashes, so I'm assuming you want it for 
another reason. There may be a better API we can suggest.

On 9 Apr 2012, at 06:18, 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?  I'm afraid that 
> re-implementing -[NSURL path] myself would require studying IETF (RFC) 
> documents for about six weeks before I understood all the corner cases with 
> 99.99% confidence.
> 
> Thanks,
> 
> Jerry Krinock
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net
> 
> This email sent to cocoa...@mikeabdullah.net


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to