• 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: Correct way to specify anchors with NSURL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Correct way to specify anchors with NSURL?
      • From: Jens Alfke <email@hidden>
    • Re: Correct way to specify anchors with NSURL?
      • From: Quincey Morris <email@hidden>
References: 
 >Correct way to specify anchors with NSURL? (From: Graham Cox <email@hidden>)
 >Re: Correct way to specify anchors with NSURL? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Text field alignment
  • Next by Date: Re: Correct way to specify anchors with NSURL?
  • Previous by thread: Re: Correct way to specify anchors with NSURL?
  • Next by thread: Re: Correct way to specify anchors with NSURL?
  • Index(es):
    • Date
    • Thread