I'm pretty new to Objective-C and what I want to do is have define variables in the EntityNameConstants.h
file where I store all the Entity Names.
And the I will use all the defines in repository for all the methods related to the ManagedObjectContext.
EG. This is in the .h file
define ENTITY_USER_PICTURE = @"UserPicture"
and in repository i want to use this constants as following
UserPicture *userPicture = (UserPicture *)[NSEntityDescription insertNewObjectForEntityForName:ENTITY_USER_PICTURE
inManagedObjectContext:context];
but I cannot do this, it gives me Parse Issue error.
Am I doing anything wrong in here?