Re: Once again: Clickable hyperlink in NSTableView
Re: Once again: Clickable hyperlink in NSTableView
- Subject: Re: Once again: Clickable hyperlink in NSTableView
- From: "Johannes Fahrenkrug" <email@hidden>
- Date: Mon, 4 Feb 2008 16:58:09 +0100
Hi Stephane,
Thank you for your reply.
I don't have to select the rows, having the cell clickable would be
enough: But the cell is not a hyperlink in every row: in some rows,
the cell should display a clickable URL, in other cases it displays a
status or error msg text.
- Johannes
On Feb 4, 2008 1:11 PM, Stephane Sudre <email@hidden> wrote:
>
>
> 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
>
--
Springenwerk Consulting
Johannes Fahrenkrug
Reesenberg 3
24582 Bordesholm
Germany
Tel: +49 (0)160 630 5927
_______________________________________________
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