• 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: more than one plist in a file.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more than one plist in a file.


  • Subject: Re: more than one plist in a file.
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 30 Nov 2005 13:15:50 -0800


On Nov 30, 2005, at 12:46 PM, Markus Hitter wrote:

I have an application that is logging events (date + string + attributed string) to a file and I want to be able to read in the file when I restart the app. I can't use a straight forward plist (array of dictionary of {date,string,data}) because the files can get large and I don't want to rewrite the entire file to append a single event.
Sounds a lot like you want to use CoreData. Fire up a new project from the CoreData template in Xcode, then look at the already inserted code to see how to modify the storage place.

See also <http://developer.apple.com/documentation/Cocoa/Conceptual/ CoreDataUtilityTutorial/>, which does almost exactly this (except you'd replace
NSString *STORE_TYPE = NSXMLStoreType;
with
NSString *STORE_TYPE = NSSQLiteStoreType;
).


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >more than one plist in a file. (From: Paul Thomas <email@hidden>)
 >Re: more than one plist in a file. (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: NSImageView + Text
  • Next by Date: Two applications, one preference file
  • Previous by thread: Re: more than one plist in a file.
  • Next by thread: Two applications, one preference file
  • Index(es):
    • Date
    • Thread