• 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: table bindings, value transformer per row?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: table bindings, value transformer per row?


  • Subject: Re: table bindings, value transformer per row?
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 16 Oct 2008 16:59:21 -0700

i was asking about the "value transformer" that is specified for the binding. i am aware that it is quite easy to change formatters.

thanx anyway,
ken


At 5:49 PM -0600 10/16/08, Keary Suska wrote:
On Oct 15, 2008, at 7:35 PM, email@hidden wrote:

i've got a bound table view. is it possible to use a different value transformer based on which row of the table is being displayed/edited? and if so, how?


Yes, you can. The formatter is a property of the cell, and not the column, per se. You need an object that is the tableview's delegate, then implement -tableView:willDisplayCell:forTableColumn:row:. NSCell has a -setFormatter: method for your convenience. I have used this successfully without error, but I haven't performance tested it. I don't suspect that it is much slower.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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: table bindings, value transformer per row?
      • From: Ron Lue-Sang <email@hidden>
References: 
 >table bindings, value transformer per row? (From: "email@hidden" <email@hidden>)
 >Re: table bindings, value transformer per row? (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Sharing a Bindings Controller between nibs
  • Next by Date: Error in NSTask launch
  • Previous by thread: Re: table bindings, value transformer per row?
  • Next by thread: Re: table bindings, value transformer per row?
  • Index(es):
    • Date
    • Thread