Re: more than one plist in a file.
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