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: Graham Cox <email@hidden>
- Date: Thu, 21 Apr 2016 15:16:19 +1000
> On 21 Apr 2016, at 1:08 PM, Quincey Morris <email@hidden> wrote:
>
> On Apr 20, 2016, at 19:59 , Graham Cox <email@hidden> wrote:
>>
>> What’s the correct way to append an anchor to a URL?
>
> I believe you need to use NSURLComponents, and specify the “fragment” property.
>
Thanks, that works…
But it’s 10.9+ only. I really need a solution that will work back to 10.7 (or 10.8 at the latest).
Annoying that the ‘fragment’ property of NSURL is read-only, that looks like an obvious way to do it, if the API was sane.
—Graham
_______________________________________________
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