objective c - Generating NSManagedObjectSubclass Automatically -


i see xcode add these methods on business.m

- (void)adddistrictsobjectdistrict *)value { nsset *changedobjects = [[nsset alloc] initwithobjects:&value count:1]; [self willchangevalueforkey:@"districts" withsetmutation:nskeyvalueunionsetmutation usingobjects:changedobjects]; [[self primitivevalueforkey:@"districts"] addobject:value]; [self didchangevalueforkey:@"districts" withsetmutation:nskeyvalueunionsetmutation usingobjects:changedobjects]; [changedobjects release]; } 

unfortunately xcode not add

(void)adddistrictsobjectdistrict *)value;

on business.h

in other words method not advertised others.

why?

i got compilerwarning when tried use function adddistrictsobject

also not want change either business.h or business.m xdatamodel still change lot.

so should do?

any way avoid compiler warning? how should use addobject without compiler warning using generated code? category solution?

if data model going change lot, might want use mogenerator generate class files instead of xcode tool.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -