revStacks hitting my openField handler in library

J. Landman Gay jacque at hyperactivesw.com
Sat Nov 21 22:24:26 EST 2015


On 11/21/2015 8:55 PM, Dr. Hawkins wrote:
> All in all, though, about 12 hours to work around the staggering deficiency
> of the IDE.

No deficiency. You put a script into the main message path and the IDE 
happened to get some messages before your library did. All messages pass 
through all the libraries unless another script earlier in the hierarchy 
stops it.

Libraries have a layering order dependent on the order in which they 
were inserted. Since the IDE is already set up before your stack's 
library is inserted, the IDE libraries will catch messages before your 
library sees them. The order can change when/if another library is 
inserted or removed. If you were to remove all the IDE library scripts, 
insert yours, and then re-insert the IDE ones, yours would have caught 
the messages first. But since you can't rely on the layering order of 
any particular library, it's safer to just avoid common message handlers 
whenever possible, or test to make sure the message is one you want to 
handle.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list