Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
- Subject: Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
- From: Donnie Lee <email@hidden>
- Date: Tue, 23 Jun 2009 09:49:11 +0400
Hello,
> On Mon, Jun 22, 2009 at 9:12 PM, Jim Correia<email@hidden> wrote:
>> The documentation for the value binding of NSTableView says that NSString
>> and NSNumber are the supported value types.
>
> I do not see where you're finding this. The bindings documentation
> says: "The object should be suitable for the passing to
> setObjectValue." Maybe it's in the conceptual docs?
Unfortunately, he is right. In "Value Bindings" section we can read
about "value" property: "An NSString or NSNumber that is displayed as
the content of the NSTextFieldCell". I even tried to subclass
NSTextFieldCell and redefine setObjectValue: method -- nothing, the
values are already NSCFString, not NSAttriubtedString, so I shall just
drop NSArrayController and write DataSource in code.
_______________________________________________
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