Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling *all* mouse activity in a view?



On 5/27/05 7:02 PM, Rick Mann didst favor us with:

> I'm using PPx to build a CAD application. In my main view, which is
> basically an HIView (if I understand PPx correctly), I want to handle
> *all* mouse activity: movement, mouse down, mouse up, etc.
> 
> I've installed handlers for HitTest and Track, but those only get
> called on mouse down. What about when the mouse enters or leaves?
> 
> And, although it's not necessary now, is there a way to do this
> without calling the blocking mouse tracking functions?

Have you looked at mouse tracking regions?

> I don't want  
> to block other processing in the rest of my app (there isn't any now,
> but there might be; are timers fired from a different thread?). I'd
> rather just get the various mouse events and maintain state
> appropriately.
> 
> Also, I don't want to install low-level event handlers that take over
> the window; I just want them on my view.
> 
> Is this just the wrong way to go about it? If so, what's the "right"
> way?

An answer to that question would require a better understanding of what
you're trying to accomplish. But without knowing more, it seems like the
obvious answer is that you'll need to install a handler that handles all the
events of interest to you.

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Handling *all* mouse activity in a view? (From: Rick Mann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.