CoreData : fundamental (or not) questions
CoreData : fundamental (or not) questions
- Subject: CoreData : fundamental (or not) questions
- From: WhiteContainer <email@hidden>
- Date: Sun, 19 Mar 2006 15:46:46 +0100
Hi,
Please if someone could answer to the following "theoritical"
questions...
1- In which cases is it necessary to create another
managedObjectContext, instead of using the default moc of the
NSPersistentDocument ? Of course if you have different persistent
stores it seems to be necessary, but in the simple case : 1
managedObjectModel, 1 persistentStore ?
2- How can I access the default moc of the document from an entity (I
mean by entity, a class created from an entity) ?
Is this the good way : [[[NSDocumentController
sharedDocumentController] currentDocument] managedObjectContext]]; ?
3- How can I access the methods of an arrayController from an
entity ? I mean the arraycontroller of the entity itself or the
arraycontroller of another entity. I think I can't add outlet to
entity.h since this file can not be imported in IB. So outlets and
actions should only be in MyDocument ?
Thx in advance.
Sunny Spring Rgds
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden