Documentation

COObject categories documentation

All the public Categories which extend COObject class.

COCollectionTypeQuerying

COObject (COCollectionTypeQuerying)

COCollection is a abstract class that provides a common API to various concrete collection subclasses such as COGroup or COContainer.

AuthorsGenerated by qmathe
Declared inCOCollection.h

Default

- isGroup

Returns whether the receiver is a group or not.

    - isTag

    Returns whether the receiver is a tag or not.

    A tag is group that belongs to -[COEditingContext tagGroup] .

      - isContainer

      Returns whether the receiver is a container or not.

        - isLibrary

        Returns whether the receiver is a library or not.

        A library is a container.

          COSerialization

          COObject (COSerialization)

          Additions to convert inner objects into a "semi-serialized" representation.

          AuthorsGenerated by qmathe
          Declared inCOSerialization.h

          Overview

          COObjectGraphContext uses -storeItem to serialize a COObject into a COItem, and -setStoreItem: to deserialize in the reverse way.

          For debugging a serialization/deserialization cycle, see -roundTripValueForProperty: .

          NOTE: The rest of the API is unstable and incomplete.


          Default

          - storeItem

          The receiver serialized representation.

          -storeItem is used to serialize a COObject state and -setStoreItem: to deserialize a COObject state. COObjectGraphContext will call these accessors respectively at commit and loading times.

          At the end of -setStoreItem: -awakeFromDeserialization is called to recreate additional internal state based on the deserialization result. You must not touch and attempt to access or recreated relationships during -awakeFromDeserialization . For relationship restoration, you can implement -didLoadObjectGraph .

          -storeItem is also useful to inspect the serialized representation that goes into the store.

            - setStoreItem:

            The receiver serialized representation.

            -storeItem is used to serialize a COObject state and -setStoreItem: to deserialize a COObject state. COObjectGraphContext will call these accessors respectively at commit and loading times.

            At the end of -setStoreItem: -awakeFromDeserialization is called to recreate additional internal state based on the deserialization result. You must not touch and attempt to access or recreated relationships during -awakeFromDeserialization . For relationship restoration, you can implement -didLoadObjectGraph .

            -storeItem is also useful to inspect the serialized representation that goes into the store.

              Querying Serialization Types

              - isSerializablePrimitiveValue:
              Description forthcoming.
                - isSerializableScalarValue:
                Description forthcoming.

                  Serialization

                  - serializedValueForValue:
                  Description forthcoming.
                    - serializedTypeForPropertyDescription: value:
                    Description forthcoming.
                      - serializationGetterForProperty:
                      Description forthcoming.
                        - storeItemWithUUID: types: values: entityName:
                        Description forthcoming.
                          - additionalStoreItemForUUID:
                          Description forthcoming.

                            Deserialization

                            - valueForSerializedValue: ofType: propertyDescription:
                            Description forthcoming.
                              - serializationSetterForProperty:
                              Description forthcoming.
                                - validateStoreItem:
                                Description forthcoming.

                                  Testing

                                  - roundTripValueForProperty:

                                  Serializes the property value into the CoreObject serialized representation, then unserialize it back into a value that can be passed -setSerializedValue:forPropertyDescription:.

                                  The property value is retrieved with -serializedValueForPropertyDescription:, serialized using -serializedValueForValue: and deserialized using -valueForSerializedValue:ofType:propertyDescription:.