selecting output format - NSKeyedArchiver
selecting output format - NSKeyedArchiver
- Subject: selecting output format - NSKeyedArchiver
- From: email@hidden
- Date: Tue, 29 Oct 2002 15:30:31 +0000
Im trying to write an object to disk, but i get a warning that
`NSKeyedArchiver' does not respond to `archiveRootObject:toFile:'
NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] init];
[archiver setOutputFormat:NSPropertyListXMLFormat_v1_0];
[archiver archiveRootObject:[[dataController sharedDataController]
theList] toFile:[sp filename]];
i guess you cant use a class method from an instance?
Is there an easy method of selecting output format for an NSKeyedArchiver
or should i subclass it and customise the class method.
it seems as if im doing something wrong here.
Thanks
Warren Burton
This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
_______________________________________________
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.