Authors
- Generated by buildd
-
- Declared in:
- InterfaceBuilder/IBEditors.h
- Conforms to:
- NSObject
The IBEditors protocol defines the methods an editor must
implement.
Method summary
- (BOOL)
acceptsTypeFromArray: (NSArray*)types;
Decide whether an editor can accept data from the
pasteboard.
- (BOOL)
activate;
Activate an editor - inserts it into the view
hierarchy or whatever is needed for the editor to
be able to provide its functionality. This method should
be called by the document when an editor is created or
opened. It should be safe to call repeatedly.
- (void)
close;
Close an editor - this destroys the editor. In this
method the editor should tell its document that it
has been closed, so that the document can remove all
its references to the editor.
- (void)
closeSubeditors;
Close all subeditors associated with this editor.
- (void)
deactivate;
Deactivate an editor - removes it from the view
hierarchy so that objects can be archived without
including the editor. This method should be
called automatically by the 'close' method. It
should be safe to call repeatedly.
- (void)
deleteSelection;
This method deletes all the objects in the current
selection in the editor.
- (id/*<
IBDocuments>*/)
document;
This method returns the document that owns the object
that the editor edits.
- (id)
editedObject;
This method returns the object that the editor is
editing.
- (id)
initWithObject: (id)anObject
inDocument: (id/*<
IBDocuments>*/)aDocument;
Initializes the editor with object for the
specified document.
- (id<
IBEditors>)
openSubeditorForObject: (id)object;
Opens the subeditor for an object when the
object being edited is
double clicked by the user. If
there is no sub-editor, return nil
,
otherwise method will return the editor for the
object.
- (void)
orderFront;
This method is used to ensure that the editor is
visible on screen.
- (void)
pasteInSelection;
This method is used to add the contents of the
pasteboard to the current selection of objects
within the editor.
- (void)
resetObject: (id)anObject;
Redraws the edited object
- (void)
validateEditing;
Causes the editor to select the text being edited in
the current text field.
- (BOOL)
wantsSelection;
When an editor resigns the selection ownership, all
editors are asked if they want selection ownership,
and the first one to return YES
gets made
into the current selection owner.
- (NSWindow*)
window;
This returns the window in which the editor is drawn.
- Declared in:
- InterfaceBuilder/IBEditors.h
- Conforms to:
- NSObject
The IBSelectionOwners protocol defines the methods that a
selection owner must implement.
Method summary
- (void)
copySelection;
This method places the current selection from the
editor on the pasteboard.
- (void)
drawSelection;
Draw the selection.
- (void)
makeSelectionVisible: (BOOL)flag;
This method is used to draw or remove markup that
identifies selected objects within the object
being edited.
- (void)
selectObjects: (NSArray*)objects;
This method changes the current selection to those
objects in the array.
- (NSArray*)
selection;
Return the selection in an array.
- (unsigned)
selectionCount;
The number of currently selected objects.