• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem with NSValueTransformer, NSTableView and NSAttributedString (From: Donnie Lee <email@hidden>)
 >Re: Problem with NSValueTransformer, NSTableView and NSAttributedString (From: Jim Correia <email@hidden>)
 >Re: Problem with NSValueTransformer, NSTableView and NSAttributedString (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Beginner Question Re: Memory Management
  • Next by Date: Re: Amount of Arguments per Method
  • Previous by thread: Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
  • Next by thread: Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
  • Index(es):
    • Date
    • Thread