• 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: Preventing NSTableView hilighting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing NSTableView hilighting


  • Subject: Re: Preventing NSTableView hilighting
  • From: Jonathan Wight <email@hidden>
  • Date: Tue, 18 May 2004 09:28:30 -0400

I implemented that method with just an NSLog() and although the method
was getting called at the correct time, something else was drawing the
row highlighting.

However, I'm _really_ trying to avoid hidden APIs anyway so I have a
feeling I'm going to have to create my own table like class to do what
I want.

Jon.

On May 17, 2004, at 23:55, Arthur Schuster wrote:

>> How do I disable hilighting of cells and rows in an NSTableView? I
>> still want cells/rows to be selected and all that entails - I just
>> don't want the highlighting to be drawn.
>>
>> I've tried subclassing NSTableView and NSCell to prevent drawing and
>> to
>> catch the setSelection style methods but have had no luck.
>>
>> Is there an obvious way that I'm missing?
>
> There is a hidden (private) method of NSCell which does this drawing
> (10.3.3):
>
> - (void)_drawHighlightWithFrame:(NSRect)frame inView:(NSView *)view;
>
> But be careful when using private methods...
>
> Arthur
> _______________________________________________
> 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.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: Preventing NSTableView hilighting
      • From: Arthur Schuster <email@hidden>
References: 
 >Preventing NSTableView hilighting (From: Jonathan Wight <email@hidden>)
 >Re: Preventing NSTableView hilighting (From: Arthur Schuster <email@hidden>)

  • Prev by Date: Re: Controlling where a tooltip will be displayed
  • Next by Date: Re: improving numerical applications performance
  • Previous by thread: Re: Preventing NSTableView hilighting
  • Next by thread: Re: Preventing NSTableView hilighting
  • Index(es):
    • Date
    • Thread