messages path
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: messages path
Hi Bernd,
I'd call that a bug.
Best regards,
Mark
I'd call that a bug.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: messages path
I don't believe background buttons in HC ever passed through the card. The messages went directly to the background, then to the stack. So the current behavior looks correct to me.Mark wrote:Hi Bernd,
If you want to mimic the HyperCard behaviour, the button that's part of the group should return
card
background
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: messages path
Jacque,
You don't see what the problem is. In HyperCard, once a message is sent to the background, it never goes back to the card before continuing to the stack. LiveCode's current behaviour breaks HyperCard stacks. This is incorrect. This is a bug.
Kind regards,
Mark
You don't see what the problem is. In HyperCard, once a message is sent to the background, it never goes back to the card before continuing to the stack. LiveCode's current behaviour breaks HyperCard stacks. This is incorrect. This is a bug.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: messages path
Agreed. That isn't what you said in the part I quoted, which is why I commented.Mark wrote:Jacque,
You don't see what the problem is. In HyperCard, once a message is sent to the background, it never goes back to the card before continuing to the stack.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: messages path
This may sound sacrilegious, but maybe HyperCard was wrong.
The notion of inserting or remove the script of one object (the card) from the message path of an object based on whether that object is a member of a different object (the background) seems an unnecessary ambiguity, and a particularly odd and disjointed one. Why would we not want a single message path for all objects on a given card?
So it breaks a few HC stacks. In mid-2011, what practical impact will that make?
Given that Apple killed HC more than a decade ago, anyone with HC stacks worth porting has probably already ported them to LiveCode, or SuperCard, or the web, or Flash. or something else. Apple hasn't even make a machine capable of natively running the OS HC requires for several years. It was a great tool in its day, but it's day has come and gone a very long time ago. How many stacks worth porting haven't been in all these years?
I would wager the material impact in LiveCode scripts for introducing this anomalous ambiguity from HC's legacy would be far greater than any material cost to what few remaining HC stacks there may be which depend on this oddity and haven't yet been ported to LC or something else.
The notion of inserting or remove the script of one object (the card) from the message path of an object based on whether that object is a member of a different object (the background) seems an unnecessary ambiguity, and a particularly odd and disjointed one. Why would we not want a single message path for all objects on a given card?
So it breaks a few HC stacks. In mid-2011, what practical impact will that make?
Given that Apple killed HC more than a decade ago, anyone with HC stacks worth porting has probably already ported them to LiveCode, or SuperCard, or the web, or Flash. or something else. Apple hasn't even make a machine capable of natively running the OS HC requires for several years. It was a great tool in its day, but it's day has come and gone a very long time ago. How many stacks worth porting haven't been in all these years?
I would wager the material impact in LiveCode scripts for introducing this anomalous ambiguity from HC's legacy would be far greater than any material cost to what few remaining HC stacks there may be which depend on this oddity and haven't yet been ported to LC or something else.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: messages path
In HC the message path was pretty rigid, and there was a distinct difference between card and background objects. If an object was on a background, it was already behind the card layer, and it made sense that the card should not get any messages related to it. The message path was like this:FourthWorld wrote:This may sound sacrilegious, but maybe HyperCard was wrong.
The notion of inserting or remove the script of one object (the card) from the message path of an object based on whether that object is a member of a different object (the background) seems an unnecessary ambiguity, and a particularly odd and disjointed one. Why would we not want a single message path for all objects on a given card?
card control
card
background control
background
stack
Wherever you entered the message path, the flow went from there to the engine, and never circled back again. In LC, where the distinction between card and background objects isn't as rigid (and we don't even need to specify) the path can be more circuitous. In either case, the background/group will always get the message after the control does.
I have to agree with you here. As probably one of the few remaining people who still gets HC conversion work, I know that there are already enough tweaks required that having one more is hardly likely to matter. The first thing I do with a converted stack is to turn off HCAddressing, so the path issue is pretty much moot for me. I wouldn't ask the RR team to spend any time on this at all, the audience for it is so tiny and those of us who still do the occasional conversion can deal with it easily.FourthWorld wrote:So it breaks a few HC stacks. In mid-2011, what practical impact will that make?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com