• 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: Retrieving Multiple Anchor Tags.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving Multiple Anchor Tags.


  • Subject: Re: Retrieving Multiple Anchor Tags.
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 15 May 2009 02:56:31 -0400

On Thu, May 14, 2009 at 10:50 AM, Philip Juel Borges
<email@hidden> wrote:
> The code below retrieves an anchor tag name '25' from the '1.html' document
> when I type '25' in my NSTextField, and loads it in WebView.
> But the '1.html' document contains many numerical anchor tags. Does anybody
> know how I can retrieve any anchor tag I type in NSTextField and load it in
> WebView?

To make sure I'm understanding this correctly... it seems like you're
implying that you do a lookup based on what has been typed into a text
field and then call one of a number of action methods, named
gotoAnchorTag1:, gotoAnchorTag2:, etc. all the way through 25?

Why not just use an NSNumberFormatter and feed the text field's value
straight to your -gotoAnchor: code?

--Kyle Sluder
_______________________________________________

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

References: 
 >Retrieving Multiple Anchor Tags. (From: Philip Juel Borges <email@hidden>)

  • Prev by Date: Retrieving Multiple Anchor Tags.
  • Next by Date: Re: Retrieving Multiple Anchor Tags.
  • Previous by thread: Retrieving Multiple Anchor Tags.
  • Next by thread: Re: Retrieving Multiple Anchor Tags.
  • Index(es):
    • Date
    • Thread