Yes .... NSKeyValueCoding interface is what makes it work.

the WOD dict.key1 is the same as the java code
        
        dict.valueForKey( "key1" );

On Oct 24, 2007, at 9:36 AM, Daniele Corti wrote:

I've notice one thing with NSDictionary:
 you can call directly the key of the element to get the value:

dict = {key1 = "MyValue1", key2 = "MyValue2"}

str : WOString {
   value = dict.key1;
}

and result is MyValue1.

is this how dictionaries work?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to