On 8/24/2019 1:44 PM, Turtle Creek Software via Cocoa-dev wrote:
Our app delegate class is not deallocated. The window controller is deallocated despite the member reference there. If we keep the second strong reference to the controller, then the outline view is deallocated instead. Nothing references the view except being in the .xib file for the window controller.
That doesn't seem possible. You must be doing something else that breaks things. A strong reference is a strong reference, an object doesn't get deallocated if it's still held. Either you have files where ARC is still turned of (via the -fno-arc option or whatever it is called) and are assuming it isn't, or it is an unowned (unsafe-unretained? Whatever it was called in ObjC) or weak reference. You also mention you're using C++. If you are passing pointers through C or C++ code (as void* for instance), then you might be doing something wrong there. Make sure you're properly using NSBridgingRetain() etc. (or the equivalent typecasts) and not mixing them up. That could cause ARC to think it owns another reference to an object and release it again. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com