일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 맥
- 볼링
- 설치
- 형식
- screen
- cagr48com
- Objective-C
- Number
- WebService
- windows
- 7932
- 링크
- java
- mac
- 윈도우즈7
- Mobile
- iPhone
- 퇴사
- VISTA
- 윈도구
- 오브젝티브C
- 아이폰
- c#
- ObjectiveC
- 윈도구7
- install
- WSDL
- 아이맥
- 애플
- windows7
- Today
- Total
A colossal Dreamer: GR鐵塔-天生我材
UIManagedDocument - managedObjectContext 본문
UIManagedDocument 의 managedObjectContext 관련된 LibraryReference 에 기술되지 않은 추가 내용이 UIManageDocument.h 파일에 기술되어 있다.
UIManagedDocument 의 managedObjectContext 는 반드시 NSMainQueueConcurrencyType 으로 생성되어야 하며, parent context 를 가지는 경우 parent 는 NSPrivateQueueConcurrencyType 으로 생성되어야 한다.
즉, UIManagedDocument 의 ConcurrencyType 을 설정해서 간단하게 쓰레드를 분리하는 것은 어렵다. !!!
분리하려면, PrivateQueueConcurrencyType 으로 생성된 ParentContext 를 마스터로 하여 분리해내야 하는 것 같다.
자세하는 테스트 는 나중에 ....
아래는 관련 document 를 발췌한 것이다.
Library Reference
managedObjectContext
The document’s managed object context. (read-only)
Discussion
The document automatically creates a managed object context using its persistent store coordinator.
Special Considerations
You must not use the document’s managed object context in writeAdditionalContent:toURL:originalContentsURL:error:
, or any of the asynchronous UIDocument
methods.
Availability
- Available in iOS 5.0 and later.
Declared In
UIManagedDocument.h
...
UIManagedDocument.h
NS_CLASS_AVAILABLE_IOS(5_0) @interface UIManagedDocument : UIDocument {
...
}
/* Persistent documents always have a managed object context and a persistent store coordinator through that context. The managed object context is required to be initialized with the concurrency type NSMainQueueConcurrencyType and it must have a parent context initialized with the concurrency type NSPrivateQueueConcurrencyType.
*/
@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
'Development > 아이폰' 카테고리의 다른 글
[KeyChain] OSStatus -34018 (errSecMissingEntitlement) Issue!! (0) | 2015.08.28 |
---|---|
철탑만 몰랐던 iOS #6 - (iOS4.2 이상에서 키보드 틱소리 재생 기능 사용하기) (0) | 2014.11.10 |
iOS8 추가된 내용 몽땅. (0) | 2014.06.03 |
[WWDC2014] Keynote - OS X 요새미친(Yosemite) / iOS8 / DEV (0) | 2014.06.03 |
[Objective-C] 철탑만 몰랐던 iOS #5 - (InterfaceBuilder 만으로 화면결과 Delegating - UnwindingSegue Action ) (0) | 2014.06.03 |