Re: Updating WORequest form values in 5.4
Re: Updating WORequest form values in 5.4
- Subject: Re: Updating WORequest form values in 5.4
- From: Mike Schrag <email@hidden>
- Date: Mon, 16 Feb 2009 17:27:11 -0500
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden