How can I do this so that I do not need #import <CoreData / CoreData.h> in all my classes?
If you create a new project using Xcode and tell him about creating a CoreData template when creating a project, you don’t need to
#import <CoreData/CoreData.h>
in classes that use ManagedObjects.
I added Core Data storage to a pre-existing project that didn't start with the CoreData template and found that I needed #import in all my classes.
Any way around this?
+5
1 answer
#import <CoreData/CoreData.h> prefix, (, #import <Cocoa/Cocoa.h>). Xcodes " ", yourProject_Prefix.pch.
+8
user557219