Re: ARC problems

2019-09-03 Thread Turtle Creek Software via Cocoa-dev
>> Is that view controller voiding its own self reference? No. >> Is it possible to switch out the view controller that i disappearing with another one and see if that also disappears? We've already wasted 2 weeks trying to debug this. It's time to move on. We won't finish in time for Catalina,

Re: ARC problems

2019-09-03 Thread Allan Odgaard via Cocoa-dev
On 4 Sep 2019, at 0:18, Turtle Creek Software via Cocoa-dev wrote: The startup code was created 3 years ago when we were new to Cocoa, probably from one of the HIllegass books. Do you manually load nibs (as opposed to rely on the framework to load MainMenu.nib)? In a previous post you wrote

Re: ARC problems

2019-09-03 Thread Jean-Daniel via Cocoa-dev
> Le 4 sept. 2019 à 00:18, Turtle Creek Software a > écrit : > > The app delegate is NOT being deallocated prematurely- we have a breakpoint > there to check. > > We don't allocate the app delegate explicitly, so I had to set a breakpoint > in init() to see when it happens. > It's created i

Re: ARC problems

2019-09-03 Thread Alex Zavatone via Cocoa-dev
Is it possible to switch out the view controller that i disappearing with another one and see if that also disappears? Is that view controller voiding its own self reference? > On Sep 3, 2019, at 5:18 PM, Turtle Creek Software via Cocoa-dev > wrote: > > The app delegate is NOT being deallocat

Re: Cocoa-dev Digest, Vol 16, Issue 80

2019-09-03 Thread JP HARMAND via Cocoa-dev
A « mystery » left in a piece of code will reveal itself a problem, one day or another.. Good luck ! JP Today's Topics: 1. ARC problems (Turtle Creek Software) -- Message: 1 Date: Mon, 2 Sep 2019 20:33:58 -0400 From: Turt

Re: ARC problems

2019-09-03 Thread Turtle Creek Software via Cocoa-dev
The app delegate is NOT being deallocated prematurely- we have a breakpoint there to check. We don't allocate the app delegate explicitly, so I had to set a breakpoint in init() to see when it happens. It's created in main() via NSApplicationMain. Presumably its end of scope would be when main en

Re: ARC problems

2019-09-03 Thread Jean-Daniel via Cocoa-dev
> Le 3 sept. 2019 à 02:33, Turtle Creek Software via Cocoa-dev > a écrit : > > Thanks for all the suggestions for the problems we had with a controller > being > deallocated unexpectedly under ARC. Unfortunately, none of them fixed it. > > We do need to get back to regular app programming, so