Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Availability | Available in Mac OS X v10.0 and later. |
Companion guide | |
Declared in | NSNibConnector.h |
This class represents a basic connection in Interface Builder. You should not use this class directly. If you need to work with nib connections, you would use a subclass like NSNibControlConnector
or NSNibOutletConnector
instead. If you want to create your own type of connectors, you can also define your own custom subclasses.
Returns the connector’s destination.
- (id)destination
The object that is the destination of the connection.
NSNibConnector.h
Establishes a connection between the source and destination object.
- (void)establishConnection
The default implementation of this method does nothing. Subclasses must override it to establish a connection between the source and destination objects. The current label provides the description of how the two objects are connected and can be interpreted differently by different subclasses. This method is called for each connection whenever an application opens a nib file.
NSNibConnector.h
Returns the label associated with the connection.
- (NSString *)label
A string containing information about the type of connection. This value can be interpreted differently by different subclasses. For example, the NSNibControlConnector
interprets this string as the selector to call as an action method.
NSNibConnector.h
Changes the connection’s source or destination object to the specified object.
- (void)replaceObject:(id)oldObject withObject:(id)newObject
The object you want to replace. This object can be either the current source object or the current destination object.
The replacement object.
If the object in oldObject is not used for either the source or destination of this connection, this method does nothing.
NSNibConnector.h
Sets the connector’s destination to destination.
- (void)setDestination:(id)destination
The object that is the destination of the connection.
NSNibConnector.h
Sets the label for the connection.
- (void)setLabel:(NSString *)label
A string containing information about the type of connection. This value can be interpreted differently by different subclasses. For example, the NSNibControlConnector
interprets this string as the selector to call as an action method.
NSNibConnector.h
Sets the connector’s source to the specified object.
- (void)setSource:(id)source
The object that is the source of the connection.
NSNibConnector.h
Returns the connector’s source.
- (id)source
The object that is the source of the connection.
NSNibConnector.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-22)