Behaviors not behaving

Peter Haworth pete at lcsql.com
Mon Dec 1 15:14:31 EST 2014


Hi Ralph,
Might be a related issue but in this case, I'm opening stacks from within
the IDE not by double clicking them in the Finder.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Mon, Dec 1, 2014 at 11:06 AM, Ralph DiMola <rdimola at evergreeninfo.net>
wrote:

> Peter,
>
> I run into this when I double click on a stack to open the IDE. My library
> stacks are not yet fully loaded and calls to them fail. The trick for me is
> to load the IDE then load the stack I'm working on. This only applies to
> the
> library stacks in the MyLiveCode/Plugins folder when running in the IDE.
> When running as standalone I load the library stacks in the preopenstack of
> the main stack.
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On
> Behalf
> Of Peter Haworth
> Sent: Monday, December 01, 2014 1:32 PM
> To: How to use LiveCode
> Subject: Behaviors not behaving
>
> I'm working on a system that consists of a plugin, a library stack file and
> a stack file containing buttons with behavior scripts.
>
> The plugin creates an application stack file plus various controls within
> it
> that have their behaviors set to the buttons in the behavior stack file.
>
> Since the behaviors are not in the application stack file, I set the
> stackFiles property of the application stack to have an entry referencing
> the behaviors stack file.
>
> That setup all works fine most of the time, behaviors are resolved as they
> should be. However, on any subsequent runs of LC, if I open the plugin
> first
> then open the application file, none of the behavior scripts fire.
> All works fine if I open the application stack file first followed by the
> plugin.
>
> There are no references to the behaviors stack file in any of the plugin
> scripts or the library stack scripts and the plugin's stackFiles entry is
> empty as is the library stack's.
>
> I tried opening the behaviors stack file in the plugin so that it would be
> open when I opened the application stack but the behaviors still did not
> fire.
>
> What could there be in the plugin stack that would interfere with the
> resolution of behaviors in the application stack?
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list