Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...
Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...
- Subject: Re: How to imitiate mouse move programmatically? [NSApp postEvent:atStart:] does not work...
- From: Oleg Krupnov <email@hidden>
- Date: Tue, 3 Nov 2009 11:48:12 +0200
As I said, I am trying to refresh the state of the view after a
lengthy operation is complete. By "state" I mean that the item in the
view on which the mouse is hovered, should highlight. Also, if I don't
refresh, the view will not respond to the following mouse down event,
unless it is preceded with another mouse move event (because the view
only respond to clicks if there is a highlighted item). There are
multiple views of different kind in the window, each with its own kind
of state. I'd like the currently hovered view to refresh its state, as
if it received a regular mouse move event. I thought imititating the
mouse move event would be the most straightforward and simple way. Was
I wrong?
On Tue, Nov 3, 2009 at 11:37 AM, Graham Cox <email@hidden> wrote:
>
> On 03/11/2009, at 8:03 PM, Oleg Krupnov wrote:
>
>> I'd like to imitate a mouse move event programmaticaly, to refresh the
>> state of my custom view.
>> []
>
>
>> What am I doing wrong? Thanks!
>
>
> The answer is: you're trying to post a mouse event to refresh the state of
> your custom view.
>
> There has to be a better and easier way to do what you're trying to do -
> whatever it is. So what is it?
>
> --Graham
>
>
>
_______________________________________________
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