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: Getting Mouse Moved Events



On Saturday, December 28, 2002, at 03:18 PM, Michael Latta wrote:
Mostly I am annoied that the requirement to be first responder exists at all. Having to notify the window that you want these events makes sense from an efficiency point of view, but often (in my cases anyway) I want to track the mouse moved to do highlighting in places where I am NOT the first responder.

Hi Michael,

If you are doing highlighting on mouse over, you might want to look at the documentation for tracking rects and -mouseEntered:, -mouseExited: messages instead of using -mouseMoved:. Using tracking rects requires a bit more setup, but it is an efficient way to handle these kinds of highlighting, and it doesn't require being first responder.

Hope this helps,
- Greg
_______________________________________________
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.

References: 
 >Re: Getting Mouse Moved Events (From: Michael Latta <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.