nsdocumentcontroller

Customize iOS11 Document Based App Template

陌路散爱 提交于 2019-12-31 04:17:09
问题 I need to do the following customizations on the provided iOS 11 Document Based App Template: A library with only my App files, as Procreate example App bellow Get rid of the sidebar browser, so I have a fullscreen that shows only my library. https://assets.procreate.art/video/home/mp4/block-10.mp4 I have asked Apple Code Level suport but still haven't got an answear. Can someone please help? Thanks! 来源: https://stackoverflow.com/questions/48287365/customize-ios11-document-based-app-template

Cocoa NSDocument: getting autosave to work

馋奶兔 提交于 2019-12-22 06:37:04
问题 Documentation simply states that setting setAutosavingDelay to anything > 0 on the shared doc controller should do it, but after calling [[NSDocumentController sharedDocumentController] setAutosavingDelay:2.0]; in my controller, autosave doesn't seem to work: I neither see anything in ~/Library/Autosave Information/ , nor is [[[NSDocumentController sharedDocumentController] currentDocument] autosavedContentsFileURL] initialized. Note that in my app, normal loading and saving work fine

Customize iOS11 Document Based App Template

非 Y 不嫁゛ 提交于 2019-12-11 18:08:52
问题 I need to do the following customizations on the provided iOS 11 Document Based App Template: A library with only my App files, as Procreate example App bellow Get rid of the sidebar browser, so I have a fullscreen that shows only my library. https://assets.procreate.art/video/home/mp4/block-10.mp4 I have asked Apple Code Level suport but still haven't got an answear. Can someone please help? Thanks! 来源: https://stackoverflow.com/questions/48233085/ios-11-document-based-app-template-remove

Cocoa NSDocument: getting autosave to work

烂漫一生 提交于 2019-12-05 10:30:17
Documentation simply states that setting setAutosavingDelay to anything > 0 on the shared doc controller should do it, but after calling [[NSDocumentController sharedDocumentController] setAutosavingDelay:2.0]; in my controller, autosave doesn't seem to work: I neither see anything in ~/Library/Autosave Information/ , nor is [[[NSDocumentController sharedDocumentController] currentDocument] autosavedContentsFileURL] initialized. Note that in my app, normal loading and saving work fine (keyedarchivers, nscoding-based class for my docs, etc). Have you overridden -updateChangeCount: at all? I'm