From: Ryan Leavengood Date: 2006-05-18T03:27:17+09:00 Subject: Re: Need help designing UI On 5/17/06, Scott L Holmes wrote: > > Some form of context. A toolbarbutton is on a toolbar is on a viewer. In > a generic way, when the viewer gets created, it would register a context > which could be a simple random number. All sub-parts get the context? > When the toolbarbutton fires it broadcasts a command constant and the > context? Thinking out loud. Does avoid the references but now I gotta > pass around a random number. In Ruby - that's a reference too. hmmmmm. For the command constant you should use Ruby symbols: :this_is_a_symbol :another_one In other words anything starting with a colon. These are unique per invocation of Ruby, and :this will always equals :this through-out the program. So in your case using something like :cmd_close or :CMD_CLOSE would be the best choice. Ryan