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
Post a Comment