If Codegen is set to Class Definition, you can simply import the subclass header file NSManagedObject.
Import
#import "Tag+CoreDataClass.h"
Then the creation of your object will be recognized Tag.
Tag *tag = [NSEntityDescription insertNewObjectForEntityForName:@"Tag" inManagedObjectContext:[self managedObjectContext];
tag.name = @"Tag Name";
.. , , DerivedData . .
- :
/Users/{Username}/Library/Developer/Xcode/DerivedData/{Your Project Name}/Build/Intermediates/{Your Project Name}.build/Debug-iphonesimulator/{Your Project Name}.build/DerivedSources/CoreDataGenerated/{Your Project Name}/
Codegen, :
- /:
NSManagedObject . , . - /. (), .
Codegen: fooobar.com/questions/106979/...