setControlView broken?
setControlView broken?
- Subject: setControlView broken?
- From: Mike Abdullah <email@hidden>
- Date: Sat, 15 Apr 2006 13:41:05 +0100
Has anyone else had a problem with the controlView and
setControlView: methods in NSCell? I have my own custom subclass of
NSCell which is being placed in a tableview.
The tablecolumn which the cell is drawn in has also been subclassed
to override cellForRow: in order to have a seperate cell for each row
of the table.
Now as is, when I call controlView from the cell, I get null. This
is not entirely surprising since my tablecolumn is the one who
initializes the cell and it does not set the controlView. But, if I
do call setControlView: when initializing the cell, the cell does not
seem to "remember" this. When I then call controlView I still get null.
But, if I override setControlView: and controlView to store the view
myself, then everything works perfectly. So does this mean that
setControlView: simply doesn't work?
Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden