XCode 4.2:哪里有“值转换器名称”核心数据属性类型“可转换”消失了吗?
我正在创建一个 NSValueTransformer
子类,以将 UIImage
与 NSData
相互转换,以允许在 Core Data SQLite 数据库中插入/检索。但是,在 Xcode 4.2 集成数据模型编辑器中选择属性类型 Transformable
后,没有 Value Transformer Name
属性来指定应使用哪个转换器类。
有谁知道这已经搬到哪里了?它存在于早期版本的 Xcode 中。
非常感谢!
I'm creating an NSValueTransformer
subclass to convert a UIImage
to/from an NSData
to allow insertion/retrieval to/from a Core Data SQLite database. However, after selecting Attribute type Transformable
in the Xcode 4.2 integrated Data Model Editor, there is no Value Transformer Name
property to specify which transformer class should be used.
Does anyone know where this has moved to? It was there in earlier versions of Xcode.
Many thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是来自 Xcode 4.1:
(值转换器)Name 框位于 正下方属性类型。
顺便说一句,我将 NSImageView 的 Value 绑定到此属性,即使没有指定值转换器,它也可以按需要工作。
This is from Xcode 4.1:
The (value transformer) Name box is right below Attribute Type.
By the way, I bind an
NSImageView
's Value binding to this attribute, and it works as desired, even without specifying a value transformer.