I’m looking through the source code for the CocoaHTTPServer project, more specifically the HTTPServer.m file and I just don’t understand this line:
connectionClass = [HTTPConnection self];
What does this do (is it documented anywhere)? How does it even compile? Should it not be
connectionClass = [HTTPConnection class];
In this context,
- (id)selfis a method defined onNSObject. It returns the receiver. For aClassit should obviously do the same as a call to the-(Class)class.