• 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: Strange crash while loading nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange crash while loading nib


  • Subject: Re: Strange crash while loading nib
  • From: Graham Cox <email@hidden>
  • Date: Sun, 09 Sep 2012 16:41:12 +1000

On 09/09/2012, at 4:25 PM, Markus Spoettl <email@hidden> wrote:

> 4   -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:] + 174
> 5   -[NSArrayController initWithCoder:] + 1072


This suggests that initWithCoder: is setting a property in a manner such as self.whatever = foo; Which triggers the KVO messaging. If possible, just set the ivar directly to avoid that. Things at this stage are often in an indeterminate state and the object graph is incomplete, leading to odd bugs. Alternatively, make sure nothing is trying to observe the object before everything is completely unarchived.

--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

  • Follow-Ups:
    • Re: Strange crash while loading nib
      • From: Markus Spoettl <email@hidden>
References: 
 >Strange crash while loading nib (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Strange crash while loading nib
  • Next by Date: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?
  • Previous by thread: Strange crash while loading nib
  • Next by thread: Re: Strange crash while loading nib
  • Index(es):
    • Date
    • Thread