if(choices instanceof NSArray) {
for(Enumeration e = ((NSArray)choices).objectEnumerator(); e.hasMoreElements(); ) {
NSDictionary dict = (NSDictionary)e.nextElement();
String key = (String)dict.allKeys().lastObject();
String value = (String)dict.objectForKey(key);
keyChoices.addObject(new ERXKeyValuePair(key, ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(value)));
}
} else if(choices instanceof NSDictionary) {
NSArray keys = ((NSDictionary)choices).allKeys();
keys = ERXArrayUtilities.sortedArraySortedWithKey(keys, "toString");
for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) {
String key = (String)e.nextElement();
String value = (String)((NSDictionary)choices).objectForKey(key);
keyChoices.addObject(new ERXKeyValuePair(key, ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(value)));
}
}
_availableElements = keyChoices;
}
if(_availableElements==null){