• 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 NSCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Custom NSCell (From: Tilo Villwock <email@hidden>)
 >Re: Custom NSCell (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Trouble with core data and Save As
  • Next by Date: Re: NSXMLDocument outputs numbers in exponential format?
  • Previous by thread: Re: Custom NSCell
  • Next by thread: Re: Custom NSCell
  • Index(es):
    • Date
    • Thread