• 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: Localization & EO Setters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localization & EO Setters


  • Subject: Re: Localization & EO Setters
  • From: George Domurot <email@hidden>
  • Date: Sat, 18 Feb 2012 12:48:19 -0800

I'm pretty sure you can add your own setters/getters for each attribute and language, i.e.:

    public String value_en()
        {
        return (String) eo().valueForKey("value_en");
        }

    public void setValue_en(String inValue)
        {
        eo().takeValueForKey(inValue, "value_en");
        }

-G


On Feb 18, 2012, at 8:49 AM, Kevin Hinkson wrote:

Hi all,

I have some EO attributes successfully localized and up to this point they have mostly been values that do not change much. However, I now will have some values in the db that may change often and I am wondering what the best practice is for how setters for localized attributes are handled? 

1. Is just the correct localized value updated in the database by magically reading the current language settings?
2. How would I go about setting the _en, _fr and _es values for a key via the EO?

PS: wasn't there a search field at the top of this mailing list at one point in time?

— K.R.H.
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: Localization & EO Setters
      • From: Kevin Hinkson <email@hidden>
References: 
 >Localization & EO Setters (From: Kevin Hinkson <email@hidden>)

  • Prev by Date: Re: New AjaxFramework and AjaxSortableList bug
  • Next by Date: Re: Localization & EO Setters
  • Previous by thread: Localization & EO Setters
  • Next by thread: Re: Localization & EO Setters
  • Index(es):
    • Date
    • Thread