• 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: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?


  • Subject: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 18 Aug 2009 22:15:15 +1000


On 18/08/2009, at 9:50 PM, Graham Cox wrote:

Here's a fun little method I wrote to explore this - it just fakes an event that gradually tracks from the top of the table to the bottom. As you can see, you wouldn't really expect it to draw anything, but it does highlight each row in turn. The call to the window's -displayIfNeeded is required to flush the drawing out during the loop. <mLayersTable> is the ivar for the tableview (in fact an outline view - I haven't tested this against a table view).


A few more clues/results...

The highlight is being drawn by drawRect: as usual - I was thinking that some direct drawing was being done but that's not the case on further investigation.

After running the test code, the table highlighting gets firmly set to the blue outline style for ALL further selections. This suggests that - menuForEvent is setting a highlighting style mode, making a note of the row to highlight and then doing the drawing in -drawRect: Am I warm, Corbin?

I still say that -menuForEvent: is the wrong place to be setting these internal flags - the internal client of -menuForEvent: should be doing that (-rightMouseDown: or something it calls) - plus the highlighting "mode" should be public so that delegate methods that customise highlighting could make use of it.

--Graham


_______________________________________________

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


  • Follow-Ups:
    • Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
      • From: Corbin Dunn <email@hidden>
References: 
 >Turn off menu highlight in outline view? (From: Graham Cox <email@hidden>)
 >[SOLVED, with reservations] Re: Turn off menu highlight in outline view? (From: Graham Cox <email@hidden>)
 >Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view? (From: Corbin Dunn <email@hidden>)
 >Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view? (From: Graham Cox <email@hidden>)
 >Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view? (From: "I. Savant" <email@hidden>)
 >Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view? (From: "I. Savant" <email@hidden>)
 >Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: disabling tooltips table view
  • Next by Date: Re: disabling tooltips table view
  • Previous by thread: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Next by thread: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Index(es):
    • Date
    • Thread