Re: Hyperlinks in Table Views

2010-01-27 Thread Corbin Dunn
> I think I may have got this to work, so here goes: > > The data cell for the table column displaying the hyperlink is now a custom > NSTextFieldCell with the following implementation over-ridden: > > - (NSUInteger)hitTestForEvent: (NSEvent *)event > i

RE: Hyperlinks in Table Views

2010-01-27 Thread David Doyle
string's bounds, but at least the hyperlink actually opens now. Thanks for your help! From: cocoa-dev-bounces+david.doyle=sophos@lists.apple.com [cocoa-dev-bounces+david.doyle=sophos@lists.apple.com] On Behalf Of Jerry Krinock [je...@ieee.org] Sent: 11 January

Re: Hyperlinks in Table Views

2010-01-11 Thread Jerry Krinock
This might help you: http://developer.apple.com/mac/library/releasenotes/cocoa/AppKitOlderNotes.html#NSTableView Note especially the section titled "NSTableView/NSOutlineView - Single click to edit" ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Hyperlinks in Table Views

2010-01-11 Thread David Doyle
Hi all; I'm trying to display a list of clickable hyperlinks inside a table view. The current approach I'm taking is to use a table column with a NSTextFieldCell data cell, with a value attribute that is bound to an attributed string value, constructed in a value transform

Re: Hyperlinks in NSAttributedString?

2009-07-31 Thread James Walker
Rick Mann wrote: I may have found what I needed here: http://developer.apple.com/qa/qa2006/qa1487.html That QA omits the possibility of using NSCursorAttributeName to make the cursor change when you mouse over the link. However, to do that you need NSTextView, not NSTextField. -- James

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
thing? On Jul 30, 2009, at 03:10:50, Rick Mann wrote: Great, thank you! On Jul 30, 2009, at 03:03:13, Тимофей Даньшин wrote: Yes, it is possible. See the docs for NSAttributedString for details. There was also an example of how to make hyperlinks, the link to that sample code, i suppose, mu

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
it is possible. See the docs for NSAttributedString for details. There was also an example of how to make hyperlinks, the link to that sample code, i suppose, must be there, too. Best regards, Timofey On Jul 30, 2009, at 1:53 PM, Rick Mann wrote: I need to render short sentences in my UI, and

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
Great, thank you! On Jul 30, 2009, at 03:03:13, Тимофей Даньшин wrote: Yes, it is possible. See the docs for NSAttributedString for details. There was also an example of how to make hyperlinks, the link to that sample code, i suppose, must be there, too. Best regards, Timofey On Jul 30

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Тимофей Даньшин
Yes, it is possible. See the docs for NSAttributedString for details. There was also an example of how to make hyperlinks, the link to that sample code, i suppose, must be there, too. Best regards, Timofey On Jul 30, 2009, at 1:53 PM, Rick Mann wrote: I need to render short sentences in my

Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
I need to render short sentences in my UI, and make certain words clickable (and differently-styled). I know I can use a web view, but that seems like overkill. I currently have a multiline NSTextField. Is it possible to display an NSAttributedString, and have the cursor change over clickab

Re: Hyperlinks

2009-01-09 Thread Matthew Morton
Thank you both for this. Much appreciated. On 9 Jan 2009, at 03:15, Sean McBride wrote: Matthew Morton (mattmor...@me.com) on 2009-01-08 7:02 AM said: have bound the value of the NSTextField to an NSAttributedString in a custom class and set attributes for NSLinkAtributeName, NSForegroundCo

Re: Hyperlinks

2009-01-08 Thread Sean McBride
Matthew Morton (mattmor...@me.com) on 2009-01-08 7:02 AM said: >have bound the value of the NSTextField to an NSAttributedString in a >custom class and set attributes for NSLinkAtributeName, >NSForegroundColorAtributeName, and NSUnderlineStyleAttributeName. If you're interested, you can get the c

Re: Hyperlinks

2009-01-08 Thread Greg Titus
Hi Matt, You need to use an NSTextView here rather than an NSTextField. The behavior you are seeing is because an NSTextField is not 'active' until clicked upon, and then it gets the window's field editor (which is a shared NSTextView used by all fields on the window), and places that vie

Hyperlinks

2009-01-08 Thread Matthew Morton
Hi all, I have a NSTextField in Interface Builder that is quite large and includes a number of lines, one of which I want to be a hyperlink. I have bound the value of the NSTextField to an NSAttributedString in a custom class and set attributes for NSLinkAtributeName, NSForegroundColorAt