Situation: Mac OS X 10.6 Swift 4.2 Xcode 10.0 application. Data stored in Sqlite db which is then placed into an array for an array controller and tableview. The Object Controller for the ArrayController has the Mode set to Class and the Class Name is "Recording" (no quotes) with the following structure (in a swift file titled Recording):
@objc(Recording)
class Recording: NSObject {
@objc dynamic var user: UUID
@objc dynamic var recordingdate: Date
@objc dynamic var recordingtime: String
@objc dynamic var occurrence: String
@objc dynamic var reading: Int32
@objc dynamic var note: String
init(user: UUID, recordingdate: Date, recordingtime: String, occurrance: String, reading: Int32, note: String) {
self.user = user
self.recordingdate = recordingdate
self.recordingtime = recordingtime
self.occurrence = occurrance
self.reading = reading
self.note = note
}
}
The ArrayController is bound to the ViewController with the Model Key Path set to RecordingsArray which is an array of Recording objects.
The TableView Table Content is bound to the ArrayController with the Controller Key being set to arrangedObjects. There are 3 columns with each Table View Cell bound to their Table Cell View with the ModelKey Paths set to objectValue.aRecordingVar.
The issue is I keep getting the following error:
this class is not key value coding-compliant for the key RecordingsArray.
The Sqlite db has an entity called Recordings with the following attributes:
note: String
occurrence: String
recnum: Int32
recording: Int32
recordingdate: Date
recordingtime: String
user: UUID
I have cleaned and rebuilt the project with no affect and watched numerous youtube videos and google searches about this subject with no deviation from the process. Does anyone have any ideas on what's wrong?