Keyed archiver
Keyed archiver
- Subject: Keyed archiver
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 21 Nov 2004 10:47:05 +0100
I have an object, which I want to archive.
- (void)encodeWithCoder:(NSCoder *)coder
{
[ coder encodeObject: myString forKey: @"myString" ];
}
- (id)initWithCoder:(NSCoder *)decoder
{
myString = [ decoder decodeObjectForKey: @"myString" ];
NSLog("@ myString: \"%@\");
return self ;
}
When myString is @"$noll" everything works just fine.
But if myString is @"$null" (note the changed vowel) the unarchive
string is nil.
What am I doing wrong? Does the NSKeyedUnarchiver has a problem with u
(or just with me)?
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden