Re: Method declaration conflict with NSURLConnection.
Re: Method declaration conflict with NSURLConnection.
- Subject: Re: Method declaration conflict with NSURLConnection.
- From: Ryan Bates <email@hidden>
- Date: Wed, 11 Feb 2004 12:52:10 -0800
What error/warning is the compiler reporting?
Also, just for testing purposes, see if this reports the same error:
connection = [(XMLRPCConnection *)[XMLRPCConnection alloc]
initWithRequest:request delegate:delegate];
Ryan
On Feb 11, 2004, at 12:00 PM, Czarny, Eric wrote:
I'm writing an XML-RPC framework that follows a request, connection,
response pattern. The developer creates the request, supplies a
connection
with a request, then returns a response. A lot of the inner workings of
these classes rely on the NSURLRequest and NSURLConnection classes.
All is
fine until, however, I create an instance of my connection class. It
just so
happens that my connection class and the NSURLConnection class have
the same
init method, with slight differences...
- (id)initWithRequest: (XMLRPCRequest *)request delegate: (id)delegate;
I wouldn't think this should be a problem, but it is. When I write
code that
uses this class, and initializes it, the compiler thinks I am making a
call
to NSURLConnection's method, not my own. A strange behavior,
considering
everything has been declared properly, and I'm not doing anything
crazy. I
don't know what the problem could be, any ideas?
Regards,
Eric Czarny
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.