Core Data NSAttribute Type 数据类型
一:使用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;
三:
http://stackoverflow.com/questions/10546632/list-of-core-data-attribute-types
Core Data NSAttribute Type 数据类型的更多相关文章
- iOS开发中的4种数据持久化方式【二、数据库 SQLite3、Core Data 的运用】
在上文,我们介绍了ios开发中的其中2种数据持久化方式:属性列表.归档解档.本节将继续介绍另外2种iOS持久化数据的方法:数据库 SQLite3.Core Data 的运 ...
- iphone数据存储之-- Core Data的使用(一)
http://www.cnblogs.com/xiaodao/archive/2012/10/08/2715477.html 一.概念 1.Core Data 是数据持久化存储的最佳方式 2.数据最终 ...
- (转)iphone数据存储之-- Core Data的使用
原文:http://www.cnblogs.com/xiaodao/archive/2012/10/08/2715477.html iphone数据存储之-- Core Data的使用(一) 一. ...
- ios开发:Core Data概述
Core Data 概述 2005年的四月份,Apple 发布了 OS X 10.4,在这个版本中 Core Data 框架发布了.Core Data本身既不是数据库也不是数据库访问框架.相反,Cor ...
- 四种数据持久化方式(下) :SQLite3 和 Core Data
在上文,我们介绍了iOS开发中的其中2种数据持久化方式:属性列表.归档解档. 本节将继续介绍另外2种iOS持久化数据的方法:数据库 SQLite3.Core Data 的运用: 在本节,将通过对4个文 ...
- Core Data的使用(二)备
一.基础概念深入 1.NSManagedObjectContext 被管理数据上下文就像便笺簿 当从数据持久层获取数据时,相当于把这些临时的数据拷贝写在便笺簿上,然后就可以随心所欲的修改这些值. 通过 ...
- Core Data (2)-备用
1.Core Data 是数据持久化存储的最佳方式 2.数据最终的存储类型可以是:SQLite数据库,XML,二进制,内存里,或自定义数据类型 在Mac OS X 10.5Leopard及以后的版本中 ...
- Cocoa 之 Core Data(2)- 代码示例
前面详 细讲解了 Core Data 的框架以及设计的类,下面我们来讲解一个完全手动编写代码 使用这些类的示例,这个例子来自 苹果官方示例.在这个例子里面,我们打算做这样一件事 情:记录程序运行记录( ...
- 数据存储-- Core Data的使用(二)
一.基础概念深入 1.NSManagedObjectContext 被管理数据上下文就像便笺簿 当从数据持久层获取数据时,相当于把这些临时的数据拷贝写在便笺簿上,然后就可以随心所欲的修改这些值. 通过 ...
随机推荐
- 今天找到了关于用深度学习识别fre2013的代码
http://blog.csdn.net/walilk/article/details/58709611 http://blog.csdn.net/zwx2445205419/article/deta ...
- Java 获取JVM内存和物理内存信息
package com.sysinfo; public class MonitorInfo { /** jvm可使用内存. */ private long totalMemory; /** jvm剩余 ...
- Luogu P2146 软件包管理器(树链剖分+线段树)
题意 给定\(n\)个软件包,每个软件包都有一个依赖软件包,安装一个软件包必须安装他的依赖软件包,卸载一个软件包必须先卸载所有依赖于它的软件包.给定\(m\)此操作,每次一个操作\(install/u ...
- Codeforces Round #425 (Div. 2) Misha, Grisha and Underground(LCA)
Misha, Grisha and Underground time limit per test 2 seconds memory limit per test 256 megabytes inpu ...
- CSS排版常用值指南
高对比度是确保网页阅读无障碍的关键,但也往往会被过分强调. 白底黑子会让打断文本显得过分密集,反而影响可读性. 文字颜色 3b4348 链接颜色 235ea7 衬线字体 font-family: &q ...
- 使用phonegap开发安卓HLS播放软件解决方案
目前使用phonegap开发的手机应用,很少涉及视频播放的功能,究其原因,主要是phonegap提供的API里面对视频播放功能支持度不够,当然播放音频一般情况下还是能够实现的,由于工作需要,自己研究了 ...
- JZYZOJ1530 [haoi2013]开关控制 状压 dfs 折半搜索
http://172.20.6.3/Problem_Show.asp?id=1530 元宵节快要到了,某城市人民公园将举办一次灯展.Dr.Kong准备设计出一个奇妙的展品,他计划将编号为1到N的N(1 ...
- 【NTT】hdu1402 A * B Problem Plus
r·2^k+1 r k g 3 1 1 2 5 1 2 2 17 1 4 3 97 3 5 5 193 3 6 5 257 1 8 3 7681 15 9 17 12289 3 12 11 40961 ...
- Java 导出大批量数据excel(百万级)(转载)
参考资料:http://bbs.51cto.com/thread-1074293-1-1.html http://bbs.51cto.com/viewthread.ph ...
- [原创]MyEclipse2014全手动实现反向工程---解决手动整合ssh时发生的、在hibernate反向工程的时候找不到项目名的问题
1.在MyEclipse2014中新建两个Web Project项目,名字分别为:Hibernate_manual和Hibernate_auto. 2.单击选中新建的Web项目Hibernate_au ...