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 that I could find generate any clickable text.

Nothing in the docs for NSAttributedString suggest I can detect clicks on certain runs.

Am I missing something?

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, 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 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 clickable words, and detect a click on those words?

Or is a webkit view really the only easy way to go?

Thanks!

--
Rick

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/ok5.admin%40gmail.com

This email sent to ok5.ad...@gmail.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com

This email sent to rm...@latencyzero.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to