Re: Access bindings at runtime
Re: Access bindings at runtime
- Subject: Re: Access bindings at runtime
- From: Art Isbell <email@hidden>
- Date: Tue, 3 Feb 2004 14:46:42 -1000
On Feb 3, 2004, at 12:55 PM, David Griffith wrote:
Where
you have put 'session.localizedString.todaysDateIs' - is
'todaysDateIs' like
a placeholder or identifier for the string to be looked up? That's
basically what I am looking for. And by implementing 'stringInLocale'
to
search in the database, is this intended to search the database
instead of
the localised.strings file? If so, how does
'session.localizedString.todaysDateIs' pass the value to the method in
the
session? I.e. The 'key'
Something like "session.localizedString.todaysDateIs" would work if
your WOSession subclass has a NSDictionary instance variable,
localizedString, or a localizedString() method that returns an
NSDictionary. This dictionary could be populated by the localized
values of application strings when a session is created and the user's
language preference is known. Maybe your WOApplication object could
fetch into a shared editing context all localized strings for all
supported languages when the app launches. Then when the session is
created, its localizedString dictionary would be populated from the
application object's in-memory cache thus avoiding many trips to the
DB.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.