Where does NSTableView get a cell's size from, if not from cellSize?
Where does NSTableView get a cell's size from, if not from cellSize?
- Subject: Where does NSTableView get a cell's size from, if not from cellSize?
- From: "Theodore H. Smith" <email@hidden>
- Date: Thu, 4 Aug 2005 21:43:11 +0100
How do you go about changing an NSCell's size? Basically, my rows are
drawing too big, and I want the rows to be drawn smaller.
I've subclassed NSComboBoxCell, but actually some of it's methods
never get called. cellSizeForBounds: and cellSize don't get called.
But the cell displays just fine. Where from is NSTableView getting
the cell height, then? If not from cellSize?
I don't get it.
NSCell's drawingRectForBounds: and drawWithFrame:inView: however, do
get called.
Changing the height in the rect in the method, drawingRectForBounds:
seems to have no effect! If I shrink the height of the cell in
drawWithFrame:inView: , it still doesn't draw properly, sometimes the
cell is drawn clipped, or other odd visual stuff happens.
I'm at a loss here, again. Where do I look for the correct
information on how to resize a row?
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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