Re: Automatically restore last saved document on application launch
Re: Automatically restore last saved document on application launch
- Subject: Re: Automatically restore last saved document on application launch
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 12 Mar 2016 09:02:27 -0500
> On Mar 12, 2016, at 8:53 AM, Eric Gorr <email@hidden> wrote:
>
> The answer to this question does not involve a coding problem. As some probably understood, default application created by Xcode should automatically support the Resume functionality. What was blocking this from working was the System Preference:
>
> General -> Close windows when quitting an app
>
> This preference was selected and closed the windows of the app upon quitting which naturally means there is nothing to resume when the app relaunches.
The same thing happens, for the same reason, if your application implements the -applicationShouldTerminateAfterLastWindowClosed: delegate method and return YES.
--
Bill Cheeseman - email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden