Re: Restore Application With last open document
Re: Restore Application With last open document
- Subject: Re: Restore Application With last open document
- From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
- Date: Tue, 27 Apr 2004 17:20:10 -0500
John Randolph, email@hidden, wrote:
>
On Apr 27, 2004, at 6:30 AM, Cornelius Jaeger wrote:
>
>
> Hi list,
>
>
>
> i'm new here and to cocoa, so here goes:
>
>
>
> when i start (restart) my document based app, is there an easy way to
>
> tell it to open the last saved document, or the document that was open
>
> last.
>
> to clarify, i'm writing a display client, and if the machine needs to
>
> be restarted remotely the app needs to restart (no worries there using
>
> a systemStartupItem).
>
> so i'd like it to open the document that was saved last automatically,
>
> or, open all the documents that where open, when the app shut down.
>
>
>
> is there a way to do this?
>
>
Sure. You can just store the path to the document in question in the
>
user defaults database.
Or how about an alias instead? It will still work even after the user
moves the document elsewhere:
<
http://bdistributed.com/Projects/BDAlias/>
| Jonathan 'Wolf' Rentzsch
http://rentzsch.com
| Red Shed Software
http://redshed.net
| "better" necessarily means "different"
_______________________________________________
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.