Core Data: Fundamentals

Jul 19 2022 · Swift 5.5, iOS 15.4, Xcode 13.3.1

Part 2: Saving Launches

11. Creating Managed Objects

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 10. Challenge: Customizing the RocketLaunch Entity Next episode: 12. Inserting Data Into the Context

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 11. Creating Managed Objects

NS Managed Object Class Reference

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

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?