Re: applicationDidFinishLaunching not being called

2020-03-09 Thread Alex Zavatone via Cocoa-dev
Dave, I just selected the AppDelegate in the storyboard in a temp app, deleted it and the AppDelegate methods are skipped. I’m guessing that your answer is the one that’s causing it, as in my suggestions, the console throws a descriptive error message. > On Mar 9, 2020, at 7:31 PM, Dave via C

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 17:55

Re: applicationDidFinishLaunching not being called

2020-03-09 Thread Gabriel Zachmann via Cocoa-dev
Thanks a million! Does this work on your laptop ? https://owncloud.informatik.uni-bremen.de/index.php/s/DoXzkZB3JmFzqy4 Best regards, Gabriel > On 9. Mar 2020, at 18:08, Alex Zavatone wrote: > > I’ll take a look now, It

applicationDidFinishLaunching not being called

2020-03-09 Thread Gabriel Zachmann via Cocoa-dev
I must have done something very stupid, accidentally, but the method applicationDidFinishLaunching in my AppDelegate is not being called any more. I have googled and tried a few things, of course, to no avail. Does anyone have an idea what it might be? Maybe, some kind soul can take a quick look

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-09 Thread Richard Charles via Cocoa-dev
I do not know Java at all but my guess is that when createImageRep is called the second time the new graphics context does not replace the static one saved during the first execution. --Richard Charles > On Mar 9, 2020, at 3:59 AM, Sravan Kumar Lakkimsetti > wrote: > > If some one wants to

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-09 Thread Sravan Kumar Lakkimsetti via Cocoa-dev
Hi, Thank you for the reply. We use Java jni to call cocoa api. Here is the pseudo code when we drag the display to another display(non retina) 1. Get imageRep(non retina) from existing NSImage object 2. In our code we have only one image rep at any point of time, we will not have non-reti

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 builds