• 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: 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


  • Follow-Ups:
    • Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
      • From: Kyle Sluder <email@hidden>
References: 
 >Problem with NSValueTransformer, NSTableView and NSAttributedString (From: Donnie Lee <email@hidden>)

  • Prev by Date: Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
  • Next by Date: Re: Opinion on managed memory and garbage collection
  • Previous by thread: Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
  • Next by thread: Re: Problem with NSValueTransformer, NSTableView and NSAttributedString
  • Index(es):
    • Date
    • Thread