• 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
Re: Saving data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving data


  • Subject: Re: Saving data
  • From: Isaac Sherman <email@hidden>
  • Date: Tue, 28 Jan 2003 00:03:36 -0500

on 1/27/03 11:38 PM, the method -(id)email@hidden:(id)
sender:@"Joseph Tesmer"; returned:

> Hey all,
>
> How do I save data into a file? I have 2 books on Cocoa programming
> (Cocoa Programming with Mac OS X, and Learning Cocoa with Objective C)
> and they only show you how to do it using a Cocoa Document Application.
> Is there a way to do it with a normal single window/nib file Cocoa
> Application?

What are you trying to save? For most of the Foundation storage classes
(NSArray, NSDictionary, even NSNumber), you can just use writeToFile:
atomically:. For everything else, there's NSArchiver. You may also want to
look at NSPropertyListSerialization.

HTH,

--
Isaac Sherman
MotaSoft Software
http://homepage.mac.com/huperzoevs/
_______________________________________________
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.

References: 
 >Saving data (From: Joseph Tesmer <email@hidden>)

  • Prev by Date: Re: NSView doesnt receive mouseMoved events?
  • Next by Date: Re: NSDrawer delegate function mis-described?
  • Previous by thread: Saving data
  • Next by thread: Re: Saving data
  • Index(es):
    • Date
    • Thread