Post

Replies

Boosts

Views

Activity

Document based macOS app with core data, swiftUI and several documents
I am trying to upgrade my document macos app with swiftui.. When starting Xcode creates the templates and everything works as expected as long as only one document is open. When 2 documents are open, and the app tries to do a @FETCH in the second document. It crashs...Multiple NSEntityDescriptions claim the NSManagedObject subclass 'XXXXXXX' so +entity is unable to disambiguateI assume that the are two managedobjectcontexts in the environment and the app can not identify which one. Is it so? Has anyone the same problem? I would apreciate any idea on how to fix this? My apologies for asking it. I am relatively new to swiftui...
4
0
1.2k
May ’20