Re: Correct way to specify anchors with NSURL?
Re: Correct way to specify anchors with NSURL?
- Subject: Re: Correct way to specify anchors with NSURL?
- From: Quincey Morris <email@hidden>
- Date: Wed, 20 Apr 2016 22:22:14 -0700
- Feedback-id: 167118m:167118agrif8a:167118s5N7Wtmkm8:SMTPCORP
On Apr 20, 2016, at 22:16 , Graham Cox <email@hidden> wrote:
>
> But it’s 10.9+ only. I really need a solution that will work back to 10.7 (or 10.8 at the latest).
Then I’d guess you’d need to construct the entire URL as a string first, then use initWithString. Presumably ‘URLByAppendingPathComponent’ %-encodes a # because you’ve told it that your substring is a *path* component. If you give it a whole string, I’d assume it figures out that it’s got a “fragment” at the end.
But I’m just guessing now.
_______________________________________________
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