Re: Sharing code between screensaver and regular app

2020-03-02 Thread Dave via Cocoa-dev
Hi, All I can think of that this behaviour has changed on your version of MacOS/XCode. You can do the same thing as the template by manually adding the files, e.g copy your “ViewController” file, rename it and then add it to the new project. You will need to make sure that the Storyboard/Nibs

Re: Sharing code between screensaver and regular app

2020-03-02 Thread Dave via Cocoa-dev
Hi, You need to create a project with the right template to start with. In XCode: File/New Project - Select MacOS and then “App” (from the New Project Dialog). On XCode 11.0 and MacOS 10.14.6, this results in a new project Setup with a view controller. There are a number of ways to share

Re: Sharing NIB/XIB between different apps?

2020-03-09 Thread Dave via Cocoa-dev
Hi, If you decide to use multiple targets then it’s still better to have a folder for common files and one for each target, both targets include the Common folder but you only include the folders appropriate for each Target. By “include” I mean you check/uncheck the targets that the file

Re: [OT] NSTimer +timerWithTimeInterval:

2020-05-04 Thread Dave via Cocoa-dev
Yes, that’s correct, nothing wrong with a method beginning with new as long as it follows the rules, I use it all the time. I’m not sure if it matters at all with ARC, but I stick by the rules anyway. Cheers Dave > On 30 Apr 2020, at 00:27, Sandor Szatmari via Cocoa-dev > wrote: > > Alex, >

Re: NSTimer +timerWithTimeInterval:

2020-05-04 Thread Dave via Cocoa-dev
Hi, I’d try this: Make a method called setupTimer with the code below. Then in applicationDidFinishLaunching call performSelector: setupTimer with a delay of (say 5 seconds). Just to see if it changes anything…. Cheers Dave > On 29 Apr 2020, at 23:35, Carl Hoefs via Cocoa-dev > wrote: >

Re: applicationDidFinishLaunching not being called

2020-03-09 Thread Dave via Cocoa-dev
Look at the Application Object in the Workspace/NIB file, is the class AppDelegate? If not it should be! Do you have an AppDelegate in the project/target and is the correct target set for it? BTW, these questions are better posted to the Xcode list. All the Best Dave > On 9 Mar 2020, at

Re: Open a panel in secondary thread?

2020-03-24 Thread Dave via Cocoa-dev
Hi, You may want to call performSelectorOnMainThread and pass YES as the wait until done flag. Cheer Dave > On 21 Mar 2020, at 20:05, Gabriel Zachmann via Cocoa-dev > wrote: > > Is it possible to open an NSOpenPanel in a secondary thread? > > I create the thread like this: > >

Re: Free trial period for apps in Mac App Store (?)

2020-09-02 Thread Dave via Cocoa-dev
Hi, The “Light” version doesn’t take much more effort to support since its built from the same source code. I actually found this the easiest and most straight forward way of doing it. Cheers Dave > On 1 Sep 2020, at 22:27, Gabriel Zachmann via Cocoa-dev > wrote: > >> Make a ?Lite? version

Re: Free trial period for apps in Mac App Store (?)

2020-09-01 Thread Dave via Cocoa-dev
Hi, It depends on how you want to play it. In the past I’ve done the following: Make a “Lite” version free (Price 0.00) which has either a limited life span or limited functionality or both. Make a “Full” version pad for version (Price X.00) which has either a limited life span or limited