• 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
Re: Updating WORequest form values in 5.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Updating WORequest form values in 5.4 (From: JR Ruggentaler <email@hidden>)

  • Prev by Date: ADC / WO after 5.4 and NDA
  • Next by Date: Re: ADC / WO after 5.4 and NDA
  • Previous by thread: Updating WORequest form values in 5.4
  • Next by thread: ADC / WO after 5.4 and NDA
  • Index(es):
    • Date
    • Thread