• 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
How to load from templates like in iWork using CoreData?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to load from templates like in iWork using CoreData?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: What's the magic that makes cmd-w close a window?
  • Next by Date: Re: What's the magic that makes cmd-w close a window?
  • Previous by thread: Re: Spotlight view
  • Next by thread: Re: How to load from templates like in iWork using CoreData?
  • Index(es):
    • Date
    • Thread