博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Core Data NSAttribute Type 数据类型
阅读量:6588 次
发布时间:2019-06-24

本文共 3021 字,大约阅读时间需要 10 分钟。

一:使用Core Data 的可用数据类型

NSAttributeTypeDefines the possible types of NSAttributeType properties. These explicitly distinguish between bit sizes to ensure data store independence.typedef enum {NSUndefinedAttributeType = 0,NSInteger16AttributeType = 100,NSInteger32AttributeType = 200,NSInteger64AttributeType = 300,NSDecimalAttributeType = 400,NSDoubleAttributeType = 500,NSFloatAttributeType = 600,NSStringAttributeType = 700,NSBooleanAttributeType = 800,NSDateAttributeType = 900,NSBinaryDataAttributeType = 1000,NSTransformableAttributeType = 1800,NSObjectIDAttributeType = 2000} NSAttributeType;ConstantsNSUndefinedAttributeTypeSpecifies an undefined attribute type.NSUndefinedAttributeType is valid for transient properties—Core Data will still track the property as an id value and register undo/redo actions, and so on. NSUndefinedAttributeType is illegal for non-transient properties.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSInteger16AttributeTypeSpecifies a 16-bit signed integer attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSInteger32AttributeTypeSpecifies a 32-bit signed integer attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSInteger64AttributeTypeSpecifies a 64-bit signed integer attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSDecimalAttributeTypeSpecifies an NSDecimalNumber attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSDoubleAttributeTypeSpecifies a double attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSFloatAttributeTypeSpecifies a float attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSStringAttributeTypeSpecifies an NSString attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSBooleanAttributeTypeSpecifies a Boolean attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSDateAttributeTypeSpecifies an NSDate attribute.Times are specified in GMT.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSBinaryDataAttributeTypeSpecifies an NSData attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSTransformableAttributeTypeSpecifies an attribute that uses a value transformer.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.NSObjectIDAttributeTypeSpecifies the object ID attribute.Available in iOS 3.0 and later.Declared in NSAttributeDescription.h.AvailabilityAvailable in iOS 3.0 and later.Declared InNSAttributeDescription.h

二:类型

typedef enum {NSUndefinedAttributeType = 0,NSInteger16AttributeType = 100,NSInteger32AttributeType = 200,NSInteger64AttributeType = 300,NSDecimalAttributeType = 400,NSDoubleAttributeType = 500,NSFloatAttributeType = 600,NSStringAttributeType = 700,NSBooleanAttributeType = 800,NSDateAttributeType = 900,NSBinaryDataAttributeType = 1000,NSTransformableAttributeType = 1800,NSObjectIDAttributeType = 2000} NSAttributeType;

三:

参考:

转载地址:http://wehno.baihongyu.com/

你可能感兴趣的文章
《Java 7程序设计入门经典》一1.10 另一种数据类型
查看>>
IBM GTS部门或有重大调整,最快本周见分晓
查看>>
FBI为车主支招:如何预防汽车黑客
查看>>
协鑫集成等四家公司被退出欧盟MIP协议
查看>>
瑞星年度网络安全报告揭示 “互联网+”企业最“高危”
查看>>
三星想抢苹果芯片订单?台积电表示想多了
查看>>
亚马逊表示并未放弃WP平台:正在打造新应用
查看>>
应用软件暗藏猫腻,信息安全咋保障
查看>>
Facebook宣布进一步推广Live Video功能
查看>>
唐雄燕点评NFV产业进程:2016年将迎来试点年
查看>>
组件价格跳水,光伏产品面临量价齐跌
查看>>
新加坡大数据初创公司 Latize 获 150 万美元风险融资
查看>>
中兴通讯和江苏电信携手推进SDN IPRAN创新进程
查看>>
中国幻想向欧美妥协取得5G权益将是一种错误
查看>>
云平台圈地须群攻莫单打
查看>>
大数据贵州潜力无限
查看>>
Google全球副总裁Vint Cerf:中国物联网发展不得不关注的几大问题
查看>>
源头防堵信息泄露 监管拟全面推行"支付标记化"
查看>>
《人件(原书第3版)》—— 01 此时此刻,一个项目正在走向失败
查看>>
java 框架介绍------权限框架
查看>>