copyWithZone and TableView, firing it sooner?
copyWithZone and TableView, firing it sooner?
- Subject: copyWithZone and TableView, firing it sooner?
- From: Duncan Oliver <email@hidden>
- Date: Wed, 21 Jan 2004 10:49:20 -0600
I'm having a bit of a problem figuring this one out.
I was making a custom ColorWellCell class (currently a subclass of
NSButtonCell) that basically creates an instance of NSColorWell and
set's it's frame to that of the cell. Almost everything works fine. The
only problem I'm having is when a new row is created. If a table column
has my ColorWellCell set as the dataCell, it doesn't draw properly
until you try to click in the bounds of the new cell, which fires the
table views mouseDown: method, and sequentially, the dataCell's
copyWithZone method. I was wonder if there was anyway to make the
copyWithZone fire from the dataCell when the row is first added, and I
was hoping to keep ColorWellCell self-contained. Are the cells just not
created until they need to receive a action? Am I going to have to
subclass NSTableView? Thanks for the help.
Duncan Oliver
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.