Re: What exactly does NSDocumentController do when there's no NSDocument architecture?
Re: What exactly does NSDocumentController do when there's no NSDocument architecture?
- Subject: Re: What exactly does NSDocumentController do when there's no NSDocument architecture?
- From: Daryle Walker <email@hidden>
- Date: Wed, 27 Aug 2014 17:56:40 -0400
On Aug 27, 2014, at 5:03 AM, Daryle Walker <email@hidden> wrote:
> But I saw something weird one time running my app through the Xcode debugger after a previous crash. I saw an NSLog message complaining about app restore data. I think NSDocumentController does app-restore actions even without an NSDocument architecture. Is this documented? What APIs can I use to control this? Are there other automatic actions NSDocumentController (or a subclass) does when initialized? (I just need it for the “Open Recent” menu, so I want to shut down, or at least check myself, any other automation.)
I looked through the Console and found the message:
> 8/25/14 10:50:50.516 PM MyApp[57583]: -[NSDocumentController openUntitledDocumentOfType:andDisplay:error:] failed during state restoration. Here's the error:
> Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened."
Why is NSDocumentController trying state restoration?
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
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