• 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: Clickable textfields ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clickable textfields ...


  • Subject: Re: Clickable textfields ...
  • From: Chris Ridd <email@hidden>
  • Date: Tue, 30 Dec 2003 19:24:25 +0000

On 30/12/03 5:26 pm, J Nozzi <email@hidden> wrote:

> This has probably been covered before but I can't find it in the
> archives. I'm having a hard time figuring it out, though:
>
> I have a blue-colored NSTextField as a URL in the about box. I want
> it clickable so I can load the URL in the default browser (using
> NSWorkspace). I couldn't figure out how to do this directly with the
> NSTextField so I created a transparent button and laid it overtop the
> field but it doesn't fire unless I move it OFF the field. I also tried
> looking at NSTextFieldCell, but can't seem to grasp how I could make it
> work in this case either.
>
> Yes, I'm probably a total idiot ...
>
> Thanks, guys -n- gals.

Apple has some sample code which does this. There's also something at
cocoadev.

<http://developer.apple.com/samplecode/Sample_Code/Cocoa/TextLinks.htm>

<http://www.cocoadev.com/index.pl?ClickableUrlInTextView>

Cheers,

Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Clickable textfields ...
      • From: Scott Anguish <email@hidden>
References: 
 >Clickable textfields ... (From: J Nozzi <email@hidden>)

  • Prev by Date: Multiple declarations for method length
  • Next by Date: NSArrayController & threads
  • Previous by thread: Clickable textfields ...
  • Next by thread: Re: Clickable textfields ...
  • Index(es):
    • Date
    • Thread