Re: Archive/Unarchive Problem/Question?
Re: Archive/Unarchive Problem/Question?
- Subject: Re: Archive/Unarchive Problem/Question?
- From: Dave <email@hidden>
- Date: Thu, 04 Feb 2016 20:10:36 +0000
>> Meant to Add that pNetworkParentNode is defined as weak - does this make a difference? If I make it strong, it would cause a cycle?
>
> Hm. I don’t know how weak ivars interact with unarchiving. They should work OK, since the unarchiver has a collection that points to every object that’s been unarchived and will keep any of them from getting dealloced, but I”m not sure.
>
> But yeah, if you make that strong you’ll have cycles.
Yes, how about assign? Makes me a bit nervous because if they go stale, they don’t get set to nil?
I tried making the Parent Property assign and now it crashes in the self-test, e.g. parent is non-nill but doesn’t point to a valid object?
I’m not sure how to get around this, is what I am doing supposed to work? I mean, should backlinks get saved/restored correctly when you archive/unarchive? Do I have to do something special instead?
All the Best
Dave
_______________________________________________
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