NSNibConnector Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSNibConnector.h |
Overview
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.
Adopted Protocols
Instance Methods
destination
Returns the connector’s destination.
Return Value
The object that is the destination of the connection.
Availability
- Available in OS X v10.0 and later.
Declared In
NSNibConnector.hestablishConnection
Establishes a connection between the source and destination object.
Discussion
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.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSNibConnector.hlabel
Returns the label associated with the connection.
Return Value
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.
Availability
- Available in OS X v10.0 and later.
Declared In
NSNibConnector.hreplaceObject:withObject:
Changes the connection’s source or destination object to the specified object.
Parameters
- oldObject
The object you want to replace. This object can be either the current source object or the current destination object.
- newObject
The replacement object.
Discussion
If the object in oldObject is not used for either the source or destination of this connection, this method does nothing.
Availability
- Available in OS X v10.0 and later.
Declared In
NSNibConnector.hsetDestination:
Sets the connector’s destination to destination.
Parameters
- destination
The object that is the destination of the connection.
Availability
- Available in OS X v10.0 and later.
Declared In
NSNibConnector.hsetLabel:
Sets the label for the connection.
Parameters
- label
A string containing information about the type of connection. This value can be interpreted differently by different subclasses. For example, the
NSNibControlConnectorinterprets this string as the selector to call as an action method.
Availability
- Available in OS X v10.0 and later.
Declared In
NSNibConnector.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-22)