Re: Retrieving Multiple Anchor Tags.
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