Re: NSTableView with images
Re: NSTableView with images
- Subject: Re: NSTableView with images
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 9 Jul 2003 19:58:07 +0200
At 8:15 Uhr -0500 09.07.2003, John Baker wrote:
Could someone tell me how I can get little icons next to the text in my
NSTableView, and how I can change the default look (color and texture) of the
Column titles?
You'll have to use custom cells. Check out my "NSTableView Assistant"
application, which generates such cells.
<
http://www.zathras.de/programming/cocoa_stuff.php>
What you'd do is simply generate a table column with an
NSButtonCell, which you can give a title and an image, and set the
image alignment so it's to the left of the text. For the row colors,
you'll have to set the cell's background color to one of two colors,
depending on what (row % 2) == 0 gives you.
At least that's how I'd do it. :-)
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.