Re: Custom NSCell
Re: Custom NSCell
- Subject: Re: Custom NSCell
- From: Tilo Villwock <email@hidden>
- Date: Mon, 1 Mar 2010 21:12:29 +0100
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 (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