objective c - In Core Data, how do I access a specific attribute of every managed object (instance) of a given entity? -
This is the core data object model with which I'm working (I'm a new user, so I do not post pictures directly ):
P> My code is working perfectly to create MyClass instances, but I do not know how to extract the "classname" attribute (to insert in my tableview cells) after receiving my classes objects The way I read and read the Apple Doc again (although I'm sure the "answer" is somewhere, I am just a difficult time misleading it).
I got the core data tutorial well. The most useful helper I found is that I found only one point where my managed object is stored in the array, but I do not know how to use the properties of those objects.
My question: How can I use the specific attribute of each managed object (example) of a given organization?
Thank you in advance for your help.
- Michael
Once you have all your objects in an NSArray , Then you can only iterate through the array, for example using fast calculation:
for (myClass * cl in array) {NSLog (@ "name =% @" , Cl.className); }
Comments
Post a Comment