osx - Core Data entity name equivalence -


i have hierarchical entities named {foo, fooa, foob, etc}. when creating new entity object method insertnewobjectforentityforname:, tried following:

#define namefoo @"foo" #define namefooa @"fooa"  [nsentitydescription insertnewobjectforentityforname:[namefoo stringbyappendingstring:@"a"] inmanagedobjectcontext:context]; 

even though [namefooa isequaltostring:[namefoo stringbyappendingstring:@"a"]] returns yes, runtime error entity not found. using namefooa work, hoping re-use code. there way make work?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -