Prior to WO 5.4 WORequest.formValues() returned a NSMutableDictionary object. You had to cast the returned object to NSMutableDictionary as WORequest.formValues() return type was declared to be NSDictionary.
Technically speaking, you should not be doing this -- it's a violation of the API to do so (and this is why -- 5.4 is enforcing that immutable API). There is no official API to inject form values into a request. The proper way is probably to add request userInfo, maybe. If you absolutely have to add form values, the only option is probably to subclass WORequest with your own subclass and override _formValues() to be public, which returns the underlying formValues dictionary. Be careful, though, because you can break things if your request is using multipart encoding.

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to