• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView with images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSTableView with images (From: "John Baker" <email@hidden>)

  • Prev by Date: Re: NSString Variable Comparision
  • Next by Date: Re: NSString Variable Comparision
  • Previous by thread: Re: NSTableView with images
  • Next by thread: NSMatrix with Custom NSCells
  • Index(es):
    • Date
    • Thread