Re: Drawing content in NSTableView Cells
Re: Drawing content in NSTableView Cells
- Subject: Re: Drawing content in NSTableView Cells
- From: j o a r <email@hidden>
- Date: Mon, 16 May 2005 20:29:49 +0200
Simply subclass NSCell and override the drawing primitives to do your
custom drawing. Oh, you also need to set your cell subclass to be the
data cell of the column in question of course.
You can certainly find sample code from Apple or third parties if you
want some pointers how to get started (Google...). I think you need
to provide a more specific question if you want a more concrete answer.
j o a r
On 16 maj 2005, at 20.24, Tom Hancocks wrote:
Um, this probably seems really trivial, but hey, you only learn by
asking questions, don't you? Anyway I would like to know how to
draw graphics in to a NSTableView's cell, such as an icon, and
gradient and move the position of the caption.
I know this is possible but i'm not sure how. If i didn't explain
that properly, then the finder uses it on its sidebar thing, and
mail uses it, iChat uses it etc.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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