home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / InterfaceBuilder.framework / Versions / A / Headers / IBApplicationAdditions.h next >
Encoding:
Text File  |  1997-02-07  |  1.1 KB  |  37 lines

  1. /* InterfaceBuilder - IBApplicationAdditions.h
  2.  * Copyright (c) 1995-1996 NeXT Software, Inc.
  3.  * All rights reserved.
  4.  */
  5.  
  6. #import <InterfaceBuilder/IBDocuments.h>
  7. #import <InterfaceBuilder/IBEditors.h>
  8.  
  9. @protocol IB
  10.  
  11. /* Returns the active document (i.e., the document containing the current
  12.  * selection), or nil if there is no active document. */
  13.  
  14. - (id <IBDocuments>)activeDocument;
  15.  
  16. /* Returns the object which owns the current selection, or nil if there
  17.  * is no current selection. */
  18.  
  19. - (id <IBSelectionOwners>)selectionOwner;
  20.  
  21. /* Convenience method: returns the currently selected object, or nil if there
  22.  * is no selection or if there is more than one selected object. */
  23.  
  24. - (id)selectedObject;
  25.  
  26. /* Returns YES if we are testing the interface; NO otherwise. */
  27.  
  28. - (BOOL)isTestingInterface;
  29.  
  30. @end
  31.  
  32. /* The notification object is the document of the interface we're testing. */
  33. IB_EXTERN NSString *IBWillBeginTestingInterfaceNotification;
  34. IB_EXTERN NSString *IBDidBeginTestingInterfaceNotification;
  35. IB_EXTERN NSString *IBWillEndTestingInterfaceNotification;
  36. IB_EXTERN NSString *IBDidEndTestingInterfaceNotification;
  37.