> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo