• 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
Keyed archiver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Keyed archiver
      • From: Jonathan Jackel <email@hidden>
  • Prev by Date: Re: Sorting Attributed Strings w/Bindings
  • Next by Date: Re: Sorting Attributed Strings w/Bindings
  • Previous by thread: Re: Problems with mouse events
  • Next by thread: Re: Keyed archiver
  • Index(es):
    • Date
    • Thread