home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / InterfaceBuilder.framework / Versions / A / Headers / IBEditors.h < prev    next >
Encoding:
Text File  |  1996-09-10  |  1.3 KB  |  57 lines

  1. /* InterfaceBuilder - IBEditors.h
  2.  * Copyright (c) 1995-1996 NeXT Software, Inc.
  3.  * All rights reserved.
  4.  */
  5.  
  6. #import <AppKit/AppKit.h>
  7. #import <InterfaceBuilder/IBSystem.h>
  8.  
  9. @interface NSObject (IBEditorSpecification)
  10. - (NSString *)editorClassName;
  11. @end
  12.  
  13. @protocol IBSelectionOwners <NSObject>
  14. - (unsigned int)selectionCount; 
  15. - (NSArray *)selection;
  16. - (void)drawSelection;
  17. @end
  18.  
  19. @protocol IBEditors <IBSelectionOwners>
  20.  
  21. /* Editing objects. */
  22. - (id)initWithObject:(id)object inDocument:(id /*<IBDocuments>*/)document;
  23. - (void)close;
  24.  
  25. /* Identifying objects. */
  26. - (id)editedObject;
  27. - (id /*<IBDocuments>*/)document;
  28. - (NSWindow *)window;
  29.  
  30. /* Displaying objects. */
  31. - (void)resetObject:(id)object;
  32.  
  33. /* Managing the selection. */
  34. - (BOOL)wantsSelection;
  35. - (void)selectObjects:(NSArray *)objects;
  36. - (void)makeSelectionVisible:(BOOL)showIt;
  37.  
  38. /* Copying and pasting objects. */
  39. - (BOOL)copySelection;
  40. - (BOOL)deleteSelection;
  41. - (BOOL)pasteInSelection;
  42. - (BOOL)acceptsTypeFromArray:(NSArray *)types;
  43.  
  44. /* Opening and closing editors. */
  45. - (id <IBEditors>)openSubeditorForObject:(id)object;
  46. - (void)closeSubeditors;
  47.  
  48. /* Activating the editor. */
  49. - (void)orderFront;
  50. - (BOOL)activate;
  51. - (void)validateEditing;
  52.  
  53. @end
  54.  
  55. IB_EXTERN NSString *IBSelectionChangedNotification;
  56. IB_EXTERN NSString *IBAttributesChangedNotification;
  57.