home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / InterfaceBuilder.framework / Versions / A / Headers / IBConnectors.h < prev    next >
Encoding:
Text File  |  1996-12-10  |  1.1 KB  |  42 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. @interface NSObject (IBNibInstantiation)
  32. - (id)nibInstantiate;
  33. @end
  34.  
  35. /* Notifications. */
  36.  
  37. /* The notification object is the connector in question. */
  38. IB_EXTERN NSString *IBWillAddConnectorNotification;
  39. IB_EXTERN NSString *IBDidAddConnectorNotification;
  40. IB_EXTERN NSString *IBWillRemoveConnectorNotification;
  41. IB_EXTERN NSString *IBDidRemoveConnectorNotification;
  42.