Re: Crashing in NSTabView
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1558572079; bh=lOJeJo9y3GazWfWFfBDniwA2APEkwu3JbcqTMxfboZQ=; h=Date:From:Reply-To:To:Subject:From:Subject; b=EFvAj1qnWeQaU2UpDgq2G98jEdd733wybGsju+41+aGvBwHoYrBjwI8FRLnu3g7t6ZpdZcn4PAftl/K95arefEKP9VxbVlJn7zo9sRyWTp/leLFVpdKdbKLZSUV1ge8A9LkebFLYpGj4VROi5KI5xGcGuA2dpL0CBnKfxwNkRuqp1KNW7NVXZWT4ihsz9V1RqJyDlJkws3Jwd0mM7C3Q4BTssiHWzbhBvLTge0N3qY+a3DPLCSehX8mBxx8CbR/vF6tYVIGAI/LnE4yiI446Ilt/lpA8XKSupgebtsEAP44epAIq1hc/xvWmfHhVRIPhdFBgTDWHK1KbYxwprb8ZNQ== 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 (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/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Casey McDermott