Inheritance and Custom Properties

David Bovill david.bovill at
Wed Apr 15 07:58:58 EDT 2009

2009/4/15 Jim Bufalini <jim at>

> Because they are not inherited, you are able to set them all independently
> to different values, even though they all have the same names and keys.

If you want them "inherited" you need to define a "getprop" handler.

getprop porkNbeans
>      -- return your data here
> end porkNbeans
> setprop porkNbeans someValue
>      -- set your data here
> end porkNbeans

Put those anywhere in the hierarchy to "inherit" the property for all
objects below it in the message path. You can check for the type of object
if you want to restrict the property to particular things.

More information about the use-livecode mailing list