• 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: NSTableView -setDataCell confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView -setDataCell confusion


  • Subject: Re: NSTableView -setDataCell confusion
  • From: Andreas Mayer <email@hidden>
  • Date: Tue, 30 Jun 2009 13:20:55 +0200


Am 27.06.2009 um 22:18 Uhr schrieb Chase Meadors:

I'm using AMIndeterminateProgressIndicatorCell (at least the drawing code) to imitate a progress indicator in the table view. To get it to use the custom cell, I've been calling

[myTableColumn setDataCell:[[MyCustomClass alloc] init]];

However, I've run into a 'slight' problem. Apparently, ALL of the cells in this column are that one, same, object. When I tested with F-script, I found that they have the exact same description, and same memory address.

Yes, they are. But what exactly is the problem with that?

This explains why bindings affecting one cell would affect all of them...

The sample project does contain a table view and shows how to show/ hide the progress indicator in a particular row.


In  -tableView:objectValueForTableColumn:row:  just return YES or NO.

If you want to use bindings, you bind to the table column (containing the progress indicator). I just tested this and it works as intended.


Andreas _______________________________________________

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


References: 
 >NSTableView -setDataCell confusion (From: Chase Meadors <email@hidden>)

  • Prev by Date: multitouch trackpad on macbook pro
  • Next by Date: Re: NSTableView -setDataCell confusion
  • Previous by thread: Re: NSTableView -setDataCell confusion
  • Next by thread: Re: [bulk]: Re: GC pros and cons
  • Index(es):
    • Date
    • Thread