• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Crash in addSubview: when compiled with SDK > 10.9 (From: Konidaris Christos <email@hidden>)
 >Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9 (From: Konidaris Christos <email@hidden>)

  • Prev by Date: Re: How to ResolvingSymlinksInPath ?
  • Next by Date: Re: How to ResolvingSymlinksInPath ?
  • Previous by thread: Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9
  • Next by thread: Obtaining the color of the screen at a known point
  • Index(es):
    • Date
    • Thread