• 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
selecting output format - NSKeyedArchiver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: Printable region and drawRect
  • Next by Date: Re: Problem with arguments of an NSTask
  • Previous by thread: Re: [ot] file menu ordering
  • Next by thread: Re: selecting output format - NSKeyedArchiver
  • Index(es):
    • Date
    • Thread