• 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
NSTableColumn & binding value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableColumn & binding value


  • Subject: NSTableColumn & binding value
  • From: Kaspar Fischer <email@hidden>
  • Date: Mon, 28 Mar 2005 05:14:24 +0200

Hi everybody,

I have a conceptual question regarding tables. I want
to create a table with two columns, one holding
text cells and one holding buttons with images. The
model behind the table provides the text to be dis-
played in the text cells and also the images for the
buttons. (Potentially, every row can have a button
with a different image.)

I therefore created an NSArrayController and bound
the value of the first NSTableColumn to this controller
with controller-key "arrangedObjects" and model-path
"name". This works fine.

For the second column, I want to bind the image of
NSTableColumn's buttons to the image provided by the
model. So I want to do something like binding the
second column to the controller with controll-key
"arrangedObjects" and model-path "image" BUT: this
binding should NOT bind the value of the button
BUT ITS IMAGE. How can I do this?

Thanks,
Kaspar

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableColumn & binding value
      • From: Kaspar Fischer <email@hidden>
    • Re: NSTableColumn & binding value
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Custom Cell highlighting
  • Next by Date: Re: NSTableColumn & binding value
  • Previous by thread: Re: [pool release] causes error?
  • Next by thread: Re: NSTableColumn & binding value
  • Index(es):
    • Date
    • Thread