The target is different on Mac and Windows
J. Landman Gay
jacque at hyperactivesw.com
Thu Feb 16 23:48:56 EST 2012
On 2/16/12 10:25 PM, Pete wrote:
> I'll try that of course, but why would that work differently on Mac than on
> Windows?
It has something to do with what the engine needs to do to put the Mac
menu into the system menubar. Whatever that is, it's the same reason you
can't put scripts in menu buttons for Mac, you have to put them into the
menu group. I think the buttons are essentially virtualized on a Mac and
don't really exist when the menu is active in the system bar.
The target is the object that directly received the last message. On a
Mac that would be the group (since the buttons aren't "real" there and
didn't really receive a click. The first object to receive a message
would be the group.) On Windows, the target would be the button itself
because on that OS, the buttons really are a part of the object hierarchy.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list