How to load from templates like in iWork using CoreData?
How to load from templates like in iWork using CoreData?
- Subject: How to load from templates like in iWork using CoreData?
- From: "E. Wing" <email@hidden>
- Date: Tue, 11 Oct 2005 20:40:52 -0700
I would like my application to be able to load from default templates,
similar to what Pages and Keynote do. I am using NSPersistentDocument
for my application.
For the moment, what seems easiest is to create a template by creating
an actual file, and then use that file as a template.
But what I don't know how to do is load that other file and apply all
its values to the new document. Can anybody tell me how to do this?
I'm hoping to find a really easy way to do this. So far I've tried
playing with configurePersistentStoreCoordinatorForURL, readFromURL,
and revertToContentsOfURL but I have been unable to get them to do
what I want. I'm probably totally off the mark. Any help is greatly
appreciated.
Thanks,
Eric
_______________________________________________
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