• 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: Objects disappear while encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Objects disappear while encoding (From: Ian Jackson <email@hidden>)
 >Re: Objects disappear while encoding (From: Tommy Nordgren <email@hidden>)
 >Re: Objects disappear while encoding (From: email@hidden)

  • Prev by Date: Re: NSWindowDidChangeScreenProfileNotification not working
  • Next by Date: Re: NSWindowDidChangeScreenProfileNotification not working
  • Previous by thread: Re: Objects disappear while encoding
  • Next by thread: NSLog
  • Index(es):
    • Date
    • Thread