• 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
Manual Archiving of Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Manual Archiving of Classes


  • Subject: Manual Archiving of Classes
  • From: Marc Weil <email@hidden>
  • Date: Mon, 16 Jun 2003 09:13:06 -0400

Hello,

I have a question which is probably pretty obvious, but I just can't seem to
figure it out.

I have a class in my program that I would like to save to file. It, and all
of the classes it contains as member variables, conforms to NSCoding. Now,
how do I manually tell my class to save to file, much like NSString's
writeToFile:atomically: and NSData's equivalent? The only ways I see
documented are with using the First Responder's saveAs: method for
document-based applications. However, this particular class is not
document-based at all, but rather more of a core class that helps power the
rest of the classes in the program.

So, does anyone have any ideas on how I can manually write this (and any
other class that conforms to NSCoding) to file without saveAs: ?

Thanks, and as always, any help is appreciated.

- Marc Weil
_______________________________________________
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: Bizarre Crash Handling Auxiliary Window
  • Next by Date: [OT] Developing for Java ME
  • Previous by thread: Re: Convert hexstring to int?
  • Next by thread: Re: Manual Archiving of Classes
  • Index(es):
    • Date
    • Thread