Re: Objects disappear while encoding
Re: Objects disappear while encoding
- Subject: Re: Objects disappear while encoding
- From: email@hidden
- Date: Mon, 27 Aug 2007 10:54:56 +0100 (BST)
Yeah you were right - I was creating extra view objects in IB that I'd
forgotten about.
As is so often the case with strange things like this, what you suspect is
the problem is just a symptom of something else daft you did earlier.
Ian.
On Mon, August 27, 2007 7:42 am, email@hidden wrote:
> OK, so why would my arrays suddenly become nil when I start saving?
>
>
> &tOn Sun, August 26, 2007 11:14 am, Tommy Nordgren wrote:
>
>>
>
>> On 26 aug 2007, at 11.44, Ian Jackson wrote:
>>
>>
>>
>>> Hi Cocoa developers,
>>>
>>>
>>>
>>> My question is about archiving/encoding. I want to archive an array
>>> containing my objects. I have a NSLog which tells me how many objects
>>> are in the array, as the objects are being added. I also have another
>>> NSLog
>>> that tells me how many objects are in the array, while inside the
>>> encodeWithCoder: method. So while the first log
>>> happily counts 1, 2 etc, the second one, inside the encoding method
>>> says there are no objects. And this appears to be true via a
>>> breakpoint too.
>>>
>>> It's so frustrating, any help would be great. I can post a bit of
>>> code if it might help, but I feel like there might be an obvious
>>> answer to this.
>>>
>>> Ian
>>> _______________________________________________
>>>
>>>
>> You are probably sending a message to nil.
>> This will return nil, which at the machine level is represented by
>> the same value as 0.
> ;
>
>> ----------------------------------
>> Skinheads are so tired of immigration, that they are going to move to
>> a country that don't accept immigrants! Tommy Nordgren
>> email@hidden
>>
>>
>>
>> _______________________________________________
>>
>>
>>
>> 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
>>
>>
>>
>
>
> --
> MacMail - the Webmail service especially for Mac users worldwide
> http://www.macmail.com
> _______________________________________________
>
>
> 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
>
>
--
MacMail - the Webmail service especially for Mac users worldwide
http://www.macmail.com
_______________________________________________
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