ios - CoreData - xcode7 reference not found -


i have project using coredata written in xcode6. when make amendments entities , re-generate files 2 new files have +coredataproperties @ end. have added new entity table when try , reference error in code saying object dosent exist though when debug managed object @ run time can see object in returned list.

            for(products *product in data){                 //set deleted true                 product.awaitingdelete = [nsnumber numberwithbool:true];                 product.awaitingupload = [nsnumber numberwithbool:true];             } 

product.awaitingdelete comes error saying not found on products object.

in .h file looks this..

#import "products+coredataproperties.h"  @implementation products (coredataproperties)  @dynamic awaitingdelete;  @dynamic awaitingupload;  @dynamic jobid;  @dynamic ordernumber;  @dynamic productguid;  @dynamic productid;  @dynamic productnotes;  @dynamic roomname;  @dynamic tobedeleted;  @dynamic windowguid;  @dynamic windowid;  @dynamic windowname;  @dynamic windownumber;  @dynamic windowtype;  @dynamic containsanswers;  @dynamic inwindow;  @end 

and when run code , debug products object can see entities

printing description of product: (entity: products; id: 0xd000000000b00058 ; data: { awaitingdelete = nil; awaitingupload = nil; containsanswers = ( "0xd0000000056c0046 ", "0xd000000005600046 ", "0xd000000005700046 ", "0xd000000005680046 ", "0xd000000005580046 ", "0xd0000000054c0046 ", "0xd000000005540046 ", "0xd0000000055c0046 ", "0xd000000005500046 ", "0xd000000005640046 " ); inwindow = "0xd00000000048005c "; jobid = 122; ordernumber = 0; productguid = "b281a604-26d0-4cd6-a2a6-aaf6eb0b2846"; productid = 262; productnotes = nil; roomname = master; tobedeleted = nil; windowguid = "8738fc28-9206-4935-9dc4-7e52030a77dc"; windowid = 186; windowname = 01; windownumber = 2; windowtype = standard; })

i guessing have missed xcode7, can help?


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -