본문 바로가기

Core Data

iOS - Single View Application with Core Data setting in XCode 4.5 Here is I have learned from scratch. 1. Create Single View Application in Xcode project from File -> New -> Project 2. Add Core Data framework. 3. Add below codes to myproject_Prefix.pch#import 4. Add following codes to AppDelegate.h file. @property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext; @property (readonly, strong, nonatomic) NSManagedObjectModel *managedObj.. 더보기
iOS - Core Data relation tutorial iOS 의 Core Data 에서 relation 의 개념을 명쾌하게 설명한 글을 발견하였다. :) Core Data on iOS 5 Tutorial: How To Work with Relations and Predicateshttp://www.raywenderlich.com/14742/core-data-on-ios-5-tutorial-how-to-work-with-relations-and-predicates 더보기
iOS - Core Data Tutorial 추천 iOS 에서 Core Data 참고자료가 필요하여 여러 글들을 읽어 본 결과 아래의 사이트에서 제공하는 tutorial 이 꽤 괜찮은 거 같아서 링크를 남긴다. Core Data on iOS 5 Tutorial: Getting Startedhttp://www.raywenderlich.com/934/core-data-on-ios-5-tutorial-getting-started 더보기
iOS - Core Data attribute types iOS 에서 Core Data 를 사용할 때, attribute 들의 type 들이 각각 무슨의미인 지 궁금 했다. Integer 16, Integer 32, and Integer 64 data types are for storing signed integers. The range of values that these types are able to store is as follows:Integer 16:-32,768 to 32, 767Integer 32:-2,147,483,648 to 2,147,483,647Integer 64:-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807Decimal, Double, and Float data types are fo.. 더보기
iOS Core Data - About primary key iPhone 에서 Core Data 를 이용하여 개발할 경우, 일반적인 Database 에서 사용하는 primary key 에 대해서 고민할 필요가 없다. Core Data 에서는 생성되는 object 들에 대해서 id 를 자동으로 만들어 주는 일을 한다. 그러므로, 아래와 같이 해당 object 에 대한 id 를 얻어올 수 있다.NSManagedObjectID *moID = [managedObject objectID]; 더보기
The Data Model About Core Data For future reference, I've written this from Head First iPhone and iPad Development (2nd edition) The Data Model Works with entities that have properties called attributes.Can be edited directly in Xcode.Has several different data types. Core Data Provides stack that manages the data so you don't have to.Can manage different types of data.Great for memory management and tracking .. 더보기