Re: Re-open last saved document
Re: Re-open last saved document
- Subject: Re: Re-open last saved document
- From: Richard Van Deren <email@hidden>
- Date: Wed, 16 Oct 2002 15:12:59 -0400
I just coded this the other day. I just saved a default before the
file was saved and then used the default to open the file after the
program was loaded.
There was already in the defaults the last ten documents saved, however,
they were in some internal format NSLocator.
On Monday, August 26, 2002, at 08:50 AM, Andreas Mayer wrote:
Am Montag, 26.08.02 um 10:52 Uhr schrieb Beat Koch:
how do I know that the user just saved a document? And where can I get
the file name (or whatever information is needed to successfully
re-open a document) of that document?
You can get the file name from NSDocument's fileName method.
I could not find an appropriate notification, so you'll probably have
to subclass NSDocument and overwrite writeToFile:ofType: to find out
when a document is saved.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.