discuss-gnustep
[Top][All Lists]
Advanced

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

Subclassing NSConnection


From: Gerrit Van Dyk
Subject: Subclassing NSConnection
Date: Tue, 4 Sep 2001 15:44:31 +0200

What is the correct way to subclass NSConnection?

The -init and +new method of NSConnection returns the defaultConnection. It
mentions in the source code that this is an undocumented feature of
Openstep/Mac OSX.
I do not agree with this statement as I am currently developing for Openstep
and subclassing NSConnection and then invoking init on this new object
returns an instance of the new object and not the defaultConnection.

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.

Any help will be appreciated

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]