¡@

Home 

2014/10/15 ¤U¤È 10:09:30

iphone Programming Glossary: gamerprofile

How to convert an NSArray of NSManagedObjects to NSData

http://stackoverflow.com/questions/2357544/how-to-convert-an-nsarray-of-nsmanagedobjects-to-nsdata

NSFetchRequest fetchRequest NSFetchRequest alloc init NSEntityDescription entity NSEntityDescription entityForName @ GamerProfile inManagedObjectContext managedObjectContext fetchRequest setEntity entity NSSortDescriptor sortDescriptor NSSortDescriptor.. I run the code I'm getting the error Terminating app due to uncaught exception 'NSInvalidArgumentException' reason ' GamerProfile encodeWithCoder unrecognized selector sent to instance 0x3f4b530' I presume I have to add an encodeWithCoderClass to my.. sent to instance 0x3f4b530' I presume I have to add an encodeWithCoderClass to my core data NSManagedObject object GamerProfile but I'm not sure how to do this even after reading the documentation My attempt at doing this is below. I'm not sure if..