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

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
I may have found what I needed here: http://developer.apple.com/qa/qa2006/qa1487.html On Jul 30, 2009, at 03:29:19, Rick Mann wrote: Hmm. After looking at the sample code suggested by the docs for NSAttributedString, I'm left at square one. Most of the samples required upgrading their Xcod

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
Hmm. After looking at the sample code suggested by the docs for NSAttributedString, I'm left at square one. Most of the samples required upgrading their Xcode projects. Some crash when run. Others get errors compiling. One even dumps a stack trace to the error log when it compiles. None t

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, 2

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

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