Documentation

COEditingContext categories documentation

All the public Categories which extend COEditingContext class.

COCommonLibraries

COEditingContext (COCommonLibraries)

COLibrary is used to represents libraries such as photo, music, tag etc.

AuthorsGenerated by qmathe
Declared inCOLibrary.h

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

- (COGroup *) libraryGroup

Returns a group listing the libraries in the store.

By default, it contains the libraries listed as methods among COEditingContext(COCommonLibraries).

See also COLibrary.

    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)

                Additions to debug loaded objects and change tracking, accross all persistent roots and branches loaded in an editing context

                AuthorsGenerated by qmathe
                Declared inCOEditingContext+Debugging.h

                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.

                      - (NSArray *) updatedObjects

                      Returns the objects whose properties have been edited in the context and to be updated in the store on the next commit.

                      After a commit, returns an empty set.

                        - (NSArray *) changedObjects

                        Returns the union of the inserted and updated objects. See -insertedObjects and -updatedObjects .

                        After a commit, returns an empty set.