• 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: Corbin Dunn <email@hidden>
  • Date: Tue, 18 Aug 2009 07:22:22 -0700


On Aug 18, 2009, at 5:15 AM, Graham Cox wrote:


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).


<snip -- note, I did read all the replies>

Please do log bugs with regard to this -- there is no reason it can't be changed, especially if it works better for you all (the developers) to customize things. I'm always open to suggestions and improvements.


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?

Yes -- that is the case. It would still have to do something similar, even if the code was moved somewhere else, but as you noted, there is an error if the menu isn't ever shown. -rightMouseDown:, or something else, may be more appropriate.


-corbin
_______________________________________________

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: 
 >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>)
 >Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Next by Date: [OT] Re: Mouting hybrid discs...
  • Previous by thread: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Next by thread: Stymied by NSCollectionView
  • Index(es):
    • Date
    • Thread