Instance Method

makeNewConnection:sender:

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

Declaration

- (BOOL)makeNewConnection:(NSConnection *)conn sender:(NSConnection *)ancestor;

Parameters

newConnection

The new connection.

parentConnection

The parent connection.

Return Value

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

Discussion

Use this method to limit the number 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:shouldMakeNewConnection:

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

Deprecated
- 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