Re: NSDocument new file logic

2011-06-29 Thread Martin Hewitson
Wonderful! Thanks very much. I will give this a try. Writing out the core data store was the bit I was missing. Martin On Jun 29, 2011, at 9:54 AM, Quincey Morris wrote: > On Jun 28, 2011, at 23:58, Martin Hewitson wrote: > >> In the past I achieved this in a somewhat unsatisfactory way by ju

Re: NSDocument new file logic

2011-06-29 Thread Quincey Morris
On Jun 28, 2011, at 23:58, Martin Hewitson wrote: > In the past I achieved this in a somewhat unsatisfactory way by just calling > newDocument: then saveDocument: and getting the user to immediately save the > document before the app does the rest of the setup steps. Using the action methods (n

NSDocument new file logic

2011-06-29 Thread Martin Hewitson
Dear list, I have an NSPersistentDocument subclass which encapsulates a project for the user. When the user creates a new project, they specify a name and a location on disk. I then want to create a new instance of my NSDocument subclass as if it was saved exactly where the user wants it to be.