COEditingContext categories documentation
COCommonLibraries
COEditingContext (COCommonLibraries)Overview
COEditingContext category that gives access to various common libraries.
You can access these libraries as shown below too:
[[editingContext libraryGroup] objectForIdentifier: kCOLibraryIdentifierMusic];
Library List
Accessing Libraries Directly
- - (COLibrary *) libraryForContentType: (ETEntityDescription *)aType
Returns the library used to collect together the objects using the given entity description.
For example, COBookmark entity or some subentity description would return -bookmarkLibrary . For a nil entity description, raises an NSInvalidArgumentException.
- - (COTagLibrary *) tagLibrary
Returns a library listing the tags in the store.
If the library doesn't exist yet, returns a new library but won't commit it.
- - (COLibrary *) bookmarkLibrary
Returns a library listing the bookmarks in the store.
If the library doesn't exist yet, returns a new library but won't commit it.
- - (COLibrary *) noteLibrary
Returns a library listing the notes in the store.
If the library doesn't exist yet, returns a new library but won't commit it.
- - (COLibrary *) photoLibrary
Returns a group listing the pictures in the store.
If the library doesn't exist yet, returns a new library but won't commit it.
- - (COLibrary *) musicLibrary
Returns a group listing the music tracks in the store.
If the library doesn't exist yet, returns a new library but won't commit it.
CODebugging
COEditingContext (CODebugging)Overview
This category isn't part of the official public API.
Loaded Objects
- - (NSArray *) loadedObjects
Returns the objects presently managed by the receiver in memory.
The returned objects include -insertedObjects .
Faults can be included among the returned objects.
See also -loadedObjectUUIDs .
- - (NSArray *) loadedRootObjects
Returns the root objects presently managed by the receiver in memory.
Faults and inserted objects can be included among the returned objects.
The returned objects are a subset of -loadedObjects .
Pending Changes
- - (NSArray *) insertedObjects
Returns the new objects added to the context with -insertObject: and to be added to the store on the next commit.
After a commit, returns an empty set.