Project create usinging Xcode macOS Document App template, with Use Core Data checkbox checked. Add a Book entity to Document.xcdatamodeld Add ...
Project create usinging Xcode macOS Document App template, with Use Core Data checkbox checked. Add a Book entity to Document.xcdatamodeld Add ...
According to Apple's docs, closeAllDocumentsWithDelegate (from NSDocumentController) should call canCloseDocumentWithDelegate of NSDocument for all op ...
Is there anyway one can override NSPersistentDocument to encrypt and require a password to open the file? In other words, is it possible to encrypt a ...
I have an app that uses NSPersistentDocument (without autosaving) on OS X and UIDocument (also without autosaving) on iOS. The file representation is ...
I would like to create an app that uses Swift CoreData 'Documents' which work in the standard macOS fashion [custom extension, a single 'file ...
I have a NSPersistentDocument (CoreData) that I initiate before I present it to the user. That means that I create some internal core data objects and ...
That's very strange. I have a Model with three Entities. Like this: In InterfaceBuilder I made NSArrayController connected to MOC via RepresentedObj ...
I am currently developing the first version of an application using NSPersistentDocument and lightweight migration. The data model went up to version ...
I have a document based core data app with entity "Languages". This entity has two permanent attributes "key" and "comments". Is it possible programma ...
I need the concurrence type of NSPersistentDocument's managedObjectContext to be NSMainQueueConcurrencyType because I need contexts in other threads. ...
It has been a while since I’ve tackled CoreData and macOS, back in the days of xib and nibs. With a xib, there’s the “File’s Owner” that can give you ...
I've got an OSX document-based app, written in Swift and would like to submit some data from my preferences window controller into my managedObjectCon ...
My Core Data document-based application crashes on "save as". The problem seems similar to the one described in the cocoa-dev thread titled "NSPersist ...
I have a NSTabViewController with a NSTextView in one tab. The text is saved in core data. I save the text when the view disappears. But how do I ...
Because I am using a custom core data stack, I am overwriting the init, readFromURL, writeToURL, and revertToContentsOfURL functions. When I click "B ...
I have an existing (and fully working) app using NSPersistentDocument to save the application files. Now I need to create a new entity, this new entit ...
I'm just starting an OS X document-based app using Core Data. To test my model relationships, I'd like to create some NSManagedObject entities, save t ...
When opening a locked file using my NSPersistentDocument subclass I get the following message in the console: Attempt to add read-only file at pat ...
I am writing a shoebox type application wherein a user enters data into a single window. I’ve configured the data model with Code Data. Apple’s docume ...
I have a document-based (OS X) app that uses Core Data, so the document is a subclass of NSPersistentDocument. When the user creates a document, s/he ...