Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9
Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9
- Subject: Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9
- From: Graham Cox <email@hidden>
- Date: Fri, 04 Nov 2016 09:23:55 +1100
> On 4 Nov 2016, at 2:00 AM, Konidaris Christos <email@hidden> wrote:
>
> The problem was that my NIBs also contained NSViewController objects for some of their subviews. Changing these controllers to plain NSObjects eliminated the crashes.
>
> Thank you for pointing me to the correct direction.
>
That isn’t the correct direction.
If your views don’t need view controllers, just remove them altogether. Making them NSObjects is dead weight at best, could cause further mysterious behaviour at worst.
—Graham
_______________________________________________
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