Re: Custom cell in NSTableView
Re: Custom cell in NSTableView
- Subject: Re: Custom cell in NSTableView
- From: Lee Morgan <email@hidden>
- Date: Wed, 1 Jun 2005 00:12:16 -0400
I recommend using two nstextfieldcells within your cell subclass.
Using views within cells can be... well painful, due to the way cells
draw themselves - plus using a view (or two) within a cell has extra
memory and cpu costs that you simple don't need to deal with since
you simply want two vertical text field cells.
To get the thin black line you'll simply use quartz to draw the line.
- lee
P.S. I'm finishing up my LMStatusCell sublcass (which displays a
nsprogressindicator or a image) - I can give you the source to it in
a few days if you like - it might save you some time trying to learn
how to subclass nscell (and nscontrol).
Only problem is, I can't find a way to expose extra bindings for my
cell in Interface Builder.
On May 31, 2005, at 8:24 PM, Gregory Olds wrote:
Ok, that makes sense but I'm not sure how to properly subclass
NSCell. What I want to do is put 2 text fields in a sell (one on
top of the other) separated by a thin black line. So do I make a
custom view that looks like what I want and then have the custom
cell draw this custom view inside itself? This would seem to lose
the lightweight advantage of the NSCell.
_______________________________________________
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