• 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
AddTrackingRect does not work with two views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 userData: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.


  • Prev by Date: Re: classic floating window behavior?
  • Next by Date: Re: NSTableView tooltips
  • Previous by thread: Re: Where did the window go?
  • Next by thread: SIGIO and AppKit main loop
  • Index(es):
    • Date
    • Thread