Well, since I'm subclassing NSCell and only override the method 
drawInteriorWithFrame: why is there a need to override copyWithZone: as well? I 
don't store any data within the Class.

Am 01.03.2010 um 20:59 schrieb Nick Zitzmann:

> 
> On Mar 1, 2010, at 12:45 PM, Tilo Villwock wrote:
> 
>> I've created a custom NSCell Object to layout some different text attributes 
>> of a custom data object in a NSTableView, but for some reason all the 
>> attributes of the different data objects are only displayed in the first row 
>> and nothing at all in the other rows. Every row receives a separate data 
>> object via the NSTableViewDataSource methods.
>> In applicationDidFinishLaunching: I created an instance of my custom NSCell 
>> class and put it in place for the right column.
>> Any thoughts what might cause this behaviour? I don't assume it is necessary 
>> to create a new instance of my NSCell class for every row I have, right?
> 
> Does your cell subclass support NSCopying?
> 
> Nick Zitzmann
> <http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to