Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
- Subject: Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
- From: Jim Correia <email@hidden>
- Date: Tue, 23 Jun 2009 00:12:30 -0400
On Jun 21, 2009, at 10:37 AM, Donnie Lee wrote:
I created NSTableView and bind table column with NSTextFieldCell with
custom NSValueTransformer subclass to NSArrayController. My value
transformer should return NSAttributedString transformed from
NSString. Everything works fine except that the table shows NSString
instead of NSAttributedString. It looks like: "My text{NSFont =
"LucidaGrande....}". How to make the right behavior for my value
transformer?
The documentation for the value binding of NSTableView says that
NSString and NSNumber are the supported value types.
http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSTextFieldCell.html#/
/apple_ref/doc/uid/NSTextFieldCell-DontLinkElementID_657
Jim
_______________________________________________
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