views:

186

answers:

2

The documentation says, that core data properties can only store NSString, NSNumber and NSDate types. However, a lot of Core Data users claim Core Data could also store an NSData type. But I wasn't able to see that in the documentation, although the Xcode Data Modeler allows to choose a data type called "binary" (which seems to be NSData).

Did I miss something? Is there a hidden place in the documentation that indeed lists NSData for binary stuff?

+2  A: 

According to the documentation, NSData is supported as an attribute type for Core Data. You should be able to use it without problems.

JeremyP
my eyes jumped over that. in multiple other places they only mention anything else but NSData. strange.
dontWatchMyProfile
I have to admit it took me a while to find where it mentioned NSData explicitly.
JeremyP
+2  A: 

Please review my answer to your other nearly identical question regarding binary size in the model.

Marcus S. Zarra
+1 for our resident Core Data guru
Shaggy Frog
thumbs up for the +1, and +1 by myself. Nice to have a Core Data guru here :)
dontWatchMyProfile