Post

Replies

Boosts

Views

Activity

Reply to Xcode 14 Beta 3 Core Data Model Editor Style
This is a screenshot from Apple’s online documentation related to Core Data. It clearly shows the editor’s style buttons. It doesn’t make sense modelling a large object model by simply working a relation from an entity then going to the other entity and creating a relation and going back to the previous entity to make sure the relationship is correct. The WYSIWYG editor is the tool needed.
Jan ’23
Reply to How can I present .formSheet on iPad with SwiftUI
As shown in the documentation, you could use .presentationDetents on .sheet because default is large. The example is: struct ContentView: View { @State private var showSettings = false var body: some View { Button("View Settings") { showSettings = true } .sheet(isPresented: $showSettings) { SettingsView() .presentationDetents([.medium, .large]) } } }
Feb ’23
Reply to Core Data externally stored binary data not deleted with record
Hi ! You will have to override -didSave in your image managed object subclass and do the deletion of the file. See the following discussions: https://stackoverflow.com/questions/17769595/the-best-practice-for-deleting-core-data-items-where-path-is-stored-as-text-and https://stackoverflow.com/questions/5073113/how-to-handle-cleanup-of-external-data-when-deleting-core-data-objects
Feb ’23