• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Method declaration conflict with NSURLConnection.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Method declaration conflict with NSURLConnection.


  • Subject: Method declaration conflict with NSURLConnection.
  • From: "Czarny, Eric" <email@hidden>
  • Date: Wed, 11 Feb 2004 15:00:02 -0500

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.

  • Prev by Date: NonactivatingPanelMask and NSColorPanel
  • Next by Date: Problem with CFTreeAppendChild ...
  • Previous by thread: NonactivatingPanelMask and NSColorPanel
  • Next by thread: Re: Method declaration conflict with NSURLConnection.
  • Index(es):
    • Date
    • Thread