Alternatives to NSMatrix and NSTable?
Alternatives to NSMatrix and NSTable?
- Subject: Alternatives to NSMatrix and NSTable?
- From: Colin Howarth <email@hidden>
- Date: Thu, 25 May 2006 11:17:08 +0200
Hi,
I'm new to Cocoa and still trying things out. I'd like a spreadsheet
type display. The columns can be of different widths and the rows of
different heights.
NSMatrix would seem to be right, except that all the cells have to be
the same size.
NSTable seems to be more suitable for displaying a database (table of
records).
So, do I need to create a custom view using NSControl and NSCell ? If
so, I'm not getting very far with the NSControl documentation. :-(
a) certain methods (eg. drawCell:) refer to cells "belonging" to an
NSControl. How do cells belong to a control? NSCell/setControlView?
b) how does a control know which cells it owns? Does one implement
this oneself?
c) sizeToFit: resizes the control to fit its cell. How do I size/
locate the cells? NSCell/setControlSize? How about locating it within
the control view?
Is there perhaps some more detailed documentation on all this and/or
some example code?
The "Introduction to Control and Cell Programming Topics for Cocoa"
doesn't seem to help.
Thanks,
colin
_______________________________________________
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