> On 21 Apr 2016, at 1:08 PM, Quincey Morris > <[email protected]> wrote: > > On Apr 20, 2016, at 19:59 , Graham Cox <[email protected]> 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 protected]) 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 [email protected]
