Documentation

ETKeyValuePair class documentation

ETKeyValuePair : NSObject <ETViewpoint>

A key/value association.

AuthorsGenerated by qmathe
Declared inETKeyValuePair.h

Overview

Key value pairs are used by EtoileUI to present and interact with keyed data structures.

If you put them in an array, the resulting data structure is roughly equivalent to an ordered dictionary or a multi-value collection.

For now, ETKeyValuePair doesn't support subclassing.


Initialization

+ (id) pairWithKey: (NSString *)aKey value: (id)aValue

Returns a new autoreleased pair with the given key and value.

Returns a new autoreleased pair with the given key and value.

    - (id) initWithKey: (NSString *)aKey value: (id)aValue

    Initializes and returns a new pair with the given key and value.

      Type Querying

      - (BOOL) isKeyValuePair

      Returns YES.

      Returns YES.

        Observing Changes From Other Objects

        - (NSSet *) observableKeyPaths

        Returns displayName, key, value and representedObject.

        Returns displayName, key, value and representedObject.

          Controlling the Represented Element

          - (NSString *) key

          Returns the pair identifier.

          Returns the pair identifier.

            - (void) setKey: (NSString *)aKey

            Sets the pair identifier.

              - (id) representedObject
              Description forthcoming.
                - (void) setRepresentedObject: (id)anObject
                Description forthcoming.

                  Accessing the Represented Element

                  - (id) value

                  Returns the pair content.

                  Returns the pair content.

                    - (void) setValue: (id)aValue

                    Sets the pair content.

                      Property-Value Coding

                      - (NSArray *) propertyNames

                      Exposes key and value in addition to the inherited properties.

                      Exposes key and value in addition to the inherited properties.

                        UI Presentation

                        - (NSString *) displayName

                        Returns the key.

                        Returns the key.