• 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: Custom View Table Views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom View Table Views


  • Subject: Re: Custom View Table Views
  • From: Corbin Dunn <email@hidden>
  • Date: Tue, 25 Jul 2006 15:41:30 -0700


On Jul 25, 2006, at 12:35 PM, Mike Abdullah wrote:

The biggest problem I've found is how NSCell works. The table view only uses one NSCell to do its drawing. Rather than having a cell for each row of the table, it has a single cell that is copied and released as appropriate.


This is actually a feature! It makes tables have good performance.

Obviously, what you want to do instead is have an instance of your cell for each row of the table. If you're using 10.4 only, a good workaround may be to use the cellForRow: method.


You mean, dataCellForRow:, and it is a method on NSTableColumn that you must subclass and override to return a custom cell.


-corbin

(PS: WWDC plus: i'll be covering this and more in the "Beyond Buttons and Sliders" talk at WWDC)
_______________________________________________
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: Custom View Table Views
      • From: Chris Suter <email@hidden>
    • Re: Custom View Table Views
      • From: Mike Abdullah <email@hidden>
References: 
 >Custom View Table Views (From: Thom McGrath <email@hidden>)
 >Re: Custom View Table Views (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: ZIP archives
  • Next by Date: Re: ZIP archives
  • Previous by thread: Re: Custom View Table Views
  • Next by thread: Re: Custom View Table Views
  • Index(es):
    • Date
    • Thread