AddTrackingRect does not work with two views
AddTrackingRect does not work with two views
- Subject: AddTrackingRect does not work with two views
- From: David Dauer <email@hidden>
- Date: Sun, 28 Mar 2004 14:28:33 +0200
Hello,
I have a custom view (BGView) in my nib file which I subclass. In this
custom view, I have again another custom view which I also subclass
(BtnView). Now I want to catch the mouseEntered and mouseExited Events in
BtnView. I'm doing in BtnView.m...
- (void)viewDidMoveToWindow
{
[self addTrackingRect:[self frame] owner:self user
Data:nil
assumeInside:NO];
[super viewDidMoveToWindow];
}
...in order to use the methods. But it does not work, whereas the same code
works in BGView.
Now why can't I catch mouse events in a custom views which is on a custom
view??
Thanks for any help
David
_______________________________________________
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.