discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Subclassing NSConnection


From: Gerrit Van Dyk
Subject: RE: Subclassing NSConnection
Date: Wed, 5 Sep 2001 07:38:39 +0200

>What is the correct way to subclass NSConnection?

>I need to subclass NSConnection and when I invoke init on this new subclass
>the init should return an instance of the new class and not a subclass of
>NSConnection.

I replaced my [[SubConnection alloc] init] call with 
[[SubConnection alloc] initWithReceivePort:[NSPort port] sendPort:nil], and
it now seems to work OK.

Is this the correct way of initialising a subclass of NSConnection?

Regards
Gerrit van Dyk
 
-------------------------------------------------------------------------
This e-mail is intended only for the use of the individual or entity named
above and may contain information that is confidential and privileged,
proprietary to the company and protected by law. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this e-mail is strictly prohibited. Opinions, conclusions and
other information in this message that do not relate to the official
business of our company shall be understood as neither given nor endorsed by
it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]