• 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
tracking area problems on 10.4.11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tracking area problems on 10.4.11


  • Subject: tracking area problems on 10.4.11
  • From: "Wesley Smith" <email@hidden>
  • Date: Tue, 1 Jul 2008 14:29:40 -0700

Hi,
I'm trying to get the following events to trigger:

- (void)mouseEntered:(NSEvent *)theEvent
- (void)mouseExited:(NSEvent *)theEvent

I'm using this call to get it to work:

[[mWindow contentView] addTrackingRect:[mWindow frame]
							owner:[mWindow contentView]
							userData:nil
							assumeInside:NO];

I've also tried:
[[mWindow contentView] addTrackingRect:[mWindow frame]
							owner:mWindow
							userData:nil
							assumeInside:NO];

mWindow is a custom NSWindow and the content view attached is also a
custom NSView.  I've defined the above event handlers in both custom
classes and set breakpoints, print messages, etc. but despite who I
set as owner of the tracking rect, I can't get the events to trigger.
Is there something else I have to do?

thanks,
wes
_______________________________________________

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

  • Follow-Ups:
    • Re: tracking area problems on 10.4.11
      • From: "Michael Ash" <email@hidden>
    • Re: tracking area problems on 10.4.11
      • From: Tony Becker <email@hidden>
  • Prev by Date: Re: Why aren't my bindings firing?
  • Next by Date: Re: exec(uting) Safari - How (newbie)
  • Previous by thread: Re: Problem with Cocoa on Java.
  • Next by thread: Re: tracking area problems on 10.4.11
  • Index(es):
    • Date
    • Thread