• 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: wotextfield to getX() and setX()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wotextfield to getX() and setX()


  • Subject: Re: wotextfield to getX() and setX()
  • From: Timo Hoepfner <email@hidden>
  • Date: Wed, 11 Mar 2009 13:33:49 +0100

I have bounded wotextfield to getX() and setX() method and that wotextfield field is used in an worepetition
issue is it comes to setX() method only if we enter (field has) a value. How to change this to come setX() method even it has an empty value.


thanks
Rukmal Dias

The setX() will only be called if the value from the filed differs from the one returned by getX(). There is no easy way around it.


This comes from NSValidation.DefaultImplementation.validateTakeValueForKeyPath.

<http://developer.apple.com/documentation/InternetWeb/Reference/ WO542Reference/com/webobjects/foundation/ NSValidation.DefaultImplementation.html#validateTakeValueForKeyPath (java.lang.Object, java.lang.Object, java.lang.String)>

Confirms that value is legal for an objects's property, which is named by keyPath, and assigns the value to the property if it's legal (and if value is different from the current value).


If you tell us what you're actually trying to accomplish, we can maybe point you to a different solution.

Timo

_______________________________________________
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


  • Follow-Ups:
    • Re: wotextfield to getX() and setX()
      • From: Kieran Kelleher <email@hidden>
References: 
 >wotextfield to getX() and setX() (From: Rukmal Dias <email@hidden>)

  • Prev by Date: wotextfield to getX() and setX()
  • Next by Date: Re: Is this an encoding problem???
  • Previous by thread: wotextfield to getX() and setX()
  • Next by thread: Re: wotextfield to getX() and setX()
  • Index(es):
    • Date
    • Thread