Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Core Data > Attribute Types

10.3. Attribute Types

Core Data attributes are more limited than Objective-C instance variables. They can only store a small number of basic types. These are similar to the data types implemented by Foundation, with some C types.

Integer 16 values are 16-bit integers, represented by an NSNumber.

Integer 32 values are 32-bit integers, represented by an NSNumber.

Integer 64 values are 64-bit integers, represented by an NSNumber.

Decimal values correspond to binary-coded decimal data, represented by an NSDecimalNumber.

String values are Objective-C strings, represented by an NSString subclass.

Boolean values are either true or false, and are represented by an NSNumber.

Date values correspond to a date, represented by an NSDate.

Binary data values are raw data stored in an NSData.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial