开发者

How can Core Data store an NSData?

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'开发者_如何学Ct 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?


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜