title: Xcode 8 How to use Core Data Code Gen Classes in Objective-C?
body: <p>I was watching <a href="https://www.youtube.com/watch?v=qt8BNhpEAok" rel="nofollow noreferrer">this tutorial</a> to use Core Data in Xcode 8 and the video was using Swift. In the video, He entered an entity named <code>Task</code> in the Core Data model and then in the code he was able to call <code>Task</code> like:</p>
  
  <pre><code>let task = Task(context: context)
  </code></pre>
  
  <p>I have an entity called <code>Tag</code>. How can I access Tag in code using Objective-C? Codegen is set in the Core Data model but I don't see any additional files in my project. If I try:</p>
  
  <pre><code>Tag test = [[Tag alloc] init];
  </code></pre>
  
  <p>I get an error that <code>Tag</code> does not exist.</p>