Post

Replies

Boosts

Views

Activity

Reply to Core Data TableView Display Problem
Hello deeje, Thank you with your quick reply and suggestion ... :] Unfortunately, the error "Value of type "NSManagedObject" has no member "calendarDate" still persists with the suggested change, complete with me deleting the original "Derived Data," cleaning, and rebuilding the application. Again, thank you with your suggestion ... jim_k
Jun ’21
Reply to Core Data and Random NULL Values
Core Data and Random NULL Values Solution (210619) The application code caused NULL values to be saved into stored objects as follows: The application initializes the mutable array “Items.” The textFields identify the input values to save. Four constants are identified, such as managedObjectContext, entity, registerApplicationNumberObject, and component. The constant “registerApplicationNumberObject” receives textField input values with “setValue.” The constant “component” does NOT receive values with “setValue.” The constant “component” inherits missing values. The mutable array “items” is appended to the stored objects with the “component” missing values. Core Data and SQLite identify the missing values with NULL. The application does not exhibit NULL values when the following code is disabled: “//let component = NSManagedObject(entity: entity!, insertInto: managedObjectContext)” “//items.append (component)” As a side note, Xcode indicated that “entity: entity” should be addressed as “entity: entity!” Now I can store, fetch, find, and delete values from Core Data. jim_k
Jun ’21