Get immediate access to this and over 1,500+ other videos and books.

Boost your skills with a raywenderlich.com Beginner subscription. With over 60+ video courses and our core foundational programming books bundled in one subscription, it’s simply the best investment you can make in your development career.

Creating Managed Objects

Understand what managed object subclasses are and how you can use them in code to represent your Core Data model.

Contributors

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a raywenderlich.com Professional subscription.

Defining a RocketLaunch entity in the editor isn’t enough because you need a way to reference it in code and create instances of it.

import CoreData
public class RocketLaunch: NSManagedObject {}
@objc public class RocketLaunch: NSManagedObject {}
@objc(RocketLaunch)
import CoreData
extension RocketLaunch {}
var name: String
var name: String
init(name: String) {
  self.name = name
}
var name: String {}
@NSManaged var name: String
@NSManaged public var name: String?
@NSManaged public var isViewed: Bool
@NSManaged public var launchDate: Date?
@NSManaged public var launchpad: String?
@NSManaged public var notes: String?

Reviews

Comments