• 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: bindings, NSTableView and overriding drawRow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings, NSTableView and overriding drawRow


  • Subject: Re: bindings, NSTableView and overriding drawRow
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 23 Nov 2004 19:44:09 -0500


On Nov 23, 2004, at 6:25 PM, Byron Wright wrote:



I am attempting to override drawRow in a subclass of NSTableView and don't want to break binding support. I don't want to draw using a custom cell because I would like to be able to use different data cells for different columns. So my question is, how can one programatically query the NSTableColumn's binding information to figure out the key paths? So say the column has been bound like :


this is asked somewhat frequently.

Short answer, you can't. You instead need to override NSTableColumn, and sock away the values someplace in your subclass by overriding bindTo:...

    there should be many more detailed answers in the archives.

_______________________________________________
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


References: 
 >bindings, NSTableView and overriding drawRow (From: Byron Wright <email@hidden>)

  • Prev by Date: Re: NSController and NSCalendarDate
  • Next by Date: /Users/name/project/build/project.build/project.build/Objects-normal/ppc/m ain.ob
  • Previous by thread: bindings, NSTableView and overriding drawRow
  • Next by thread: How to receive pending notifications in a thread before exiting?
  • Index(es):
    • Date
    • Thread