Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Core Data entities

How does one create a Core Data Entity that has custom objects within it?

E.g. An entity that has the possibility of holding, e.g. images, audio clips, a custom godzilla object.

How are these saved and loaded as well? Using NSData?

like image 626
some_id Avatar asked Jan 23 '26 00:01

some_id


1 Answers

The best way would be to use a 'transformable' attribute. See the Core Data documentation here for more information:

Non-Standard Persistent Attributes

like image 178
Mike Weller Avatar answered Jan 25 '26 16:01

Mike Weller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!