Re: Is CGImage... thread-safe?

2020-05-26 Thread Steve Mills via Cocoa-dev
On May 26, 2020, at 16:10:26, Gabriel Zachmann via Cocoa-dev wrote: > > I've just had a crash in > CGImageSourceCreateThumbnailAtIndex( new_image, 0, imageOpts ); We went through this quite a while ago in private emails. CGImageSourceCreateThumbnailAtIndex is fine to use from any thread. Are

Is CGImage... thread-safe?

2020-05-26 Thread Gabriel Zachmann via Cocoa-dev
I've just had a crash in CGImageSourceCreateThumbnailAtIndex( new_image, 0, imageOpts ); The new_image and imageOpts were created/assigned just a few lines earlier in the code. (and in the debugger they appear to be non-null.) So I was wondering if CGImageSourceCreateThumbnailAtIndex() is thre

Re: Screensaver can capture mouse events under Catalina

2020-05-26 Thread Gabriel Zachmann via Cocoa-dev
> >> I can confirm: this is indeed critical. Otherwise, the .saver does not >> receive mouse events. >> >> Unfortunately, it seems that I still cannot get key events. > > If you are trying to get events from arrow or modifier keys, you have to use > keyDown and not keyUp. But you may not be

Re: Screensaver can capture mouse events under Catalina

2020-05-26 Thread James Crate via Cocoa-dev
On May 25, 2020, at 3:43 PM, Gabriel Zachmann via Cocoa-dev wrote: > I can confirm: this is indeed critical. Otherwise, the .saver does not > receive mouse events. > > Unfortunately, it seems that I still cannot get key events. If you are trying to get events from arrow or modifier keys, you

Re: Screensaver can capture mouse events under Catalina

2020-05-26 Thread Gabriel Zachmann via Cocoa-dev
>> Unfortunately, with -addGlobalMonitorForEventsMatchingMask: , >> the event is still passed on to the higher-up objects, so that makes the >> screensaver engine terminate the screensaver immediately. > > Does this mean you’re unable to set up a global event tap/monitor? If you > are able, how

Re: Screensaver can capture mouse events under Catalina

2020-05-26 Thread Sandor Szatmari via Cocoa-dev
Gabriel, > On May 26, 2020, at 04:21, Gabriel Zachmann wrote: > > Thanks a lot for your response! > > Unfortunately, with -addGlobalMonitorForEventsMatchingMask: , > the event is still passed on to the higher-up objects, so that makes the > screensaver engine terminate the screensaver immedia

Re: Screensaver can capture mouse events under Catalina

2020-05-26 Thread Gabriel Zachmann via Cocoa-dev
Thanks a lot for your response! Unfortunately, with -addGlobalMonitorForEventsMatchingMask: , the event is still passed on to the higher-up objects, so that makes the screensaver engine terminate the screensaver immediately. Best regards, Gabriel > On 26. May 2020, at 00:54, Sandor Szatmari