• 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
SOLVED: Toolbar and tracking rects problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOLVED: Toolbar and tracking rects problem


  • Subject: SOLVED: Toolbar and tracking rects problem
  • From: Luc Vandal <email@hidden>
  • Date: Fri, 2 Sep 2005 10:48:38 -0400

Managed to make this work correctly by removing tracking rects as the frame changed instead of simply piling them up...

- (void)frameDidChange:(NSNotification*)notification
{
    [self removeTrackingRect:m_nRect];
    m_nRect = [self addTrackingRect:[self bounds]
                                                         owner:self
                                                    userData:nil
                                            assumeInside:NO];
}


On 2-Sep-05, at 9:08 AM, Luc Vandal wrote:

Hi,

I managed to get tracking rects to work with custom toolbar items with views. I do get the mouseEntered message when the mouse cursor is over one of the item but something strange is happening. Somehow, it seems that the tracking rects are also somewhere else in the screen. If the mouse cursor is over a certain part of the screen, mouseEntered will be triggered even though it's not even over a toolbar item. What did I do wrong? Here's some code:

_______________________________________________
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: 
 >Toolbar and tracking rects problem (From: Luc Vandal <email@hidden>)

  • Prev by Date: Toolbar and tracking rects problem
  • Next by Date: Changing Typography panel settings programmatically
  • Previous by thread: Toolbar and tracking rects problem
  • Next by thread: Changing Typography panel settings programmatically
  • Index(es):
    • Date
    • Thread