• 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: What exactly does NSDocumentController do when there's no NSDocument architecture?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >What exactly does NSDocumentController do when there's no NSDocument architecture? (From: Daryle Walker <email@hidden>)

  • Prev by Date: Re: Prompting user (NSAlert) during document reading
  • Next by Date: CALayer disappears on view resize...
  • Previous by thread: Re: What exactly does NSDocumentController do when there's no NSDocument architecture?
  • Next by thread: Problem with UIViewAnimationOptionBeginFromCurrentState
  • Index(es):
    • Date
    • Thread