Re: Crashing in NSTabView
Re: Crashing in NSTabView
- Subject: Re: Crashing in NSTabView
- From: Casey McDermott <email@hidden>
- Date: Thu, 23 May 2019 00:41:18 +0000 (UTC)
Turning off ARC in one file helped track down the problem. Thanks Daniel!
With breakpoints in retain and autorelease, it was possible to step through
the whole tab setup process. Turns out that NSTabViewController's
addChildViewController calls didSelectTabViewItem before the tab is set up
properly.
I'm not quite sure how that threw off reference counting, but it stopped
crashing after adding a branch in didSelectTabViewItem to bypass the first
call.
Thanks for all the suggestions!
Casey McDermott
Turtle Creek Software
_______________________________________________
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