That's because ASIHTTPRequest
doesn't include a -setPostValue:forKey:
method. ASIFormDataRequest
, on the other hand, does.
It sounds like you're using a pointer of type ASIHTTPRequest*
to send a message to an instance of ASIFormDataRequest
. That's okay if the pointer really points to a form data request, ASIFormDataRequest being a subclass of ASIHTTPRequest, but if you're sure enough about the type of the object that you can send it a message specific to it's type, you also know enough to either use the more specific type in the first place or use a type cast to let the compiler know that it doesn't need to complain.