> On May 3, 2016, at 7:30 AM, Dave wrote:
>
> How about sending it a Keystroke then?
I tried that several days ago and it did work!
void MySimulatedKeystroke(CGKeyCode virtualKey)
{
// Key down
CGEventRef e1 = CGEventCreateKeyboardEvent(NULL, virtualKey, true);
CGEventPost(kCGSessi
> However if I press any key on the keyboard after mouse has stopped moving and
> the delay time period has passed then presto the view refreshes.
>
> --Richard Charles
How about sending it a Keystroke then?
___
Cocoa-dev mailing list (Cocoa-dev@li
On Apr 30, 2016, at 17:27 , Richard Charles wrote:
>
> NSNumber *yes = [NSNumber numberWithBool:YES];
> [self performSelector:@selector(setNeedsDisplay:) withObject:yes
> afterDelay:0.0];
No, that’s the opposite of the solution to that particular issue. :)
The problem is that you’re passing an
> On Apr 30, 2016, at 5:39 PM, Quincey Morris
> wrote:
>
> Do you have any proof that ‘mouseMoved’ is called at all?
Yes adding logging shows that both methods mouseMoved: and mouseInactive are
being called.
> Note that there are two different ‘mouseMoved’s. One is a continuous stream
> of
On Apr 30, 2016, at 16:08 , Richard Charles wrote:
>
> - (void)mouseInactive
> {
>// This does not work.
>[self setNeedsDisplay:YES];
>
>// This does not work. I think this did work at one time but stopped
>// working on OS X 10.10 Yosemite.
>[self performSelector:@selector(s
I have a view that needs to be refreshed after a period of mouse inactivity.
- (void)mouseInactive
{
// This does not work.
[self setNeedsDisplay:YES];
// This does not work. I think this did work at one time but stopped
// working on OS X 10.10 Yosemite.
[self performSele