Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Sandor Szatmari via Cocoa-dev
Gabriel, (this is a dup reply, forgot to cc list) How are you setting up you global event monitor? I use this to handle catching mouse moved event when my app is not in the foreground…. maybe you use something like this Just watch out for a lot of events and making your app a CPU hog. [NS

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Mark Allan via Cocoa-dev
I have to say, I'd be surprised if this were possible. From a security point of view, I can understand why Apple would want to prevent a screensaver from being able to capture keystrokes. > On 25 May 2020, at 11:34 pm, Michael Diehr via Cocoa-dev > wrote: > >> On May 25, 2020, at 12:43 PM, Ga

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Michael Diehr via Cocoa-dev
> On May 25, 2020, at 12:43 PM, Gabriel Zachmann wrote: > [...] > Unfortunately, it seems that I still cannot get key events. > Best regards, Gabriel I tried what feels like a thousand different variations and could not get key events under Catalina screensaver. If you can figure it out, pleas

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Gabriel Zachmann via Cocoa-dev
>> Also, I'm adding a NSTrackingArea (but not when the screensaver is in >> preview mode). I think this is critical to making it work, but can't say >> for certain. >> >> trackingArea = NSTrackingArea(rect:bounds, >> options:[NSTrackingArea.Options.activeAlways, >> NSTracking

Re: How to save a window's position and size

2020-05-25 Thread Carl Hoefs via Cocoa-dev
You could try setting your self.masterViewController.view as self.window's initial first responder. (But I get the feeling you're "fighting the Frameworks" here...) -Carl > On May 25, 2020, at 11:48 AM, Gabriel Zachmann wrote: > > Thanks a lot for the response. >> >> [self.window setFrame

Re: How to save a window's position and size

2020-05-25 Thread Gabriel Zachmann via Cocoa-dev
Thanks a lot for the response. > >[self.window setFrame:[[NSScreen mainScreen] frame] display:YES]; It sort of works, but the window still has borders. I tried this: [self.window toggleFullScreen: nil]; and it makes the app start in real full-screen (no window borders), but then it does

Re: How to save a window's position and size

2020-05-25 Thread Carl Hoefs via Cocoa-dev
Something like this would work (in -applicationWillFinishLaunching:): [self.window setFrame:[[NSScreen mainScreen] frame] display:YES]; -Carl > On May 24, 2020, at 3:09 PM, Gabriel Zachmann wrote: > > Alternatively, is there a way to start it such that it always starts in > fullscreen, >

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Michael Diehr via Cocoa-dev
Great question - I'm the author of iScreensaver. Although our editor app is primarily built using Xojo, the actual .saver file is now a proper Swift .saver file built using Xcode, which internally runs a JavaScript/HTML rendering engine in a WKWebView. I mention this detail in case it's impo

Re: Xcode Archive builds Debug version?

2020-05-25 Thread Alex Zavatone via Cocoa-dev
It’s set in your schemes. Pick your Release configuration. > On May 24, 2020, at 4:54 AM, Sandor Szatmari via Cocoa-dev > wrote: > > Gabriele, > > When you do archive Xcode uses a different build destination. It seems to > use > /Library/Developer/Xcode/Archives > > It builds an Archive

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Gabriel Zachmann via Cocoa-dev
>> >> https://iscreensaver.com >> > > Looks like a macOS application with screen saver functionality. You could > download it and try it It's a "screensaver builder": you add a bunch of picture, "build" a screensaver, and that sits then in your System Preferences' Desktop & Screensavers pan

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Richard Charles via Cocoa-dev
> On May 25, 2020, at 6:39 AM, Gabriel Zachmann via Cocoa-dev wrote: > > Here is a screensaver (actually, screensaver builder) that can capture mouse > events: > > https://iscreensaver.com > > Does anyone have an idea how they might be able to do it? > > Best regards, Gabriel Looks like a

Screensaver can capture mouse events under Catalina

2020-05-25 Thread Gabriel Zachmann via Cocoa-dev
Here is a screensaver (actually, screensaver builder) that can capture mouse events: https://iscreensaver.com Does anyone have an idea how they might be able to do it? Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature _