Re: Strange crash while loading nib
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