Is it necessary to add the @objc
attribute to classes that extend NSManagedObject
? As in:
@objc(Note)
class Note: NSManagedObject {
@NSManaged var text: String
@NSManaged var name: String
}
I've seen this in a few code samples, but with no explanation on why it is necessary and what it does...