|
From: Joseph G. <ga...@au...> - 2006-10-10 22:33:29
|
Hello,
I have been successful in loading a simple asml layout in an
ActionStep app. I would now like to be able to access the objects after
they have been loaded in order to hide certain objects depending upon
external parameters. I haven't been able to figure out how to access the
elements that have been loaded by the ASAsmlReader. My current attempt
is as follows:
app = NSApplication.sharedApplication();
var reader:ASAsmlReader = (new
ASAsmlReader()).initWithUrl("classes/simplelayout.xml");
var objects:NSDictionary =
reader.asmlFile().idToObjectDictionary();
if(has_param) {
NSButton(objects.objectForKey("btn_three")).setHidden(true);
NSButton(objects.objectForKey("btn_four")).setHidden(true);
}
app.run();
I am using the id's that I assigned to the buttons in the asml as the
keys. The objectForKey method doesn't seem to be getting the correct
object. What should I do in order to access the objects?
Thanks,
Joe Gay
|