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

NSAttributeType
Defines 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;
Constants
NSUndefinedAttributeType
Specifies 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.
NSInteger16AttributeType
Specifies a 16-bit signed integer attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSInteger32AttributeType
Specifies a 32-bit signed integer attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSInteger64AttributeType
Specifies a 64-bit signed integer attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSDecimalAttributeType
Specifies an NSDecimalNumber attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSDoubleAttributeType
Specifies a double attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSFloatAttributeType
Specifies a float attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSStringAttributeType
Specifies an NSString attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSBooleanAttributeType
Specifies a Boolean attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSDateAttributeType
Specifies an NSDate attribute.
Times are specified in GMT.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSBinaryDataAttributeType
Specifies an NSData attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSTransformableAttributeType
Specifies an attribute that uses a value transformer.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
NSObjectIDAttributeType
Specifies the object ID attribute.
Available in iOS 3.0 and later.
Declared in NSAttributeDescription.h.
Availability
Available in iOS 3.0 and later.
Declared In
NSAttributeDescription.h

二:类型

typedef enum {
NSUndefinedAttributeType = ,
NSInteger16AttributeType = ,
NSInteger32AttributeType = ,
NSInteger64AttributeType = ,
NSDecimalAttributeType = ,
NSDoubleAttributeType = ,
NSFloatAttributeType = ,
NSStringAttributeType = ,
NSBooleanAttributeType = ,
NSDateAttributeType = ,
NSBinaryDataAttributeType = ,
NSTransformableAttributeType = ,
NSObjectIDAttributeType =
} NSAttributeType;

三:

参考:https://developer.apple.com/library/ios/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSAttributeDescription_Class/reference.html#//apple_ref/doc/c_ref/NSAttributeType

http://stackoverflow.com/questions/10546632/list-of-core-data-attribute-types

Core Data NSAttribute Type 数据类型的更多相关文章

  1. iOS开发中的4种数据持久化方式【二、数据库 SQLite3、Core Data 的运用】

                   在上文,我们介绍了ios开发中的其中2种数据持久化方式:属性列表.归档解档.本节将继续介绍另外2种iOS持久化数据的方法:数据库 SQLite3.Core Data 的运 ...

  2. iphone数据存储之-- Core Data的使用(一)

    http://www.cnblogs.com/xiaodao/archive/2012/10/08/2715477.html 一.概念 1.Core Data 是数据持久化存储的最佳方式 2.数据最终 ...

  3. (转)iphone数据存储之-- Core Data的使用

    原文:http://www.cnblogs.com/xiaodao/archive/2012/10/08/2715477.html iphone数据存储之-- Core Data的使用(一)   一. ...

  4. ios开发:Core Data概述

    Core Data 概述 2005年的四月份,Apple 发布了 OS X 10.4,在这个版本中 Core Data 框架发布了.Core Data本身既不是数据库也不是数据库访问框架.相反,Cor ...

  5. 四种数据持久化方式(下) :SQLite3 和 Core Data

    在上文,我们介绍了iOS开发中的其中2种数据持久化方式:属性列表.归档解档. 本节将继续介绍另外2种iOS持久化数据的方法:数据库 SQLite3.Core Data 的运用: 在本节,将通过对4个文 ...

  6. Core Data的使用(二)备

    一.基础概念深入 1.NSManagedObjectContext 被管理数据上下文就像便笺簿 当从数据持久层获取数据时,相当于把这些临时的数据拷贝写在便笺簿上,然后就可以随心所欲的修改这些值. 通过 ...

  7. Core Data (2)-备用

    1.Core Data 是数据持久化存储的最佳方式 2.数据最终的存储类型可以是:SQLite数据库,XML,二进制,内存里,或自定义数据类型 在Mac OS X 10.5Leopard及以后的版本中 ...

  8. Cocoa 之 Core Data(2)- 代码示例

    前面详 细讲解了 Core Data 的框架以及设计的类,下面我们来讲解一个完全手动编写代码 使用这些类的示例,这个例子来自 苹果官方示例.在这个例子里面,我们打算做这样一件事 情:记录程序运行记录( ...

  9. 数据存储-- Core Data的使用(二)

    一.基础概念深入 1.NSManagedObjectContext 被管理数据上下文就像便笺簿 当从数据持久层获取数据时,相当于把这些临时的数据拷贝写在便笺簿上,然后就可以随心所欲的修改这些值. 通过 ...

随机推荐

  1. python 正则表达式匹配中文(转)

    网上的一篇文章,做了整理,作者已无从考证,谢谢了 s=""" en: Regular expression is a powerful tool for manipula ...

  2. PAT L3-011. 直捣黄龙

    最短路. 先求出一个只包含最短路的$DAG$,然后在$DAG$上$dp$一下就可以了.英文变数字还有$map$转一下. #include<map> #include<set> ...

  3. Git常用命令速查手册

    Git组成 1.初始化仓库 git init 2.将文件添加到仓库 git add 文件名 # 将工作区的某个文件添加到暂存区 git add -u # 添加所有被tracked文件中被修改或删除的文 ...

  4. 关于Spring和SpringMVC的一点感悟

    一年前,我们项目最开始使用的SSH(spring+springmvc+hibernate),那时候项目经理搭建好了框架就交给了我们,后来在一次配置事务的过程中,出现了大名鼎鼎的no seesion. ...

  5. 四川oi 萌萌哒 (分层并查集)

    萌萌哒 时间限制: 1 Sec  内存限制: 256 MB提交: 12  解决: 2[提交][状态][讨论版] 题目描述 一个长度为 n 的大数,用 S1S2S3...Sn表示,其中 Si表示数的第 ...

  6. nyoj 1007 GCD(数学题 欧拉函数的应用)

    GCD 描述 The greatest common divisor GCD(a,b) of two positive integers a and b,sometimes written (a,b) ...

  7. 1.2(SQL学习笔记)高级数据过滤

    一.AND 通过WHERE可以进行条件过滤,但只限于单个条件. 通过AND就可以连接多个条件,AND代表了和,即AND两边的条件全部满足才会通过筛选. 这就类似编程语言中的&&. 以下 ...

  8. Maven打war包时,添加本地jar包

    1.在项目根目录中新建lib文件夹,添加jar包 2.在pom.xml文件中添加dependency <dependency> <groupId>com.oracle</ ...

  9. ObjC的initialize和init

    Objective-C很有趣的一个地方是,它非常非常像C.实际上,它就是C语言加上一些其他扩展和一个运行时间(runtime). 有了这个在每个Objective-C程序中都会起作用的附加运行时间,给 ...

  10. Ubuntu 16.04/CentOS 6.9安装Node.js 6.9.5

    Ubuntu: CentOS: wget https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-x64.tar.xz tar -xvf node-v6.9. ...