zoukankan      html  css  js  c++  java
  • 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 = 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;

    三:

    参考: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

  • 相关阅读:
    C# 操作配置文件
    C# Excel操作类
    没有找到 mspdb100.dll 的解决办法
    工厂方法模式
    .Net互操作2
    The certificate used to sign “AppName” has either expired or has been revoked. An updated certificate is required to sign and install the application解决
    手机抓包xcode自带命令行工具配合wireshark实现
    expecting SSH2_MSG_KEX_ECDH_REPLY ssh_dispatch_run_fatal问题解决
    使用ssh-keygen设置ssh无密码登录
    远程复制文件到服务器
  • 原文地址:https://www.cnblogs.com/cocoajin/p/3492074.html
Copyright © 2011-2022 走看看