home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / IBConnectors.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  1.0 KB  |  38 lines

  1. /* InterfaceBuilder - IBConnectors.h
  2.  * Copyright (c) 1995-1996 NeXT Software, Inc.
  3.  * All rights reserved.
  4.  */
  5.  
  6. #import <Foundation/Foundation.h>
  7. #import <AppKit/NSApplication.h>
  8. #import <InterfaceBuilder/IBSystem.h>
  9.  
  10. @protocol IBConnectors <NSObject, NSCoding>
  11. - (id)source;
  12. - (id)destination;
  13. - (NSString *)label;
  14. - (void)replaceObject:(id)oldObject withObject:(id)newObject;
  15. - (id)nibInstantiate;
  16. - (void)establishConnection;
  17. @end
  18.  
  19. /* Managing connections.  The following might be useful when
  20.  * implementing your own connection inspector.
  21.  */
  22.  
  23. @interface NSApplication (IBConnections)
  24. - (id)connectSource;
  25. - (id)connectDestination;
  26. - (BOOL)isConnecting;
  27. - (void)stopConnecting;
  28. - (void)displayConnectionBetween:(id)source and:(id)destination;
  29. @end
  30.  
  31. /* Notifications. */
  32.  
  33. /* The notification object is the connector in question. */
  34. IB_EXTERN NSString *IBWillAddConnectorNotification;
  35. IB_EXTERN NSString *IBDidAddConnectorNotification;
  36. IB_EXTERN NSString *IBWillRemoveConnectorNotification;
  37. IB_EXTERN NSString *IBDidRemoveConnectorNotification;
  38.