Re: Confusing problems with inheritance in Objective-C
Re: Confusing problems with inheritance in Objective-C
- Subject: Re: Confusing problems with inheritance in Objective-C
- From: Chris Hanson <email@hidden>
- Date: Tue, 22 Jun 2004 08:44:12 -0700
On Jun 21, 2004, at 11:03 PM, Darren Ford wrote:
I agree -- actually the reason for doing this way is that I want to
use Cocoa's built-in property serialization class to be able to write
an array of these 'objects' out to a file.
Why not implement NSCoding and use NSKeyedArchiver/NSKeyedUnarchiver
for your serialization?
Another common strategy is to implement a pair of methods to get a
dictionary/plist representation for an instance and to initialize an
instance from a dictionary/plist repreesntation.
-- Chris
--
Chris Hanson <email@hidden>
http://www.livejournal.com/users/chanson/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.