• 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: Once again: Clickable hyperlink in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Once again: Clickable hyperlink in NSTableView


  • Subject: Re: Once again: Clickable hyperlink in NSTableView
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 4 Feb 2008 13:11:35 +0100


On 4 févr. 08, at 12:45, Johannes Fahrenkrug wrote:

Dear fellow developers,

I'm pretty new to both Cocoa programming and this list. I know the
following questing has been both asked and answered before, but I'm
still stuck.

I need to have a clickable hyperlink in one of my NSTableView columns.
I get the NSAttributedString to display nicely (blue and underlined),
but I can't click on it.
It seems as if my click never "reaches" the hyperlink.

I was - hopefully - pointed into the right direction here:

http://www.cocoabuilder.com/archive/message/cocoa/2006/3/16/158845

I tried the obove sample code in my
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)row
datasource method. Like I said: it's working as far as it's showing up
as a blue underlined string, just not clickable :(

My TableCell is of the type NSTextFieldCell.

You need the cell to be clickable and the row to be selectable through this cell, or just clickable is enough?


In the second case, a NSButtonCell would be enough.

_______________________________________________

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: Once again: Clickable hyperlink in NSTableView
      • From: "Johannes Fahrenkrug" <email@hidden>
References: 
 >Once again: Clickable hyperlink in NSTableView (From: "Johannes Fahrenkrug" <email@hidden>)

  • Prev by Date: Checkbox state inside a function
  • Next by Date: ContextualMenu in text
  • Previous by thread: Once again: Clickable hyperlink in NSTableView
  • Next by thread: Re: Once again: Clickable hyperlink in NSTableView
  • Index(es):
    • Date
    • Thread