• 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: Disabling Highlighting of Row Selection in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling Highlighting of Row Selection in NSTableView


  • Subject: Re: Disabling Highlighting of Row Selection in NSTableView
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 02 Apr 2009 13:34:47 -0700

Hi Sourabh,

It sounds like you missed my prior reply to your original email. Here it is again:


This should work on tiger too. You also should subclass your cells and make sure they don't draw any highlighting by overriding this and returning nil:


- (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;

There is no need to override the private methods; people frequently make that wrong assumption. Granted, the whole process could be made better if there was an easy option to do this on NSTableView.


corbin

On Apr 2, 2009, at 10:48 AM, Sourabh Sahu wrote:

Hi Everyone,
I tried highlighSelectionInClipRect method & set the color but I still getting row selected,but there is gap between cells.
But it still m not able to remove it completely,Please reply


Sourabh

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Disabling Highlighting of Row Selection in NSTableView (From: Sourabh Sahu <email@hidden>)

  • Prev by Date: Re: [Q] doubleAction on a NSTableView misbehaving?
  • Next by Date: Re: Toll-free bridge type at runtime
  • Previous by thread: Disabling Highlighting of Row Selection in NSTableView
  • Next by thread: [Q] doubleAction on a NSTableView misbehaving?
  • Index(es):
    • Date
    • Thread