Re: Position of the mouse
Re: Position of the mouse
- Subject: Re: Position of the mouse
- From: Quentin Mathé <email@hidden>
- Date: Mon, 31 Mar 2003 15:29:33 +0200
Le lundi, 31 mars 2003, ` 14:18 Europe/Paris, j o a r a icrit :
On Monday, Mar 31, 2003, at 14:04 Europe/Stockholm, Quentin Mathi
wrote:
The solution is to poll periodically the mouse location with a timer.
Polling? That must be a bad way to solve this problem. What about
using tracking rects:
<file:///Developer/Documentation/Cocoa/TasksAndConcepts/
ProgrammingTopics/BasicEventHandling/Tasks/HandlingMouseTracking.html>
It should work fine for this purpose.
Doesn't work when the view isn't first responder
I take also a look in the Cocoa programming book and they propose the
same solution; but I agree with you, Cocoa should be able to handle
that more elegantly.
--
Quentin Mathi
email@hidden
_______________________________________________
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.