Datagrids and Nested Behaviors

Mark Wieder ahsoftware at sonic.net
Fri Jul 20 22:48:36 CEST 2018


On 07/20/2018 11:43 AM, Bob Sneidar via use-livecode wrote:
> I believe I may have mispoken in this thread. Setting the behavior of an object does NOT insert the behavior script in FRONT of the object in the message path. It inserts it in BACK. I know this because I have a selectionChanged handler in both the object and it's behavior, and a breakpoint in each handler. The breakpoint is triggered in the object handler, and NOT in the behavior handler, as you might expect!

That's the way object-oriented programming works. You set the default 
operation in the behavior script and then you can override it in the 
object if needed. I think of behavior scripts more or less as private 
backscripts of an object.

Otherwise, just follow Brian's suggestion.

-- 
  Mark Wieder
  ahsoftware at gmail.com



More information about the use-livecode mailing list