defaultMenuBar question
Posted: Thu Aug 05, 2010 2:37 am
I have used the Menu Builder to define an OSX menu that I want to be the default menubar for all my stacks and it does indeed appear no matter which stack I open. So far so good.
I'm now writing some general purpose handlers to manipulate the contents of menus and have a function that returns the menuitems of one specific menu in the menubar. In order to do this, I check if the menubar property of the current stack is empty and if it is, I use the defaultMenuBar as the source for all subsequent actions. What I've found is that the defaultMenuBar is set to group "revMenuBar" of card "card id 1002" of stack "/Applications/Revolution Studio/4.0.0-gm-1/Toolset/revmenubar.rev".
I have not explicitly set the defaultMenubar anywhere in my code because I didn't know of it's existence initially and when I found it I assumed I didn't need to set it because my menu bar appears correctly when any stack is displayed.
So I guess the question is - do I have to set the defaultMenuBar property and if so why, or am I misunderstanding it's contents?
Thanks,
Pete
I'm now writing some general purpose handlers to manipulate the contents of menus and have a function that returns the menuitems of one specific menu in the menubar. In order to do this, I check if the menubar property of the current stack is empty and if it is, I use the defaultMenuBar as the source for all subsequent actions. What I've found is that the defaultMenuBar is set to group "revMenuBar" of card "card id 1002" of stack "/Applications/Revolution Studio/4.0.0-gm-1/Toolset/revmenubar.rev".
I have not explicitly set the defaultMenubar anywhere in my code because I didn't know of it's existence initially and when I found it I assumed I didn't need to set it because my menu bar appears correctly when any stack is displayed.
So I guess the question is - do I have to set the defaultMenuBar property and if so why, or am I misunderstanding it's contents?
Thanks,
Pete