[Chandler-dev] Globals.views is going away

John Anderson john at osafoundation.org
Thu May 25 14:27:53 PDT 2006


I'm in the process of getting rid of Globals.views.

As a consequence I've changed CallItemMethodAsync. In addition to taking 
an item that you want to call a method on, it now also accepts a block 
name (as a string) in place of the item. In this case the method will be 
called on the block with that name. So instead doing:

theApp.CallItemMethodAsync(Globals.views[0], "setStatusMessage", "status 
message")

you can now do:

theApp.CallItemMethodAsync("MainView", "setStatusMessage", "status message")

I've updated the Amazon parcel to message blocks by name -- it really 
simplified the code and eliminated the confusion between repository view 
and UI views.

John




More information about the chandler-dev mailing list