Sharing code between screensaver and regular app
Sharing code between screensaver and regular app
- Subject: Sharing code between screensaver and regular app
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Sun, 1 Mar 2020 23:26:24 +0100
I am trying to replicate what this guy suggests:
https://medium.com/better-programming/how-to-make-a-custom-screensaver-for-mac-os-x-7e1650c13bd8
under section "Additional Debugging".
The idea is to create a standalone app that shares as much code with the
screensaver as possible.
I am using Xcode 11, macOS Catalina, Objective-C.
Now, I have created a new project as "App".
But, unlike on the web page, Xcode has not created an NSViewController, but
instead an NSObject:
the .h-file contains
@interface AppDelegate : NSObject <NSApplicationDelegate>
@end
Could some kind should please shed light on what to do to make my
ScreenSaverView a subview of the new stand-alone app?
Best regards, Gabriel
_______________________________________________
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