title: Connecting my NSManagedObject subclass with my ViewController.swift
body: <p><strong>OVERVIEW</strong></p>
  
  <p>This is probably an extremely dumb/simple question, but it seems to be throwing me through a loop. I have created a NSManagedObject subclass for my entity "UsedInfo" per the advice of my fellows on StackOverflow. My ultimate goal is to use this subclass to send User information to CoreData, and later retrieve it.</p>
  
  <p><strong>THE ISSUE</strong></p>
  
  <p>The issue is that i cannot figure out how to use my new file, "UsedInfo+CoreDataProperties.swift", with my "ViewController.swift" file, which is where my TextFields are connected. Below you'll find the relevant code.</p>
  
  <p><strong>Code for ViewController.swift (SaveButton)</strong></p>
  
  <pre><code>@IBAction func saveButton(sender: AnyObject) {
      let appDel: AppDelegate = (UIApplication.sharedApplication().delegate as! AppDelegate)
      let context:NSManagedObjectContext = appDel.managedObjectContext
      let managedContext:NSManagedObjectContext = appDel.managedObjectContext
      let entity1 = NSEntityDescription.insertNewObjectForEntityForName("UsedInfo", inManagedObjectContext:context) as NSManagedObject
  
      let one = pickerTextField.text
      let two = modelName.text
      let three = serialNo.text
      let four = YOM.text
      let five = engineHours.text
      let six = locationOfMachine.text
  
      entity1.setValue(one, forKey: "product")
      entity1.setValue(two, forKey:"modelName")
      entity1.setValue(three, forKey:"serialNo")
      entity1.setValue(four, forKey:"yom")
      entity1.setValue(five, forKey:"engineHours")
      entity1.setValue(six, forKey:"location")
      print(entity1.valueForKey("product"))
      print(entity1.valueForKey("modelName"))
      print(entity1.valueForKey("serialNo"))
      print(entity1.valueForKey("yom"))
      print(entity1.valueForKey("engineHours"))
  
  
      do {
          try context.save()
      }
      catch {
          print("error")
      }
  
  
  }
  </code></pre>
  
  <p><strong>Code for "UsedInfo+CoreDataProperties.swift"</strong></p>
  
  <pre><code>import Foundation
  import CoreData
  
  extension UsedInfo {
  
  @NSManaged var engineHours: String?
  @NSManaged var location: String?
  @NSManaged var modelName: String?
  @NSManaged var product: String?
  @NSManaged var serialNo: String?
  @NSManaged var yom: String?
  
  }
  </code></pre>
  
  <p><strong>Code for "UsedInfo.swift"</strong></p>
  
  <pre><code>import Foundation
  import CoreData
  class UsedInfo: NSManagedObject {
  
      //Insert code here to add functionality to your managed object subclass
  
  }
  </code></pre>
  
  <p>I thank you folks in advance. I'm sorry for my utter noob-ness.</p>