Search path for defaultMenuBar

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Sep 18 14:14:15 EDT 2008


Hi Richard,

After starting a new session, the defaultMenubar contains (on Mac OS X):

group "revMenuBar" of card "card id 1002" of stack "/Applications/ 
Revolution Enterprise/3.0.0-gm-3/Toolset/revmenubar.rev"

Not the short name, apparently.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
  for more info.

On 18 sep 2008, at 19:40, Richard Gaskin wrote:

> The defaultMenuBar is becoming increasingly important for a couple  
> of my apps as their complexity grows.  But the docs offer only this  
> slender tidbit about it:
>
>  The defaultMenuBar is the short name of any group that is in
>  a stack that is in memory.
>
> Short name, eh?  That means no reference to the stack that contains  
> it.
>
> So if I have multiple stacks in which each has its own menuBar set  
> to a group using the same name as the others, how does the engine  
> determine which group is the defaultMenuBar?
>
> Is it the group in topmost stack?
> The one in the stack that was topmost at the time the defaultMenuBar  
> was last set?
> Or something else?
>
> -- 
> Richard Gaskin
> Managing Editor, revJournal





More information about the use-livecode mailing list