SOLVED: Toolbar and tracking rects problem
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