Documentation

NSObject categories documentation

All the public Categories which extend NSObject class.

ETLayoutItemGroupDelegate

NSObject (ETLayoutItemGroupDelegate)

A layout item tree node which can contain arbitrary ETLayoutItem subclass instances.

AuthorsQuentin Mathe
Declared inETLayoutItemGroup.h

Overview

Informal delegate protocol that can be implemented by the object set with -[ETLayoutItemGroup setDelegate:] .


Default

- (void) itemGroupSelectionDidChange: (NSNotification *)notif

Delegate method that corresponds to ETItemGroupSelectionDidChangeNotification.

    - (ETWindowItem *) provideWindowItemForItemGroup: (ETLayoutItemGroup *)itemGroup
    Description forthcoming.

      ETLayoutItemGroupIndexSource

      NSObject (ETLayoutItemGroupIndexSource)

      A layout item tree node which can contain arbitrary ETLayoutItem subclass instances.

      AuthorsQuentin Mathe
      Declared inETLayoutItemGroup.h

      Overview

      Informal source protocol based on child index, which can be implemented by the source object set with -[ETLayoutItemGroup setSource:] .


      Default

      - (int) baseItem: (ETLayoutItemGroup *)baseItem numberOfItemsInItemGroup: (ETLayoutItemGroup *)itemGroup
      Description forthcoming.
        - (ETLayoutItem *) baseItem: (ETLayoutItemGroup *)baseItem itemAtIndex: (NSUInteger)index inItemGroup: (ETLayoutItemGroup *)itemGroup
        Description forthcoming.

          ETLayoutItemGroupSource

          NSObject (ETLayoutItemGroupSource)

          A layout item tree node which can contain arbitrary ETLayoutItem subclass instances.

          AuthorsQuentin Mathe
          Declared inETLayoutItemGroup.h

          Overview

          Additional methods that makes up the informal source protocol.


          Default

          - (NSArray *) displayedItemPropertiesInItemGroup: (ETLayoutItemGroup *)itemGroup
          Description forthcoming.

            ETLayoutItemDelegate

            NSObject (ETLayoutItemDelegate)

            ETLayoutItem is the base class for all node subclasses that can be used in a layout item tree. ETLayoutItem instances are leaf nodes for the layout item tree structure.

            AuthorsQuentin Mathe
            Declared inETLayoutItem.h

            Default

            - (void) layoutDidChange: (NSNotification *)notif

            See ETLayoutItemLayoutDidChangeNotification.

              ETNibOwnerBuilder

              NSObject (ETNibOwnerBuilder)

              A mixin class to turn any class into a Nib owner that manages the nib loading and releasing the nib resources once it is not in use.

              AuthorsGenerated by builder
              Declared inETNibOwner.h

              Overview

              ETNibOwner requires a builder that implements this protocol. For example, see ETEtoileUIBuilder.

              ETNibOwner subclasses that overrides -rebuildTopLevelObjectsWithBuilder: or -rebuiltObjectForObject:builder: might have other requirements.

              See also ETTransform in EtoileFoundation.


              Default

              - (id) render: (id)anObject

              Takes an object in argument and returns a new representation or the same object.

                ETInspector

                NSObject (ETInspector) <ETObjectInspection>

                NSObject EtoileUI specific additions.

                AuthorsQuentin Mathe
                Declared inNSObject+EtoileUI.h

                Default

                - (id <ETInspector>) inspector
                Description forthcoming.

                  EtoileUI

                  NSObject (EtoileUI)

                  NSObject EtoileUI specific additions.

                  AuthorsQuentin Mathe
                  Declared inNSObject+EtoileUI.h

                  Overview

                  EtoileUI binds to all objects a visual representation. In many cases, such representations are created only on demand. Any UI objects like (ETView, ETLayoutItem etc.) responds to -view: by becoming frontmost UI objects and focused. Take note, this may involve changing both the frontmost application and window). Non-UI objects are returned by looking up for a service or a component which is registered in CoreObject as a viewer or editor for this object type. If none can be found, the lookup continues by trying to find a viewer/editor through CoreObject supercasting mechanism. If the fallback occurs on a raw data viewer/editor, -view: method doesn't handle by itself the viewing but delegates it to -inspect: which displays a basic object inspector built around ETModelViewLayout. When a new UI object is created or when -view: is called on an object, in both cases the object represented by the UI object is registered as opened in the layout item registry. Any subsequent invocations of -view won't create a new visual representation but move the registered representation back to front. The layout item registry is a shared instance which can be accessed by calling -[ETObjectRegistry(EtoileUI) layoutItemRegistry] .


                  Default

                  - (NSComparisonResult) compare: (id)anObject

                  Returns NSOrderedSame.

                  This NSObject extension makes possible to sort any object types, even mixed together, and prevent sort descriptors to raise an exception when -compare: is not implemented in an NSObject subclass.

                    - (NSImage *) icon

                    Returns the icon used to represent unknown object.

                    Subclasses can override this method to return an icon that suits and describes better their own objects.

                      - (IBAction) browse: (id)sender

                      Shows the receiver content in the object browser panel and allows to navigate the whole Étoilé environment object graph (including outside the application the browsed object is part of).

                        - (IBAction) view: (id)sender

                        Shows the layout item representing the receiver by enforcing referential stability (more commonly named spatiality in the case of UI objects).

                        If the receiver is a layout item, this layout item is simply brought to front and made the first responder.

                        When the receiver is some other kind of objects, the object registry is looked up to know whether there is a layout item bound to the receiver. If the lookup succeeds, the matching layout item is requested to display itself by sending -view: to it.

                        If no visual representation exists, a new layout item is created and bound to the receiver with the object registry. Then this layout item is made visible and active as described in the previous paragraph.

                          - (IBAction) inspect: (id)sender

                          Shows an inspector which provides informations about the receiver.

                          The inspector makes possible to edit the object state and behavior.

                          For some objects, the built-in inspector could have been overriden by a third-party inspector. By inspecting a third-party inspector, you can easily revert it or bring back the basic inspector.

                            - (IBAction) explore: (id)sender

                            Shows a developer-centric inspector based on ETViewModelLayout which provides informations about the receiver object. This explorer inspector allows to inspect properties, instances variables, methods and also the content when the receiver is a collection (ETCollection protocol must be implemented).

                            The inspector makes possible to edit the object state and behavior.

                            Unlike the inspector shown by -inspect: , this built-in inspector is not expected to overriden by a third-party inspector.

                              - (IBAction) editCode: (id)sender

                              Shows a source code editor to view or edit receiver class source code. For recompilable classes (implemented in Smalltalk), the editor lets you edit and compile the code, otherwise the source code is read-only e.g. for Objective-C.

                                + (NSString *) displayName

                                Returns the display name used to present the receiver or its instances in in various EtoileUI builtin facilities such as an inspector.

                                  + (NSString *) baseClassName

                                  Overrides.

                                    + (NSString *) aspectName

                                    Returns the default aspect name used to register a receiver instance in the aspect repository.

                                      - (BOOL) isUIItem

                                      Returns whether the receiver is a UI item.

                                      See also ETUIItem, -[NSObject(EtoileUI) isLayoutItem] and -[ETUIItem isDecoratorItem] .

                                        - (BOOL) isLayoutItem

                                        Returns YES if the receiver is an ETLayoutItem class or subclass instance, otherwise returns NO.

                                          - (BOOL) isLayout

                                          Returns YES if the receiver is an ETLayout class or subclass instance, otherwise returns NO.

                                            - (BOOL) isTool

                                            Returns YES if the receiver is an ETTool class or subclass instance, otherwise returns NO.

                                              - (BOOL) isView

                                              Returns YES if the receiver is an NSView class or subclass instance, otherwise returns NO.

                                                - (NSString *) XMLArchive

                                                Returns the receiver archived as a XML string with NSKeyedArchiver.

                                                When the receiver doesn't support NSCoding or keyed archiving, returns nil.

                                                You shouldn't use this method in your code. Just use it as a debugging conveniency.

                                                  Synthesizing Scalar Field Accessors

                                                  - (id) synthesizeAccessorsForFieldName: (NSString *)aFieldName ofScalarProperty: (NSString *)aKey type: (NSString *)aScalarType inRepository: (ETModelDescriptionRepository *)aRepository
                                                  Description forthcoming.