• 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
NSTableView cell's drawing backgrounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSTableView cell's drawing backgrounds
      • From: j o a r <email@hidden>
  • Prev by Date: Re: { Semi-Newbie } Inverse of +initialize?
  • Next by Date: Re: cascading documents
  • Previous by thread: Fwd: What about Los Angeles? [was Re: Toronto cocoa programmers?]
  • Next by thread: Re: NSTableView cell's drawing backgrounds
  • Index(es):
    • Date
    • Thread