Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Core data: What should I type in the "Value Transformer Name"

I want to store UIImage in core data and use the default value transformer. Apple doc says:

If you are using the model editor in Xcode, select Transformable in the attribute’s Type popup and type the name in the Value Transformer Name text field.

Type what name exactly?

enter image description here

like image 450
Philip007 Avatar asked Sep 29 '12 03:09

Philip007


1 Answers

I'm going to refer you to a previous answer. Look at the comment to! https://stackoverflow.com/a/3909082

As you can see, if you are targeting iOS 5+, you should be able to just mark it as transformable and be good. Otherwise, you're going to have to implement a subclass of NSValueTransformer, and pass in the name of that class.

like image 166
cjwirth Avatar answered Sep 27 '22 23:09

cjwirth