Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > Re: Archiving s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 966 of 1039
Post > Topic >>

Re: Archiving several instances of the same class

by Gregory Weston <uce@[EMAIL PROTECTED] > Mar 23, 2008 at 11:47 AM

In article <fs5gq5$nth$1@[EMAIL PROTECTED]
>, ActiveMan <basurero@[EMAIL PROTECTED]
> 
wrote:

> Hello, according to Apple do***entation NSKeyedArchiver is the 
> preferred option to archive objects in favor of NSArchiver:
> 
>
<http://developer.apple.com/do***entation/Cocoa/Conceptual/Archiving/Archiving
> .html>
> 
> However 
> 
> I have note that assigning a key to each archived object bring into 
> play a problem when we archive several instances of the same class 
> (assuming that the encodeWithCoder:forKey: implementation assign the 
> same key whenever it stores a instance variable, which is the regular 
> behavior). How can we deal with this situation?

I'm guessing you haven't actually tried this, because the answer is "it 
works." It works because the coder archives sufficient information to 
determine where one object ends and the next one starts.
 




 3 Posts in Topic:
Archiving several instances of the same class
ActiveMan <basurero@[E  2008-03-23 13:07:25 
Re: Archiving several instances of the same class
Gregory Weston <uce@[E  2008-03-23 11:47:45 
Re: Archiving several instances of the same class
ActiveMan <basurero@[E  2008-03-23 21:24:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:00:33 CDT 2008.