Instance Method

connection:shouldMakeNewConnection:

Returns a Boolean value that indicates whether the parent connection should allow a given new connection to be created.

Declaration

- (BOOL)connection:(NSConnection *)ancestor shouldMakeNewConnection:(NSConnection *)conn;

Parameters

parentConnection

The connection object for which the receiver is the delegate.

newConnnection

The new connection.

Return Value

YES if parentConnection should allow newConnnection to be created and set up, NO if parentConnection should refuse and immediately release newConnection.

Discussion

Use this method to limit the amount of NSConnection objects created in your application or to change the parameters of child NSConnection objects.

Use NSConnectionDidInitializeNotification instead of this delegate method if possible.

See Also

Responding to a Connection

- connection:handleRequest:

This method should be implemented by NSConnection object delegates that want to intercept distant object requests.

Deprecated
- createConversationForConnection:

Returns an arbitrary object identifying a new conversation being created for the connection in the current thread.

Deprecated
- makeNewConnection:sender:

Returns a Boolean value that indicates whether the parent should allow a given new connection to be created and configured.

Deprecated