NSTableView cell's drawing backgrounds
NSTableView cell's drawing backgrounds
- Subject: NSTableView cell's drawing backgrounds
- From: Phillip Hutchings <email@hidden>
- Date: Sat, 12 Oct 2002 22:51:12 +1300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK, What I am trying to to is use the striped backgrounds (like in
iTunes) on a NSTableView. I used the code from Apple's MP3 player
example. It works fine, for the most part.
I am creating the table view in InterfaceBuilder, setting the number of
columns to 5 and setting the custom class to my subclass.
The problem is that, while the first two columns draw the background
normally, the 3 new columns are drawing solid white backgrounds on the
cells, and the blue stripes are showing through where the grid would
be. I've confirmed the problem by setting the table's background in
InterfaceBuilder, the first two columns are solid colour (in this case
peach), but the new 3 look like they have a peach grid on.
I can't find any setting in IB for this, is there any way in IB? Or do
I have to do it programatically, if so, how? I can't find any
information in NSTableColumn on backgrounds. At the moment all the
columns have text in, so I guess these are NSTextCells? Could the
tableView: objectForTableColumn: row: method return a NSTextCell with
the background off?
- -------------------------------
Phillip Hutchings
http://www.sitharus.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj2n764ACgkQ1PJqI21cmKC1MACfYgWWqsKQOsi2H4Yx3WHF/JcJ
9OsAn3B/ztLtXIas3Fl9wRI+1MkmtIAi
=6ofQ
-----END PGP SIGNATURE-----
_______________________________________________
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.