• 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: Can we add different colors to groups of columns in non-custom TableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can we add different colors to groups of columns in non-custom TableView?


  • Subject: Re: Can we add different colors to groups of columns in non-custom TableView?
  • From: j o a r <email@hidden>
  • Date: Wed, 11 Jan 2006 12:25:04 +0100


On 11 jan 2006, at 12.19, praveen kumar wrote:

My TL is asking me to apply different colors to groups of colums of non-custom tableview. I tried my best , but i can't able to do it.
I can able to do for a couple of rows which contain data, but the remaining empty rows are not affecting. so, please give me the idea to achieve it.

You would most likely need to use a NSTableView subclass to achieve this. You could probably base a solution on this sample:


<http://developer.apple.com/samplecode/MP3_Player/MP3_Player.html>

It was often used to created striped table views before Apple added this to NSTableView.
There are also a lot of discussions on that topic in the list archives that might be of interest to you. Search for "alternating". Also note that there are convenience methods in NSTableView to return the rect of colums and rows.


j o a r


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

References: 
 >Can we add different colors to groups of columns in non-custom TableView? (From: praveen kumar <email@hidden>)

  • Prev by Date: Re: Getting WebView and JavaScript to communicate. MFC can do it.
  • Next by Date: Problems inserting into an ArrayController
  • Previous by thread: Can we add different colors to groups of columns in non-custom TableView?
  • Next by thread: Problems inserting into an ArrayController
  • Index(es):
    • Date
    • Thread