• 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
Re: Restore Application With last open document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: [Q] am I allowed to call NSTableDataSource informal protocol methods myself?
  • Next by Date: Resizable Borderless Window [Issues solved]
  • Previous by thread: Re: Restore Application With last open document
  • Next by thread: Resizable Borderless Window [Issues solved]
  • Index(es):
    • Date
    • Thread