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
- conn:
The new connection.
- ancestor:
The parent connection.
Return Value
true if ancestor should allow conn to be created and configured, false if ancestor should refuse and immediately release conn.
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.