Core data가 엄청 좋은 거였네.

sqlite를 쓰다가, export, import fetch하는 기능이 필요해서 controller를 만들려고 했는데,
이미 core data에서 더 좋은 기능들을 알맞은 구조로 제공하고 있었다.
공부를 해야지.

iPhone Development Advanced Videos

Working with Core Data 51:07 10. 3. 3. Apple Developer Developer on iTunes

wwdc 2011에 video 가 2개 더 있다. 뭔가 발전된 게 있나보다.

xcode가 master, detail sample code 초기 버전을 만들어줬는데, 여기에 이미 적용돼 있었다.


막상 쓰려는데, 실제 coding에 적용하려니, xcode version이  다른 것 같다.
Session 303 - What's New in Core Data on iOS 47:44 11. 6. 16. Apple Developer Developer on iTunes
Session 315 - What's New in Core Data on Mac OS X 44:34 11. 6. 16. Apple Developer Developer on iTunes

중 ios 것만 대충 흘려 봤다.
처음에는 concurrency 관련 내용이 많이 나왔다. 나한테는 별로 당장 필요 없는 것.
42'부터는 developer's tool 변경 사항 얘기도 한다.
 

data protection 기능은 쓸지도 모르겠다.

user가 암호를 걸었을 때만 쓸 수 있는 것 같다.


ordered relationship. order를 부여할 수도 있다.

37'

NSIncrementalStore
persistent store를 sqlite 외 새로운 것을 추가할 수 있나보다.
이게 나한테 당장 필요한 내용인데, 자세히 가르쳐주지는 않는다. 

이런 모든 게 icloud랑 관련이 있나보더라.
꼭 필요한 것들을 중요하게 여기고, 멋있게 만들어 두고,
유기적으로 얽혀 있는 모습이 보기 좋다.
 
--- 여기까지는  (2011/09/21 16:11)

아래는 2011-10-07

Core Data Tutorial for iOS
2010-11-15
 
를 읽었다. 간단한 기본 사용법에 대한 예제 설명이 있다. UITableView랑 함께 써볼 수 있는 예제.

Core data에 대해 더 자세한 것을 알기 위해서는

Core Data Programming Guide
2010-11-15
등을 읽어야할지도 모르겠다.

--- 여기까지는 (2011/10/07 15:13)

video를 더 찾았다.
Mac Development Essential Videos                   
Session 105 - Optimizing Your Core Data Application    1:03:27    07. 7. 25.    Apple Developer    Developer on iTunes   
Session 105 - Optimizing Your Core Data Application    책    07. 7. 25.    Apple Developer    Developer on iTunes   

03'에 따르면, NSAtomicStore 를 통해서, sqlite가 아닌, 다른 custom persistance store를 쓸 수 있다.
sample:

CustomAtomicStoreSubclass

- 이거 참고해서 개발해야겠다.

이건 2007년 video니까 좀 오래된 것이긴 하다. 내용도 오래된 내용.
36' multithreading 얘기
Use separate contexts in each thread
coordinator를 여러 개 둘 수도 있는데, coordinator마다 cache를 갖는다.

/Developer/Examples/CoreData/BackgroundFetching sample을 실행해볼 수 있다고 한다.





'공부 > Computers' 카테고리의 다른 글

video about blocks in wwdc  (0) 2011.11.12
멋진 Cocoa autolayout videos  (0) 2011.11.10
Pittarese javascript 배우기  (0) 2011.11.03
node js 관련 자료  (0) 2011.10.29
iphone foundation video는 기초부터  (0) 2011.10.25
Xcode Instruments tutorials  (0) 2011.10.13
mac unit test ocunit 외  (0) 2011.09.28
wwdc 2011 중 interface builder tutorial 인상적  (0) 2011.09.16
Effective cpp 시작  (0) 2011.09.09
ios push notification  (0) 2011.09.02
by 언제나19 2011. 10. 20. 20:45
| 1 |