Multiple revCursors substacks added to standalone
For a while now (LC 9.x) I have been finding that making a standalone sometimes adds multiple copies of revCursors to the standalone. One copy as a substack of the mainstack is expected, but under some unknown circumstances I get 3 more copies of the stack added (not as substacks). This on a Mac. I first thought this occurred when the standalone builder reported errors about the ask dialog, but my last build included the extra copies without any warnings occurring during the build process. The source file stack after the build has finished also has these copies of revCursors. I discovered this when I added the source stack to nsScriptDatabase. But it can also be seen in the Project Browser - a number of blank lines occur in the stack list tree, presumably because PB doesn’t like the duplicate stack names. A difficult bug to report to Quality Control without a recipe. Neville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
On 6/5/22 05:51, General 2018 via use-livecode wrote: Hi, So using real substacks being opened by go to from mainstack and then closing from substack returning to mainstack all working well, thanks for the previous suggestions. Just found some odd behaviour :- The mainstack and substacks have items in PreOpenStack. The substack has for example, On preopenstack Set the foregroundcolor of fld “xyz” to red End preopenstack This works on the first pass of go to substack from mainstack. But if the substack is closed and go to substack from mainstack is used again the fld “xyz” is not found. To get round this I added the cd in the substack - fld “xyz” of cd “123” . Two questions :- 1. Is this the expected behaviour ? 2. Why does it work on the first pass without using - of cd “123” A little hard to diagnose from a distance but here are some thoughts: First of all, per the docs, the preOpenStack handlers should be in the first card of the stacks, not in the scripts of the stacks themselves. Then it sounds like maybe you have multiple cards in your substack and the currently selected card is not card "123" at the time you invoke the goto command the second time. If the (badly-named) destroyStack property of the substack is set to false (the default) then the substack will still be in memory and your preOpenStack handler will be triggered at its current card setting. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
Hi, So using real substacks being opened by go to from mainstack and then closing from substack returning to mainstack all working well, thanks for the previous suggestions. Just found some odd behaviour :- The mainstack and substacks have items in PreOpenStack. The substack has for example, On preopenstack Set the foregroundcolor of fld “xyz” to red End preopenstack This works on the first pass of go to substack from mainstack. But if the substack is closed and go to substack from mainstack is used again the fld “xyz” is not found. To get round this I added the cd in the substack - fld “xyz” of cd “123” . Two questions :- 1. Is this the expected behaviour ? 2. Why does it work on the first pass without using - of cd “123” Regards Camm > On 29 May 2022, at 20:32, General 2018 wrote: > > Hi Jacquline, > > Think your question lead me to the issue. > > For some reason on the stack that did not work I added the substack by > opening the mainstack and substack and saving the substack into the mainstack > somehow. > > I started from new and added the substack by using the add stack file button > within standalone settings and it worked fine. > > > Regards > Camm > >> On 29 May 2022, at 17:27, J. Landman Gay via use-livecode >> wrote: >> >> Just to clarify, are they real substacks or do you mean they are separate >> stacks that you include in the build? Also, double check that standalone >> settings isn't set up to move substacks into separate files. I think that >> option is in the general pane but I'm not at my computer to check. >> -- >> Jacqueline Landman Gay | jac...@hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >>>> On May 29, 2022 6:05:08 AM General 2018 via use-livecode >>>> wrote: >>> >>> Still no luck, no closestack handler in “main stack” , tried the other >>> suggestions with hide/show etc. But still “mainstack” quits on closing the >>> “substack xyz” >>> >>> Will keep looking…….. >>> >>> Regards >>> >>>>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode >>>>> wrote: >>>> >>>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>>>> Hi , >>>>> New to substacks - I have a “mainstack” used as a menu page for 2x >>>>> “substacks” >>>>> When “substacks” opened from “mainstack” they open fine using — go to >>>>> stack “xyz” >>>>> The problem is closing of the “substacks” using - close stack, go to >>>>> “mainstack” or close this stack it always closes (quit) everything. Need >>>>> “mainstack” to reappear/remain ? >>>>> Looked at docs and other posts. But stuck no doubt I have missed >>>>> something. >>>> >>>> Do you have a closeStack handler in the script of the mainstack? >>>> >>>> >>>> -- >>>> Mark Wieder >>>> ahsoftw...@gmail.com >>>> >>>> ___ >>>> use-livecode mailing list >>>> use-livecode@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
Hi Jacquline, Think your question lead me to the issue. For some reason on the stack that did not work I added the substack by opening the mainstack and substack and saving the substack into the mainstack somehow. I started from new and added the substack by using the add stack file button within standalone settings and it worked fine. Regards Camm > On 29 May 2022, at 17:27, J. Landman Gay via use-livecode > wrote: > > Just to clarify, are they real substacks or do you mean they are separate > stacks that you include in the build? Also, double check that standalone > settings isn't set up to move substacks into separate files. I think that > option is in the general pane but I'm not at my computer to check. > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On May 29, 2022 6:05:08 AM General 2018 via use-livecode >> wrote: >> >> Still no luck, no closestack handler in “main stack” , tried the other >> suggestions with hide/show etc. But still “mainstack” quits on closing the >> “substack xyz” >> >> Will keep looking…….. >> >> Regards >> >>>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode >>>> wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>>> Hi , >>>> New to substacks - I have a “mainstack” used as a menu page for 2x >>>> “substacks” >>>> When “substacks” opened from “mainstack” they open fine using — go to >>>> stack “xyz” >>>> The problem is closing of the “substacks” using - close stack, go to >>>> “mainstack” or close this stack it always closes (quit) everything. Need >>>> “mainstack” to reappear/remain ? >>>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Do you have a closeStack handler in the script of the mainstack? >>> >>> >>> -- >>> Mark Wieder >>> ahsoftw...@gmail.com >>> >>> ___ >>> use-livecode mailing list >>> use-livecode@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
Just to clarify, are they real substacks or do you mean they are separate stacks that you include in the build? Also, double check that standalone settings isn't set up to move substacks into separate files. I think that option is in the general pane but I'm not at my computer to check. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 29, 2022 6:05:08 AM General 2018 via use-livecode wrote: Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” Will keep looking…….. Regards On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: On 5/28/22 07:15, General 2018 via use-livecode wrote: Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Do you have a closeStack handler in the script of the mainstack? -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
At the risk of repeating someone else’s suggestion. I address this by have an on closeStsck handler in the main stack. I’m in my phone so don’t have access to code but it’s along the lines of: On closeStack If the short name of me is “” then closeStack End closeStack Works rely as bay for me though variations could include “if name is not “xxx” then exit closeStsck Will see which is correct when I get to my machine. Good Luck. Jim NOTE: This has worked reliably for years. I doubt something has changed but perhaps? NOTE 2: To avoid the “mental pain” of not having something like this working, I’d recommend creating a new stack and sub stack combination just to trouble shoot the problem. I’d say 9 times out of 10, I can get the simple test to work which points me to some other issue I never would have discovered that ended up being the issue (like not remembering that before my closeStack was issued, i navigated back to the main stack by a go card “” of the main stack as part of my trying to figure out what was happening but the timing was such I never saw the transition.) Sent from Jim's iPhone Please excuse brevity, typos and errors > On May 29, 2022, at 4:05 AM, General 2018 via use-livecode > wrote: > > Still no luck, no closestack handler in “main stack” , tried the other > suggestions with hide/show etc. But still “mainstack” quits on closing the > “substack xyz” > > Will keep looking…….. > > Regards > >>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode >>> wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>> Hi , >>> New to substacks - I have a “mainstack” used as a menu page for 2x >>> “substacks” >>> When “substacks” opened from “mainstack” they open fine using — go to stack >>> “xyz” >>> The problem is closing of the “substacks” using - close stack, go to >>> “mainstack” or close this stack it always closes (quit) everything. Need >>> “mainstack” to reappear/remain ? >>> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Do you have a closeStack handler in the script of the mainstack? >> >> >> -- >> Mark Wieder >> ahsoftw...@gmail.com >> >> ___ >> use-livecode mailing list >> use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” Will keep looking…….. Regards > On 29 May 2022, at 00:12, Mark Wieder via use-livecode > wrote: > > On 5/28/22 07:15, General 2018 via use-livecode wrote: >> Hi , >> New to substacks - I have a “mainstack” used as a menu page for 2x >> “substacks” >> When “substacks” opened from “mainstack” they open fine using — go to stack >> “xyz” >> The problem is closing of the “substacks” using - close stack, go to >> “mainstack” or close this stack it always closes (quit) everything. Need >> “mainstack” to reappear/remain ? >> Looked at docs and other posts. But stuck no doubt I have missed something. > > Do you have a closeStack handler in the script of the mainstack? > > > -- > Mark Wieder > ahsoftw...@gmail.com > > ___ > use-livecode mailing list > use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
On 5/28/22 07:15, General 2018 via use-livecode wrote: Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Do you have a closeStack handler in the script of the mainstack? -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
Hide the mainstack, when opening the substack, then show the mainstack in the substack’s closestack handler. Sent from my iPhone > On May 28, 2022, at 12:41, General 2018 via use-livecode > wrote: > > Thanks for the tip but still no good. > > So button in “xyz” substack with close stack “xyz” still closes all ? > > Regards Camm > >> On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode >> wrote: >> >> Hi, >> >> did you try close stack "xyz" ? Thias works for me, in the IDE at least, >> both if called from the mainstack and from the substack. Only the substack >> is closed. >> >> Livecode 9.6.7 and Windows 10 >> >> >> Hope this helps >> >> Thomas >> >> >>>> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >>> Hi , >>> >>> New to substacks - I have a “mainstack” used as a menu page for 2x >>> “substacks” >>> >>> When “substacks” opened from “mainstack” they open fine using — go to stack >>> “xyz” >>> >>> The problem is closing of the “substacks” using - close stack, go to >>> “mainstack” or close this stack it always closes (quit) everything. Need >>> “mainstack” to reappear/remain ? >>> >>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Livecode 9.6.6 and Win 10 >>> >>> Regards >>> Cam >>> ___ >>> use-livecode mailing list >>> use-livecode@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
In an app, the mainstack is the home stack. If it's closed and no other stack is open then the app will quit. But if you open a substack, the app can't quit because the substack is part of the stackfile but the mainstack is still marked as closed. So the trick is not to close the mainstack, just hide it instead when you open the substack. When you close the substack, show the mainstack. At least, that's what I think is happening. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 28, 2022 2:42:24 PM General 2018 via use-livecode wrote: Thanks for the tip but still no good. So button in “xyz” substack with close stack “xyz” still closes all ? Regards Camm On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode wrote: Hi, did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. Livecode 9.6.7 and Windows 10 Hope this helps Thomas Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Livecode 9.6.6 and Win 10 Regards Cam ___ use-livecode mailing list use-livecode@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
Thanks for the tip but still no good. So button in “xyz” substack with close stack “xyz” still closes all ? Regards Camm > On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode > wrote: > > Hi, > > did you try close stack "xyz" ? Thias works for me, in the IDE at least, > both if called from the mainstack and from the substack. Only the substack is > closed. > > Livecode 9.6.7 and Windows 10 > > > Hope this helps > > Thomas > > >> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >> Hi , >> >> New to substacks - I have a “mainstack” used as a menu page for 2x >> “substacks” >> >> When “substacks” opened from “mainstack” they open fine using — go to stack >> “xyz” >> >> The problem is closing of the “substacks” using - close stack, go to >> “mainstack” or close this stack it always closes (quit) everything. Need >> “mainstack” to reappear/remain ? >> >> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Livecode 9.6.6 and Win 10 >> >> Regards >> Cam >> ___ >> use-livecode mailing list >> use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Substacks
Hi, did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. Livecode 9.6.7 and Windows 10 Hope this helps Thomas Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Livecode 9.6.6 and Win 10 Regards Cam ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Substacks
Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Livecode 9.6.6 and Win 10 Regards Cam ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: where does the standalonebuilder saves the substacks in an Mac OS App?
Is it a library that will not be edited programmatically at runtime? If not, then that is the place it belongs. Bob S > On Mar 28, 2017, at 06:07 , Tiemo Hollmann TB via use-livecode >wrote: > > Creating a standalone on MacOS 10.12 with LC 8.1.3, LiveCode puts the file > "revsecurity.dylib" into "my.app/Contents/MacOS/" > As you say, this would be against the rules of Apple. Is this a bug? Or is > it still arbitrary, where to put your files? > Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
AW: where does the standalonebuilder saves the substacks in an Mac OS App?
Creating a standalone on MacOS 10.12 with LC 8.1.3, LiveCode puts the file "revsecurity.dylib" into "my.app/Contents/MacOS/" As you say, this would be against the rules of Apple. Is this a bug? Or is it still arbitrary, where to put your files? Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von J. Landman Gay via use-livecode Gesendet: Montag, 27. März 2017 20:31 An: How to use LiveCode <use-livecode@lists.runrev.com> Cc: J. Landman Gay <jac...@hyperactivesw.com> Betreff: Re: where does the standalonebuilder saves the substacks in an Mac OS App? I think that's right, Apple enforces this rule. The standalone builder will move files to a Resources folder when it builds the app. For backward compatibility, scripts that reference the engine folder are redirected to the Resources folder automatically. On 3/27/17 1:22 PM, Bob Sneidar via use-livecode wrote: > To my understanding, it's a requirement in accordance with Apple's > sandboxing policies, if you want an executable to be able to make > changes to files inside the executable bundle. The way it's supposed > to work, no application is allowed to write or modify anything in the > old location where the actual application binary resides, but in the > new location they can. > > As an administrative user I am able to copy files to both locations, > but sandboxing is not about folder permissions. It's about executable > permissions and it's baked into the OS so no one can (ostensibly) > change it. > > That is my understanding at least. I've not dug in enough to know for > certain. > > Bob S > > >> On Mar 27, 2017, at 09:45 , Tiemo Hollmann TB via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> Hello, "Apple requires" - Is this only a "best practise" guideline or >> what will happen if you don't care? I have an old application just >> migrated to LC 8, where I am running an independent stack file in >> that old dir("Contents/MacOS"), and it is running fine on MacOS >> 10.12.3 Is there any Apple link about that or are there any >> informations, into which issue you can run, if you put files into the >> old dir? If you integrate Valentina, they also keep one file in that >> directory. Thanks for any info Tiemo > > > ___ use-livecode mailing > list use-livecode@lists.runrev.com Please visit this url to subscribe, > unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: where does the standalonebuilder saves the substacks in an Mac OS App?
I think that's right, Apple enforces this rule. The standalone builder will move files to a Resources folder when it builds the app. For backward compatibility, scripts that reference the engine folder are redirected to the Resources folder automatically. On 3/27/17 1:22 PM, Bob Sneidar via use-livecode wrote: To my understanding, it's a requirement in accordance with Apple's sandboxing policies, if you want an executable to be able to make changes to files inside the executable bundle. The way it's supposed to work, no application is allowed to write or modify anything in the old location where the actual application binary resides, but in the new location they can. As an administrative user I am able to copy files to both locations, but sandboxing is not about folder permissions. It's about executable permissions and it's baked into the OS so no one can (ostensibly) change it. That is my understanding at least. I've not dug in enough to know for certain. Bob S On Mar 27, 2017, at 09:45 , Tiemo Hollmann TB via use-livecodewrote: Hello, "Apple requires" - Is this only a "best practise" guideline or what will happen if you don't care? I have an old application just migrated to LC 8, where I am running an independent stack file in that old dir("Contents/MacOS"), and it is running fine on MacOS 10.12.3 Is there any Apple link about that or are there any informations, into which issue you can run, if you put files into the old dir? If you integrate Valentina, they also keep one file in that directory. Thanks for any info Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: where does the standalonebuilder saves the substacks in an Mac OS App?
To my understanding, it's a requirement in accordance with Apple's sandboxing policies, if you want an executable to be able to make changes to files inside the executable bundle. The way it's supposed to work, no application is allowed to write or modify anything in the old location where the actual application binary resides, but in the new location they can. As an administrative user I am able to copy files to both locations, but sandboxing is not about folder permissions. It's about executable permissions and it's baked into the OS so no one can (ostensibly) change it. That is my understanding at least. I've not dug in enough to know for certain. Bob S > On Mar 27, 2017, at 09:45 , Tiemo Hollmann TB via use-livecode >wrote: > > Hello, > "Apple requires" - Is this only a "best practise" guideline or what will > happen if you don't care? I have an old application just migrated to LC 8, > where I am running an independent stack file in that old > dir("Contents/MacOS"), and it is running fine on MacOS 10.12.3 > Is there any Apple link about that or are there any informations, into which > issue you can run, if you put files into the old dir? If you integrate > Valentina, they also keep one file in that directory. > Thanks for any info > Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
AW: where does the standalonebuilder saves the substacks in an Mac OS App?
Hello, "Apple requires" - Is this only a "best practise" guideline or what will happen if you don't care? I have an old application just migrated to LC 8, where I am running an independent stack file in that old dir("Contents/MacOS"), and it is running fine on MacOS 10.12.3 Is there any Apple link about that or are there any informations, into which issue you can run, if you put files into the old dir? If you integrate Valentina, they also keep one file in that directory. Thanks for any info Tiemo On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote: > is it correct when the standalone settings of an stack are set to move > substacks into individual stack files that under Mac OS X the > substacks in an compiled app (e.g. test.app) are stored > > in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in > 'test.app/Contents/MacOS/' Yes, Apple required that change a while ago. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: where does the standalonebuilder saves the substacks in an Mac OS App?
Hi Jacqueline, thanks for that hint. Seems i have missed that part.. Regards, Matthias > Am 15.03.2017 um 07:44 schrieb J. Landman Gay via use-livecode > <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: > > On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote: >> is it correct when the standalone settings of an stack are set to >> move substacks into individual stack files that under Mac OS X the >> substacks in an compiled app (e.g. test.app) are stored >> >> in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in >> 'test.app/Contents/MacOS/' > > Yes, Apple required that change a while ago. > >> And if this is correct, how do i open them? At the moment my button >> script (go stack …) , which works for Windows does not open the >> substacks in MacOS X. If i move the substacks manually to >> 'test.app/Contents/MacOS/' then of course my scripts can open them >> w/o modification. > > Apple doesn't want anything in the folder except the executable now. The best > way to handle the files is to use specialFolderPath("resources") as the > directory. That will alway point to the correct location on any OS. On Mac, > it specifies the Resources folder (and is a synonym for the engine folder for > legacy stacks.) So your path should be: > > specialFolderPath("resources") & "/stackname.livecode" > > It will work on Windows too. > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > <mailto:jac...@hyperactivesw.com> > HyperActive Software | http://www.hyperactivesw.com > <http://www.hyperactivesw.com/> > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com> > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > <http://lists.runrev.com/mailman/listinfo/use-livecode> Matthias Rebbe Bramkampsieke 13 32312 Lübbecke Tel +49 5741 31 +49 160 5504462 Fax: +49 5741 310002 eMail: matth...@m-r-d.de <mailto:matth...@m-r-d.de> BR5 Konverter - BR5 -> MP3 <http://matthiasrebbe.eu/portfolio/produkte/brx/> ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: where does the standalonebuilder saves the substacks in an Mac OS App?
On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote: is it correct when the standalone settings of an stack are set to move substacks into individual stack files that under Mac OS X the substacks in an compiled app (e.g. test.app) are stored in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in 'test.app/Contents/MacOS/' Yes, Apple required that change a while ago. And if this is correct, how do i open them? At the moment my button script (go stack …) , which works for Windows does not open the substacks in MacOS X. If i move the substacks manually to 'test.app/Contents/MacOS/' then of course my scripts can open them w/o modification. Apple doesn't want anything in the folder except the executable now. The best way to handle the files is to use specialFolderPath("resources") as the directory. That will alway point to the correct location on any OS. On Mac, it specifies the Resources folder (and is a synonym for the engine folder for legacy stacks.) So your path should be: specialFolderPath("resources") & "/stackname.livecode" It will work on Windows too. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
where does the standalonebuilder saves the substacks in an Mac OS App?
Hi, is it correct when the standalone settings of an stack are set to move substacks into individual stack files that under Mac OS X the substacks in an compiled app (e.g. test.app) are stored in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in 'test.app/Contents/MacOS/' And if this is correct, how do i open them? At the moment my button script (go stack …) , which works for Windows does not open the substacks in MacOS X. If i move the substacks manually to 'test.app/Contents/MacOS/' then of course my scripts can open them w/o modification. Never ran into this before, because i needed individual substacks only under Windows in the past. Am i missing something? Regards, Matthias ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTML5 "Features" Library Substacks and "send ### in time"
On 07/02/2016 01:59, Sannyasin Brahmanathaswami wrote: Yikes… ! I just read this today… after seeing the newsletter and then looking in the guide in LC 8 dp 14 "The HTML5 engine in this release of LiveCode has a limited range of features. You can: deploy single-stack applications with embedded resources" BR: Does this mean you cannot include a libraty stack such as Animation Engine? You can definitely include the Animation Engine as a library stack. Simply add it to the "Copy Files" list. "Two important unsupported features are unlikely to be added in the near future: operations that need to pause the script while something happens (e.g. wait 10)" BR: Ouch! no “wait” ? OK, all is fair in love and war and if “wait” is a performance beast, so be it. But will html5 support “send in time? send “scene1Scenario2” to this card in 2 second? ?? Yes, "send in time" should work just fine -- indeed, most of the HTML5 demo stacks on the forums make heavy use of it. Peter -- Dr Peter BrettLiveCode Open Source Team LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTML5 "Features" Library Substacks and "send ### in time"
Hi Brahmanathaswami, I did not have the time to test DP 14 yet, but in DP9 animationEngine worked pretty good (in Firefox). All I had to do was make animationengine a substack of my mainstack. As it relies heaviely on send in time, I can confirm that that used to be working fine at least in DP 9. Need to check again in DP 14 though. All the best, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTML5 "Features" Library Substacks and "send ### in time"
Ciao, [1] Firefox does NOT work any more since version 44.0 with LC's HTML5-standalones. Sadly, because Firefox was up to 5 times faster with the standalones (with loading AND playing) than other browsers. ALL standalones are affected, no matter the dp version. This is reported at Bugzilla@Mozilla, they really try to help us. If I read that correct, it is even planned for Firefox 47.0 to implement some backward-compatibilty. Peter B. will 'repair' that from LC's side soon (8.0.0-dp15), you then simply have to recompile your projects with the new version. [2] LC 8.0.0-dp14 has with my tests a speed loss by factor of up to 10 compared to dp9. [Will report in detail to QC tomorrow]. Hope your results are better. Please tell us. [3] In general to HTML5: PeterB. and the dev team is really working hard on all the nasty detailed problems (you can see that immediately when reading at github.com/livecode/livecode) with the HTML5-standalone builder. ==> There is an own HTML5-Subforum <=== http://forums.livecode.com/viewforum.php?f=120 Peter B. comes in regularly there and gave already a lot of valuable information, nothing is unanswered until now. For example the BIG problem of **implementing 'wait' or not** is discussed at large there (and was already shortly discussed here). === Hermann ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
HTML5 "Features" Library Substacks and "send ### in time"
Yikes… ! I just read this today… after seeing the newsletter and then looking in the guide in LC 8 dp 14 "The HTML5 engine in this release of LiveCode has a limited range of features. You can: deploy single-stack applications with embedded resources" BR: Does this mean you cannot include a libraty stack such as Animation Engine? "Two important unsupported features are unlikely to be added in the near future: operations that need to pause the script while something happens (e.g. wait 10)" BR: Ouch! no “wait” ? OK, all is fair in love and war and if “wait” is a performance beast, so be it. But will html5 support “send in time? send “scene1Scenario2” to this card in 2 second? ?? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
On Sat, Apr 11, 2015 at 5:26 PM, Scott Rossi sc...@tactilemedia.com wrote: If you set the passkey of the protected stack (to the password) before copying, you should be able to copy what you want This is getting infuriating . . . what *is* the scope of the passkey? I've tried setting it during stack initialization, even dumbing the password down to abc, and I'm still getting the can't cut error. Do I need to be setting it before every copy? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
On 4/14/2015 8:26 PM, Peter Haworth wrote: Unless there's a bug somewhere in the decryption routines, it still feels like the passkey you are supplying is not the same one you specified in the standalone settings. That's what it sounds like to me too. I wonder how the standalone builder handles that. Maybe it uses a different kind of encryption than a plain passworded stack uses. That sounds unlikely, but setting the passkey should work otherwise. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
You can use this: function expandError pErr -- expands LC runtime error numbers, with explanatory text -- probably based on a handler from someone on the use-LC list, not sure who -- revised by Peter M. Brigham, pmb...@gmail.com — freeware -- requires sr() repeat for each line e in pErr put item 1 of e into errNbr put item 2 of e into tLineNbr put item 3 of e into tCharNbr put item 4 to -1 of e into tHint put • line tLineNbr , char tCharNbr : into tErrMsg put error # errNbr , after tErrMsg put sr(line errNbr of the cErrorsList of card 1 of stack revErrorDisplay) \ after tErrMsg if tHint empty then put — hint: tHint after tErrMsg end if put tErrMsg cr after errorlist end repeat return sr(errorlist) end expandError function sr str -- sr = strip returns -- actually, strips all white space fore and aft -- place this handler in a library stack, -- where it will be available everywhere return word 1 to -1 of str end sr -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 14, 2015, at 9:59 PM, J. Landman Gay wrote: On 4/14/2015 8:17 PM, Dr. Hawkins wrote: However, where can I find the list of those codes, and what that error box means in general? User Sample Stacks (in the toolbar) - LC Error Lookup or here: http://livecodeshare.runrev.com/stack/712/LiveCode-Error-Lookup Or make your own, the location of the error codes is listed in the ErrorDialog entry in the dictionary. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
On Tue, Apr 14, 2015 at 2:50 PM, Peter Haworth p...@lcsql.com wrote: Error 558 is stack: invalid key. Not much help but perhaps the passkey you're supplying isn't the correct one? Not likely I guess since it apparently works in the IDE. There is no password set in the IDE; it's all at compile time. However, where can I find the list of those codes, and what that error box means in general? thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
Peter Haworth wrote: I'm still not sure in my mind whether encryption is the same thing as password protecting a stack. I've only ever used the latter. Anybody know? AFAIK there is only one form of script encryption, set with the password property and unlocked during the session with the passkey property. -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
Right. I'm still not sure in my mind whether encryption is the same thing as password protecting a stack. I've only ever used the latter. Anybody know? 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 Tue, Apr 14, 2015 at 7:01 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 4/14/2015 8:26 PM, Peter Haworth wrote: Unless there's a bug somewhere in the decryption routines, it still feels like the passkey you are supplying is not the same one you specified in the standalone settings. That's what it sounds like to me too. I wonder how the standalone builder handles that. Maybe it uses a different kind of encryption than a plain passworded stack uses. That sounds unlikely, but setting the passkey should work otherwise. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
The first item of each line refers to a line number in an error messages table. The table is in the cErrorsList custom property of card 1 of stack revErrorDisplay. Sounds like you set the encrypt with password field in the standalone settings. Make sure you do that for every stack you want to be encrypted. Unless there's a bug somewhere in the decryption routines, it still feels like the passkey you are supplying is not the same one you specified in the standalone settings. 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 Tue, Apr 14, 2015 at 6:17 PM, Dr. Hawkins doch...@gmail.com wrote: On Tue, Apr 14, 2015 at 2:50 PM, Peter Haworth p...@lcsql.com wrote: Error 558 is stack: invalid key. Not much help but perhaps the passkey you're supplying isn't the correct one? Not likely I guess since it apparently works in the IDE. There is no password set in the IDE; it's all at compile time. However, where can I find the list of those codes, and what that error box means in general? thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
On Tue, Apr 14, 2015 at 2:09 PM, Scott Rossi sc...@tactilemedia.com wrote: Does it work for you in the IDE? Yes. However, the password only gets set at compile time. Also, you're not using the Community Edition are you? *shudder*, no. Far too much work into this to risk GPL contamination/taiint of my code. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
Error 558 is stack: invalid key. Not much help but perhaps the passkey you're supplying isn't the correct one? Not likely I guess since it apparently works in the IDE. 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 Tue, Apr 14, 2015 at 1:50 PM, Dr. Hawkins doch...@gmail.com wrote: On Tue, Apr 14, 2015 at 12:03 PM, Scott Rossi sc...@tactilemedia.com wrote: There shouldn't be anything infuriating about it. You have a password protected stack. You set the passkey of that stack to your password value. You should then be able to access/copy objects from that stack. but that doesn't seem to be the case for me. on mouseUp answer in the button scrpt cr exists (stack rawForms) set the passkey of stack rawForms to blahBlahBlah answer the result send yeehaw2 to stack rawForms answer yeehaw2 sent end mouseUp the first answer confirms true for the existence. THe next line causes an error occurred on line 0 558,0,0,password 535,3,1 241,3,1, mouseup 353,0,0,long name of button The passkey stays in effect for the current editing session. When you close stack (or otherwise remove it from memory), your stack contents should not be accessible the next time you open stack. Passkey is temporary, password is persistent. I'm only setting the password itself in the Standalone Application Settings window, if that matters, so the problem ony happens once I make a standaone. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
There shouldn't be anything infuriating about it. You have a password protected stack. You set the passkey of that stack to your password value. You should then be able to access/copy objects from that stack. The passkey stays in effect for the current editing session. When you close stack (or otherwise remove it from memory), your stack contents should not be accessible the next time you open stack. Passkey is temporary, password is persistent. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/14/15, 11:20 AM, Dr. Hawkins doch...@gmail.com wrote: On Sat, Apr 11, 2015 at 5:26 PM, Scott Rossi sc...@tactilemedia.com wrote: If you set the passkey of the protected stack (to the password) before copying, you should be able to copy what you want This is getting infuriating . . . what *is* the scope of the passkey? I've tried setting it during stack initialization, even dumbing the password down to abc, and I'm still getting the can't cut error. Do I need to be setting it before every copy? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
On Tue, Apr 14, 2015 at 12:03 PM, Scott Rossi sc...@tactilemedia.com wrote: There shouldn't be anything infuriating about it. You have a password protected stack. You set the passkey of that stack to your password value. You should then be able to access/copy objects from that stack. but that doesn't seem to be the case for me. on mouseUp answer in the button scrpt cr exists (stack rawForms) set the passkey of stack rawForms to blahBlahBlah answer the result send yeehaw2 to stack rawForms answer yeehaw2 sent end mouseUp the first answer confirms true for the existence. THe next line causes an error occurred on line 0 558,0,0,password 535,3,1 241,3,1, mouseup 353,0,0,long name of button The passkey stays in effect for the current editing session. When you close stack (or otherwise remove it from memory), your stack contents should not be accessible the next time you open stack. Passkey is temporary, password is persistent. I'm only setting the password itself in the Standalone Application Settings window, if that matters, so the problem ony happens once I make a standaone. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
Does it work for you in the IDE? Also, you're not using the Community Edition are you? You can't password protect with that version of LiveCode even though it shows the option in the Standalone Builder. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/14/15, 1:50 PM, Dr. Hawkins doch...@gmail.com wrote: On Tue, Apr 14, 2015 at 12:03 PM, Scott Rossi sc...@tactilemedia.com wrote: There shouldn't be anything infuriating about it. You have a password protected stack. You set the passkey of that stack to your password value. You should then be able to access/copy objects from that stack. but that doesn't seem to be the case for me. on mouseUp answer in the button scrpt cr exists (stack rawForms) set the passkey of stack rawForms to blahBlahBlah answer the result send yeehaw2 to stack rawForms answer yeehaw2 sent end mouseUp the first answer confirms true for the existence. THe next line causes an error occurred on line 0 558,0,0,password 535,3,1 241,3,1, mouseup 353,0,0,long name of button The passkey stays in effect for the current editing session. When you close stack (or otherwise remove it from memory), your stack contents should not be accessible the next time you open stack. Passkey is temporary, password is persistent. I'm only setting the password itself in the Standalone Application Settings window, if that matters, so the problem ony happens once I make a standaone. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
copying from password protected substacks
I absolutely need my source stacks encrypted. I have found that when I try to copy a group from a stack that I clone (turns out to be much faster to add objects to that group and delete the group than to delete individual items), I get a can't cut object. Stack is password protected error in the standalone (but not in the IDE). While the obvious answer in this case is to have another empty group to clone as part of the stack, this won't solve other cases where I function by copying groups from source stacks. This error also seems incorrect; I am not cutting . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
Hi Richard, You can't copy controls from password protected stacks, because that would allow you to paste controls on unprotected stacks and read the scripts. The solution is to create controls in an unprotected stack without scripts and set the parentScript of these controls to a button with a script on a password protected stack. I do this in my software Strõm, which copies the new components for a flow diagram from an unprotected stack, but has all its scripts protected by passwords. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 4/12/2015 00:52, Dr. Hawkins wrote: I absolutely need my source stacks encrypted. I have found that when I try to copy a group from a stack that I clone (turns out to be much faster to add objects to that group and delete the group than to delete individual items), I get a can't cut object. Stack is password protected error in the standalone (but not in the IDE). While the obvious answer in this case is to have another empty group to clone as part of the stack, this won't solve other cases where I function by copying groups from source stacks. This error also seems incorrect; I am not cutting . . . ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
On Sat, Apr 11, 2015 at 3:52 PM, Dr. Hawkins doch...@gmail.com wrote: have found that when I try to copy a group from a stack that I clone (turns out to be much faster to add objects to that group and delete the group than to delete individual items), I get a can't cut object. Also, all of the substacks are encrypted with the same password on compile, but otherwise the stacks do not have passwords. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
On Sat, Apr 11, 2015 at 3:59 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: You can't copy controls from password protected stacks, because that would allow you to paste controls on unprotected stacks and read the scripts. Thanks. But this will make life *much* more difficult. Can I copy from the protected stacks *to* another stack from a script within the protected stack (my experiments suggest no). Also, none of the things I want to copy have scripts (although some have a behavior in a button on another stack). The solution is to create controls in an unprotected stack without scripts and set the parentScript of these controls to a button with a script on a password protected stack. Actually, I would rather keep even the controls protected--there is serious work in their custom properties (and tedious work in creating them to match the federal forms!) There is not an issue of anyone else ever getting the unprotected stacks in an IDE; only the standalone will ever distribute. I do this in my software Strõm, which copies the new components for a flow diagram from an unprotected stack, but has all its scripts protected by passwords. Does it make sense to in some way unlock the stacks after loading? But this would need the password for the other scripts -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: copying from password protected substacks
If you set the passkey of the protected stack (to the password) before copying, you should be able to copy what you want. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 4/11/15, 5:10 PM, Dr. Hawkins doch...@gmail.com wrote: Thanks. But this will make life *much* more difficult. Can I copy from the protected stacks *to* another stack from a script within the protected stack (my experiments suggest no). Also, none of the things I want to copy have scripts (although some have a behavior in a button on another stack). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: scope of gRevAppIcon on substacks
On Fri, Mar 6, 2015 at 7:58 PM, Peter M. Brigham pmb...@gmail.com wrote: From the dictionary: - LiveCode looks for the specified image in the following order: Thanks. That and Jacqui's explanation of standalones will probably solve everything (it really doesn't matter whether it gives me the images in the IDE). But where did you find that in the Dictionary? I don't see it in 7.0.3 under gRevAppIcon -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: scope of gRevAppIcon on substacks
Look under icon. You're loading the global, and then the engine is executing the equivalent of: global gRevAppIcon set the icon of button xxx of stack Answer Dialog to gRevAppIcon so the rules for setting icons apply. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 7, 2015, at 11:05 AM, Dr. Hawkins wrote: On Fri, Mar 6, 2015 at 7:58 PM, Peter M. Brigham pmb...@gmail.com wrote: From the dictionary: - LiveCode looks for the specified image in the following order: Thanks. That and Jacqui's explanation of standalones will probably solve everything (it really doesn't matter whether it gives me the images in the IDE). But where did you find that in the Dictionary? I don't see it in 7.0.3 under gRevAppIcon -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: scope of gRevAppIcon on substacks
You don't have to have the icons in the stack in which it occurs. What I do is call a handler in my library stack setupicons: on setupicons global gRevAppIcon,gRevSmallAppIcon put 2241 into gRevAppIcon put 2242 into gRevSmallAppIcon end setupicons From the dictionary: - LiveCode looks for the specified image in the following order: 1) The stack of the object's behavior (if applicable) 2) The stack of the owner of the object's behavior (if applicable) ... n) The stack of the object's stack's behavior (if applicable) A) The object's stack B) The object's stack's mainstack (if a substack) C) The object's stack's mainstacks substacks D) The list of open stacks, in order they were loaded - What you DO have to do is call this every time before you invoke an ask or answer dialog. The globals seem to be reset on idle, so they don't stick. It's a PITA that way. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 6, 2015, at 5:49 PM, Dr. Hawkins wrote: I'm trying (finally) to use gRevAppIcon, which displays an icon in ask answer. It seems that this uses the *short* id of the image, which would seem to limit it to the stack in which it occurs (or possibly to the main stack). I've set it as a global in my mainstack, and it is used in the test answer that follows--but then it does not appear in the list of global variables. Do I need to have this image lurking in every stack? that sounds like a maintenance nightmare . . . Or am I doing something wrong? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
scope of gRevAppIcon on substacks
I'm trying (finally) to use gRevAppIcon, which displays an icon in ask answer. It seems that this uses the *short* id of the image, which would seem to limit it to the stack in which it occurs (or possibly to the main stack). I've set it as a global in my mainstack, and it is used in the test answer that follows--but then it does not appear in the list of global variables. Do I need to have this image lurking in every stack? that sounds like a maintenance nightmare . . . Or am I doing something wrong? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: scope of gRevAppIcon on substacks
On 3/6/2015 9:58 PM, Peter M. Brigham wrote: What you DO have to do is call this every time before you invoke an ask or answer dialog. The globals seem to be reset on idle, so they don't stick. It's a PITA that way. In a standalone it sticks and you only need to set it up once. It's just the IDE that fights for control. What I do is put the icons in my main stack, which becomes the standalone, and give the images very high IDs, something with at least 5 or 6 digits. That way it's unlikely any other image IDs will get that high and they're always found no matter what stack is currently the default. That way I don't need any special handler for it, just the one setup statement when the standalone opens. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
On Fri, Feb 6, 2015 at 12:33 PM, J. Landman Gay jac...@hyperactivesw.com wrote: If almost everything needs to use the open* handlers except one or two stacks, then I put the handlers into the mainstack stack script and put blocking handlers into the stacks that are an exception. This. I quickly figured out that it as easier to trap in my mainstack handler than to worry about putting it in every new substack . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Put the handlers in the card script of the main stack. When opening the mainStack the card will receive the messages, but not when the substacks are opened. The card of the mainStack is not in the message path of the substacks. Alternately, you can put the same handlers in the substacks stack script and not pass them. Bob S On Feb 5, 2015, at 22:49 , Brahmanathaswami bra...@hindu.org wrote: If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I just moved all those to the main background group of the main stack, but I'm not happy with that architecture. I'm so use to running most script in the main stack script for simplicity sake and ease of finding things. I suppose one can install dummy handlers in the substacks to match. e.g on preopenstack end preopenstack and since you are not passing anything, I suspect it will prevent triggering that handler in the main stack.. But, what are you veterans doing to handle this? Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
There are some advantages to using substacks methinks. The monistic automatically “knows” about the substacks without any extra coding or adding the stacks to the main stack files property. Also, I am not sure that graphics loaded in the main stack will be accessible to any stacks that are not substacks of the same. Thirdly, if you don’t want anyone to open the substack without first opening the main stack, a simple “if the mainStack of me is me then get the hell out” sort of command in the openStack script is all you need. There are probably some others. Not sure but if you password protect the main stack, aren’t the substacks inaccessible as well? Finally, I think it looks good organizationally. Just my humble opinion tho’. Bob S On Feb 6, 2015, at 01:12 , Mark Schonewille m.schonewi...@economy-x-talk.commailto:m.schonewi...@economy-x-talk.com wrote: Hi Brahmanathaswami, It isn't obligatory to use substacks. You could use two mainstacks simultaneously. Just make sure to include the additional mainstacks as files when you build a standalone. With two mainstacks, the scripts in one stack won't be triggered by messages from the other. If you have handlers that you want to use in both stacks, you can put those handlers into another separate stack and use that as a library with the start using command or by defining front and back scripts. -- Best regards, Mark Schonewille ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
On 2/6/2015 1:38 PM, Bob Sneidar wrote: Not sure but if you password protect the main stack, aren’t the substacks inaccessible as well? Nope. You have to protect each one separately. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
On 2/6/2015 12:49 AM, Brahmanathaswami wrote: If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I usually do the thing where you put the open* handlers into the first card of the mainstack. It's easiest. If there are handlers that should be shared, but only with a few stacks, I put those handlers into the mainstack and check in the first line of the handler to see if the target is one of the stacks it needs to work with, and if not it exits. If almost everything needs to use the open* handlers except one or two stacks, then I put the handlers into the mainstack stack script and put blocking handlers into the stacks that are an exception. So I guess the answer is...it depends. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
it depends got it... for me it's not about protecting anything.. it's about..eg. on resizestack x,y set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end resize stack This gets triggered by a substack that does not have those controlled. How do you do this in real code on resizestack x,y if this stack is not the stack that this handler resides in then do nothing else set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end if end resizestack Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com J. Landman Gay wrote: I usually do the thing where you put the open* handlers into the first card of the mainstack. It's easiest. If there are handlers that should be shared, but only with a few stacks, I put those handlers into the mainstack and check in the first line of the handler to see if the target is one of the stacks it needs to work with, and if not it exits. If almost everything needs to use the open* handlers except one or two stacks, then I put the handlers into the mainstack stack script and put blocking handlers into the stacks that are an exception. So I guess the answer is...it depends. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Brahmanathaswami wrote: it depends got it... for me it's not about protecting anything.. it's about..eg. on resizestack x,y set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end resize stack This gets triggered by a substack that does not have those controlled. How do you do this in real code on resizestack x,y if this stack is not the stack that this handler resides in then do nothing else set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end if end resizestack If the mainstack is a single card, just put the handler in the card script. If the mainstack has multiple cards, put the handler in a common group script. If neither of those are viable in your setup, you could add a check to make sure the long name of me is in the long ID of the target. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Richard Gaskin wrote: 1) If the mainstack is a single card, just put the handler in the card script. 2) If the mainstack has multiple cards, put the handler in a common group script. 3) If neither of those are viable in your setup, you could add a check to make sure the long name of me is in the long ID of the target. BR: Understood. I doing # 2 now... so I guess that will do for now. How do you do this in real code on resizestack x,y if this stack is not the stack that this handler resides in then do nothing else set the rect of some grc to the rect of this card # and other tricks here relating to dynamic geometry changes... end if end resizestack ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
Hi Brahmanathaswami, It isn't obligatory to use substacks. You could use two mainstacks simultaneously. Just make sure to include the additional mainstacks as files when you build a standalone. With two mainstacks, the scripts in one stack won't be triggered by messages from the other. If you have handlers that you want to use in both stacks, you can put those handlers into another separate stack and use that as a library with the start using command or by defining front and back scripts. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 2/6/2015 07:49, Brahmanathaswami wrote: If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I just moved all those to the main background group of the main stack, but I'm not happy with that architecture. I'm so use to running most script in the main stack script for simplicity sake and ease of finding things. I suppose one can install dummy handlers in the substacks to match. e.g on preopenstack end preopenstack and since you are not passing anything, I suspect it will prevent triggering that handler in the main stack.. But, what are you veterans doing to handle this? Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Best Practice: Prevent Substacks from Triggering Main Stack Scripts
If you can do it, the easiest way is to place all your handlers in the card script of the first card of your main stack. All the handlers will be triggered by the main stack, but not the substacks. If you must place your handlers in the stack script, you can compare the name of the owner of the target at the beginning of each handler, something like: if the short name of the owner of the target the short name of me then exit resizeStack Otherwise, your method of placing blocking scripts in the substacks will work too, but the card script of card 1 of the main stack is really the easiest method. Regards, Scott Rossi Creative Director Tactile Media, UX Design On Feb 5, 2015, at 10:49 PM, Brahmanathaswami bra...@hindu.org wrote: If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I just moved all those to the main background group of the main stack, but I'm not happy with that architecture. I'm so use to running most script in the main stack script for simplicity sake and ease of finding things. I suppose one can install dummy handlers in the substacks to match. e.g on preopenstack end preopenstack and since you are not passing anything, I suspect it will prevent triggering that handler in the main stack.. But, what are you veterans doing to handle this? Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Best Practice: Prevent Substacks from Triggering Main Stack Scripts
If you put any preopenstack, resizestack, close stack etc. script in the mainstack script.. these will be triggered by the same action in a substack. What is the best way to avoid this? I just moved all those to the main background group of the main stack, but I'm not happy with that architecture. I'm so use to running most script in the main stack script for simplicity sake and ease of finding things. I suppose one can install dummy handlers in the substacks to match. e.g on preopenstack end preopenstack and since you are not passing anything, I suspect it will prevent triggering that handler in the main stack.. But, what are you veterans doing to handle this? Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: TemplateStacks or SubStacks, Which is better?
Hi Cal, The templateStack is something that only exists in memory. A templateStack is only displayed when you make a new stack. A substack can exist both in memory and on disk and you don't need to make a new stack to display it. What you will use, depends on what you want to do. Perhaps you tell a little more about that? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 4/15/2014 06:24, Cal Horner wrote: There comes a time in the use of LiveCode when you run across the concept of a template stack or a substack as a entry/data display form. The questions that you might be faced with are: Which one should you use? Which is the most efficient as a form(date entry) etc.? How much memory does each type take up? What are the difference in speed? I'm sure I could go on and on and probably you could too. I'm looking for some direction on these and other questions like these and I would expect that the answers are hidden somewhere in this forum. If you can shed any light on these perplexing questions please take the time to respond. Cal ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
TemplateStacks or SubStacks, Which is better?
There comes a time in the use of LiveCode when you run across the concept of a template stack or a substack as a entry/data display form. The questions that you might be faced with are: Which one should you use? Which is the most efficient as a form(date entry) etc.? How much memory does each type take up? What are the difference in speed? I'm sure I could go on and on and probably you could too. I'm looking for some direction on these and other questions like these and I would expect that the answers are hidden somewhere in this forum. If you can shed any light on these perplexing questions please take the time to respond. Cal ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
excluding substacks from standalone build
I had thought that there was an option to determine which substacks got built into a standalone. Was I mistake? So if I have substacks that are only used for development, and not by users do I do something like shell copy thisstack.livecode to buildme.livecode send prepareyourself to stack delete of buildme.livecode with a handler like on prepareyourself updatePlist delete stack dev1 delete stack dev2 dispatch delete stack deletein 10 millisecond dispatch buildstandalone in 1 second end prepareyourself -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
sharing menus among substacks
Some time ago, I went through the hassle of making menus, and copying them between my substacks. Is there *any* way to simply have a single menu set that stays in sync among substacks, rather then needing to copy to every substack every time??? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sharing menus among substacks
On 3/2/13 9:24 PM, Dr. Hawkins wrote: Some time ago, I went through the hassle of making menus, and copying them between my substacks. Is there *any* way to simply have a single menu set that stays in sync among substacks, rather then needing to copy to every substack every time??? Set the defaultmenubar, at least on Mac. On Windows you're stuck, unless you provide a menubar stack like the IDE does. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sharing menus among substacks
Probably the closest is to use a behavior. Set up a menu somewhere in your stack that includes all the scripts to handle its usage. Then set the behavior of of each of your menus to the ID of that button Pete lcSQL Software http://www.lcsql.com On Sat, Mar 2, 2013 at 5:24 PM, Dr. Hawkins doch...@gmail.com wrote: Some time ago, I went through the hassle of making menus, and copying them between my substacks. Is there *any* way to simply have a single menu set that stays in sync among substacks, rather then needing to copy to every substack every time??? ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
omitting substacks from standalone
I'm looking through the options, and can't find a way to do it. Is there a way to omit substacks from the standalone when I build it? Or do I need to build a script to duplicate the stack modify that stack, and build a standalone for it? Thanks -- The Hawkins Law Firm Richard E. Hawkins, Esq. (702) 508-8462 hawkinslawf...@gmail.com 3025 S. Maryland Parkway Suite A Las Vegas, NV 89109 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: omitting substacks from standalone
Hi Richard, I don't understand why you would want that. You make a project either with or without substacks and if you decide you don't want substacks anymore then you just delete them. If you want your substacks to be in separate files, you can check an option in the standalone application settings, which does this for you. The option is on the Stacks pane of the Standalone Application Settings window. If this isn't what you want, I'd suggest you explain a little more about what you're trying to accomplish. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact me http://qery.us/du The Economy-x-Talk office is closed from 29 August until 4 September 2012. On 17 aug 2012, at 21:45, Dr. Hawkins wrote: I'm looking through the options, and can't find a way to do it. Is there a way to omit substacks from the standalone when I build it? Or do I need to build a script to duplicate the stack modify that stack, and build a standalone for it? Thanks -- The Hawkins Law Firm Richard E. Hawkins, Esq. (702) 508-8462 hawkinslawf...@gmail.com 3025 S. Maryland Parkway Suite A Las Vegas, NV 89109 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: omitting substacks from standalone
On Fri, Aug 17, 2012 at 2:14 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: If this isn't what you want, I'd suggest you explain a little more about what you're trying to accomplish. I have a few operative substacks, but I also have an administrative substack that sets things in the other stacks that are to be hard-wired. I'd rather that this one simply not be in what actually ships to people, just in case of some bizarre future hack. For reasons in a thread from a couple of months ago, I'm going to be hard-wiring some things into code, so that they can't be examined. This stack manipulates those sections of code. -- The Hawkins Law Firm Richard E. Hawkins, Esq. (702) 508-8462 hawkinslawf...@gmail.com 3025 S. Maryland Parkway Suite A Las Vegas, NV 89109 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: omitting substacks from standalone
I'd suggest you have a separate administrative main stack that does whatever it needs to do to your application stack. Pete lcSQL Software http://www.lcsql.com On Fri, Aug 17, 2012 at 2:29 PM, Dr. Hawkins doch...@gmail.com wrote: On Fri, Aug 17, 2012 at 2:14 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: If this isn't what you want, I'd suggest you explain a little more about what you're trying to accomplish. I have a few operative substacks, but I also have an administrative substack that sets things in the other stacks that are to be hard-wired. I'd rather that this one simply not be in what actually ships to people, just in case of some bizarre future hack. For reasons in a thread from a couple of months ago, I'm going to be hard-wiring some things into code, so that they can't be examined. This stack manipulates those sections of code. -- The Hawkins Law Firm Richard E. Hawkins, Esq. (702) 508-8462 hawkinslawf...@gmail.com 3025 S. Maryland Parkway Suite A Las Vegas, NV 89109 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Saving to substacks in standalones
Hi all. I've been reading recent discussions here about saving substacks in standalones and have a few followup questions. Here's the plan: The app is for Mac/Win/iOS and will use a stub (splashscreen) as the main stack. I'll put the app logic code in a substack and use another substack as a template for the user data file. When the user makes a new project, save stack as will clone the template into a writable location and save stack should work after that. If the user chooses to Open an existing project, the ask command will point to a user docs folder. Questions: * Since the App Store requires apps to be a single executable, does LC bundle these substacks within the standalone so they pass inspection? If so, then at runtime a simple save stack as could clone the bundled substack? * In the sandbox of iOS, where is a writable area? (I see the documents folder will find it, but is that a general folder or one specific to the app?) * I anticipate some users will want to make their file on desktop (for keyboarding) and transfer the file to iOS. Will iOS allow emailed document attachments to be saved in a place that apps can use them? (I see iTunes Apps has a File Sharing control that seems to enable specified apps a way to transfer documents.) Anyone done that with a LC app? * Any other advice? The app uses a lot of formatted text, so planning to use the new field features. Thanks for your answers and advice. Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Saving-to-substacks-in-standalones-tp4651658.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
The debugger is your friend here. Insert a breakpoint and then step through your code to see what your variables *really* contain. If your variable is Roberte Clemente of stack Kids, then in the words of an old and wise farmer, You can't get there from here. You are saying that there is a card named Roberte Clemente of stack Kids and that card really does not exist. Bob On Jun 18, 2012, at 7:05 PM, Mark Rauterkus wrote: Hi Again, I can't build a script that crafts a temp variable that can be used in a go to card name script. #Fail for me. So, I want to go to a different stack. -- check. write to a field -- check But I can't get to the proper card. I put the card name into that vTempC temp handle, complete with quotes. When I put the vTempC into the message box it is just as I want it to be. Saying again. I want to go to card Roberto Clemente in stack Kids That works. But, I need a script off of a button to insert the Roberto Clement part. So, this line breaks: put Present on the short english date return after field Attendance of card x of stack Kids And the failure message, I've seen for hours now, is: executing at 10:02:51 PM Type Chunk: can't find card ObjectYo! Present Line put Present on the short english date return after field Attendance of card z of stack Kids Hint mouseUp -- Ta. Mark Rauterkus mark.rauter...@gmail.com PPS Summer Dreamers' Swim and Water Polo Camp Head Coach with Neighborhood Learning Alliance ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
Hi, Still here with newbie frustration and needing to move along. So, This works for me in a button. on mouseUp tUserName put Roberto Clemente into tUserName put Present on the short english date return after field Attendance of card tUserName of stack Kids end mouseUp But this does NOT work, I guess, because I am wrongly building the tUserName so that tUserName is not valid in the script.. on mouseUp tUserName, tCharCount, tFirstName, tSecondName get word 1 of field Filtered_Results put it into tFirstName get word 2 of field Filtered_Results put it into tSecondName put quote tFirstName space tSecondName quote into tUserName -- put tUserName into msg box -- Works fine, shows Roberto Clemente put Present on the short english date return after field Attendance of card tUserName of stack Kids end mouseUp - - - other notes: - - executing at 2:02:27 PM TypeChunk: can't find card Object Here Present Lineput Present on the short english date return after field Attendance of card tUserName of stack Kids HintmouseUp - - - I've tried building that card name temp var all sorts of way, and no luck with me. Help greatly desired. Mark Rauterkus m...@rauterkus.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
Mark, You don't need to include the quotes in your card name. The way you're doing it the name is literally: Roberto Clemente So in effect you are asking LC to go to a card with the name that *includes* the quotes. Just leave out the quote constants: put tFirstName space tSecondName into tUserName Regards, Devin On Jun 19, 2012, at 12:04 PM, Mark Rauterkus wrote: Hi, Still here with newbie frustration and needing to move along. So, This works for me in a button. on mouseUp tUserName put Roberto Clemente into tUserName put Present on the short english date return after field Attendance of card tUserName of stack Kids end mouseUp But this does NOT work, I guess, because I am wrongly building the tUserName so that tUserName is not valid in the script.. on mouseUp tUserName, tCharCount, tFirstName, tSecondName get word 1 of field Filtered_Results put it into tFirstName get word 2 of field Filtered_Results put it into tSecondName put quote tFirstName space tSecondName quote into tUserName -- put tUserName into msg box -- Works fine, shows Roberto Clemente put Present on the short english date return after field Attendance of card tUserName of stack Kids end mouseUp - - - other notes: - - executing at 2:02:27 PM Type Chunk: can't find card ObjectHere Present Line put Present on the short english date return after field Attendance of card tUserName of stack Kids Hint mouseUp - - - I've tried building that card name temp var all sorts of way, and no luck with me. Help greatly desired. Mark Rauterkus m...@rauterkus.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
Don't put the quotes around the name in tUsername. Pete lcSQL Software http://www.lcsql.com On Tue, Jun 19, 2012 at 11:04 AM, Mark Rauterkus mark.rauter...@gmail.comwrote: Hi, Still here with newbie frustration and needing to move along. So, This works for me in a button. on mouseUp tUserName put Roberto Clemente into tUserName put Present on the short english date return after field Attendance of card tUserName of stack Kids end mouseUp But this does NOT work, I guess, because I am wrongly building the tUserName so that tUserName is not valid in the script.. on mouseUp tUserName, tCharCount, tFirstName, tSecondName get word 1 of field Filtered_Results put it into tFirstName get word 2 of field Filtered_Results put it into tSecondName put quote tFirstName space tSecondName quote into tUserName -- put tUserName into msg box -- Works fine, shows Roberto Clemente put Present on the short english date return after field Attendance of card tUserName of stack Kids end mouseUp - - - other notes: - - executing at 2:02:27 PM TypeChunk: can't find card Object Here Present Lineput Present on the short english date return after field Attendance of card tUserName of stack Kids HintmouseUp - - - I've tried building that card name temp var all sorts of way, and no luck with me. Help greatly desired. Mark Rauterkus m...@rauterkus.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
The mouseup message accepts one parameter, which is the number of the button pressed, normally 1 (left-click) or 3 (right-click). You can't pass other info along with the message, you have to build up your data inside the handler, as you in fact do with the stuff below that works. On Jun 19, 2012, at 2:04 PM, Mark Rauterkus wrote: Hi, Still here with newbie frustration and needing to move along. So, This works for me in a button. on mouseUp tUserName here tUserName probably contains 1 for left-click put Roberto Clemente into tUserName now you fill the variable with another value, the one you want put Present on the short english date return after field Attendance of card tUserName of stack Kids end mouseUp But this does NOT work, I guess, because I am wrongly building the tUserName so that tUserName is not valid in the script.. on mouseUp tUserName, tCharCount, tFirstName, tSecondName here tUserName is probably 1 and the 3 following variables are empty -- mouseup only understands one parameter and it understands it as the identifier for the button pressed get word 1 of field Filtered_Results put it into tFirstName get word 2 of field Filtered_Results put it into tSecondName put quote tFirstName space tSecondName quote into tUserName now you fill tUserName with another value, replacing the 1, so the line below now gives what you want -- put tUserName into msg box -- Works fine, shows Roberto Clemente put Present on the short english date return after field Attendance of card tUserName of stack Kids if you are getting an error here, then there is no card named Roberto Clemente -- maybe you named it Clemente, Roberto? end mouseUp Read the documentation on setting breakpoints, and set a breakpoint as the first line in your script. Then when you try to execute the script it will stop on the breakpoint and you can step through line by line and check the contents of your variables as you go. When code isn't working, this is the easiest (only?) way to debug it. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig PROGRAM, n. A series of instructions that tells a computer to turn one's input into error messages. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
jumping among Mainstack and substacks isn't easy
Hi, My database for camper kids is progressing, but some newbie head scratching is in full force. Cards in a mainstack keep contact info and attendance details, one card per person. This seems to be working fine, except when I jump to different substacks. Then an error occurs. Case in point: I am building a FIND sub-stack, with one card. But I want to make a list of all the cards in the stack and take to the other stack and load it into a custom property in a field. Got it working, sorta. But on the way between stacks, I get weird errors. This is one. ... on openCard get field boy if it = 1 then set the hilite of button male to true else set the hilight of button male to false end openCard ... ... Debugger says: Stack Kids: execution error at line 3 (Chunk: no such object) near boy, char 4 Perhaps I should do on preOpenCard? = = Q2: I could not figure out how to call a custom property of a field of the mainstack while working in a substack. So, my workaround was to make a hidden field in the substack that also had the same field custom property. I set it once and then went to the other stack and set it again. on mouseUp put into index1 get the number of cards in this stack put it into tRepeats Repeat for tRepeats global index1 go to next card put (the short name of this card) return after index1 end repeat -- Generates first name sorting sort index1 set the cNewmanList2 of field NewmanResults to index1 Open Stack Quickie_Finder set the cNewmanList2 of field NewmanResults to index1 end mouseUp Notice above that the last line is called twice, once for each stack. The debugger error in Q1 also comes when this scrip is called. It is a button to go to a FIND substack of one card. Thanks for any clarification. -- Ta. Mark Rauterkus mark.rauter...@gmail.com PPS Summer Dreamers' Swim and Water Polo Camp Head Coach with Neighborhood Learning Alliance http://NeighborhoodLearning.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
I'm not entirely sure this is the issue, but let me describe how Livecode interprets your code. When you say field boy, Livecode translates that to field boy of the current card of the topstack (others will correct me if I am wrong). LC allows you to do this for the sake of brevity in coding, so you do not have to spell out the full path to every object in order to use it. But it's something you need to keep in mind when you being to navigate to different cards in a script. If the card you navigate to does not have a field named boy when the script executes, you will get this error. Also, you should develop the habit now of putting quotes around your object names, because you may at some point use a reserved word for a field name, and LC will probably not even compile your code at that point. Bob On Jun 18, 2012, at 11:12 AM, Mark Rauterkus wrote: Hi, My database for camper kids is progressing, but some newbie head scratching is in full force. Cards in a mainstack keep contact info and attendance details, one card per person. This seems to be working fine, except when I jump to different substacks. Then an error occurs. Case in point: I am building a FIND sub-stack, with one card. But I want to make a list of all the cards in the stack and take to the other stack and load it into a custom property in a field. Got it working, sorta. But on the way between stacks, I get weird errors. This is one. ... on openCard get field boy if it = 1 then set the hilite of button male to true else set the hilight of button male to false end openCard ... ... Debugger says: Stack Kids: execution error at line 3 (Chunk: no such object) near boy, char 4 Perhaps I should do on preOpenCard? = = Q2: I could not figure out how to call a custom property of a field of the mainstack while working in a substack. So, my workaround was to make a hidden field in the substack that also had the same field custom property. I set it once and then went to the other stack and set it again. on mouseUp put into index1 get the number of cards in this stack put it into tRepeats Repeat for tRepeats global index1 go to next card put (the short name of this card) return after index1 end repeat -- Generates first name sorting sort index1 set the cNewmanList2 of field NewmanResults to index1 Open Stack Quickie_Finder set the cNewmanList2 of field NewmanResults to index1 end mouseUp Notice above that the last line is called twice, once for each stack. The debugger error in Q1 also comes when this scrip is called. It is a button to go to a FIND substack of one card. Thanks for any clarification. -- Ta. Mark Rauterkus mark.rauter...@gmail.com PPS Summer Dreamers' Swim and Water Polo Camp Head Coach with Neighborhood Learning Alliance http://NeighborhoodLearning.org ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
Hi, Yep. LC just went strict with me. Errors such as: stack Kids: compilation error at line 4 (Expression: unquoted literal), char 46 For the past week or two I've been FINE without these issues. Seemed as if LC didn't care. Now I've gone back throughout the code looking at the colors of the words in the scrips. Even asking me to name temp vars in handlers. This works: on mouseUp go to card Roberto Clemente of stack Kids end mouseUp But, this does not: on mouseUp vTempC go to card vTempC of stack Kids end mouseUp Then end game is like this, but it is breaks for me, despite the var being accurate in the debugger when the mouse hovers. put Present on the short english date return after field Attendance of card vTempC of stack Kids full script puts the quotes around the proper card name. All cards in the stack are in two words as in Donald Duck. on mouseUp vTempC -- make var empty but also start it with a quote put into vTempC put quote into vTempC --works but there are spaces after the second word get word 1 of field Filtered_Results put it after vTempC put space after vTempC get word 2 of field Filtered_Results put it after vTempC put quote after vTempC -- put vTempC into msg box --desire only 2 words for one person. -- get the number of words of vTempC -- put it into msg box -- showing up as 1, not 2 as expected? -- if the number of words in tFiltered_Results is two -- then -- doAttendance -- set lockscreen to true -- find the card -- go to stack Kids -- go to card vTempC of stack Kids -- Put this into the field Attendence -- MR not good with the date and time yet put Present on the short english date return after field Attendance of card vTempC of stack Kids -- touchAttendence -- a card script --exit or make multiple entries for doAttendance -- else -- if the number of words in tFiltered_Results is one then beep -- if the number of words in tFiltered_Results 2 then beep 2 -- if tFiltered_Results is empty then beep 3 --end if end mouseUp -- Ta. Mark Rauterkus mark.rauter...@gmail.com PPS Summer Dreamers' Swim and Water Polo Camp Head Coach with Neighborhood Learning Alliance ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
I do not see how the second form has any meaning. vTempC will be the number of the mouse button you clicked. Bob On Jun 18, 2012, at 1:36 PM, Mark Rauterkus wrote: This works: on mouseUp go to card Roberto Clemente of stack Kids end mouseUp But, this does not: on mouseUp vTempC go to card vTempC of stack Kids end mouseUp ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
On 18.06.2012 at 16:36 Uhr -0400 Mark Rauterkus apparently wrote: Hi, Yep. LC just went strict with me. Errors such as: stack Kids: compilation error at line 4 (Expression: unquoted literal), char 46 For the past week or two I've been FINE without these issues. Seemed as if LC didn't care. Now I've gone back throughout the code looking at the colors of the words in the scrips. Even asking me to name temp vars in handlers. Yeah, strict it is. You must have turned on strict compilation mode. Check editor preferences. Robert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
On 18.06.2012 at 12:03 Uhr -0700 Bob Sneidar apparently wrote: I'm not entirely sure this is the issue, but let me describe how Livecode interprets your code. When you say field boy, Livecode translates that to field boy of the current card of the topstack (others will correct me if I am wrong). LC allows you to do this for the sake of brevity in coding, so you do not have to spell out the full path to every object in order to use it. But it's something you need to keep in mind when you being to navigate to different cards in a script. Not topstack but defaultstack. Usually these are the same but not always. Also, when a script navigates to a new card/stack, its context will stay with the old card/stack by default. @Mark: the solution for you is to extend the object reference to include the stack, so instead of get fld boy you say get fld boy of stack indexstack This works for fetching the custom properties as well. Like get the mycustomproperty of fld boy of card 10 of stack indexstack Mark, you should also look at the dialogData global property. It is handy to pass data when switching stacks. Robert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
On Jun 18, 2012, at 2:16 PM, Robert Brenstein wrote: On 18.06.2012 at 12:03 Uhr -0700 Bob Sneidar apparently wrote: I'm not entirely sure this is the issue, but let me describe how Livecode interprets your code. When you say field boy, Livecode translates that to field boy of the current card of the topstack (others will correct me if I am wrong). LC allows you to do this for the sake of brevity in coding, so you do not have to spell out the full path to every object in order to use it. But it's something you need to keep in mind when you being to navigate to different cards in a script. Not topstack but defaultstack. Usually these are the same but not always. Also, when a script navigates to a new card/stack, its context will stay with the old card/stack by default. hmmm... If by context you mean that if I go to a card in another stack and get the name of this card, it will return the name of the card I came from and not the card I went to, I think you are mistaken, but I may have misunderstood you. I tested this by opening a new stack and putting this script in a new button: ON mouseUp pMouseBtnNo go stack CSL Launcher put the name of this card go back END mouseUp I got the name of the current card in stack CSL Launcher (an app I am creating). Bob ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
On 18.06.2012 at 14:34 Uhr -0700 Bob Sneidar apparently wrote: hmmm... If by context you mean that if I go to a card in another stack and get the name of this card, it will return the name of the card I came from and not the card I went to, I think you are mistaken, but I may have misunderstood you. I meant this in a sense discussed in the comments for, for example, the call command in LiveCode dictionary (in regards to differences between call and send). Robert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
Hi Again, I can't build a script that crafts a temp variable that can be used in a go to card name script. #Fail for me. So, I want to go to a different stack. -- check. write to a field -- check But I can't get to the proper card. I put the card name into that vTempC temp handle, complete with quotes. When I put the vTempC into the message box it is just as I want it to be. Saying again. I want to go to card Roberto Clemente in stack Kids That works. But, I need a script off of a button to insert the Roberto Clement part. So, this line breaks: put Present on the short english date return after field Attendance of card x of stack Kids And the failure message, I've seen for hours now, is: executing at 10:02:51 PM TypeChunk: can't find card Object Yo! Present Lineput Present on the short english date return after field Attendance of card z of stack Kids HintmouseUp -- Ta. Mark Rauterkus mark.rauter...@gmail.com PPS Summer Dreamers' Swim and Water Polo Camp Head Coach with Neighborhood Learning Alliance ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: jumping among Mainstack and substacks isn't easy
On 6/18/12 9:05 PM, Mark Rauterkus wrote: Hi Again, I can't build a script that crafts a temp variable that can be used in a go to card name script. #Fail for me. So, I want to go to a different stack. -- check. write to a field -- check But I can't get to the proper card. I put the card name into that vTempC temp handle, complete with quotes. When I put the vTempC into the message box it is just as I want it to be. Saying again. I want to go to card Roberto Clemente in stack Kids That works. But, I need a script off of a button to insert the Roberto Clement part. So, this line breaks: put Present on the short english date return after field Attendance of card x of stack Kids And the failure message, I've seen for hours now, is: executing at 10:02:51 PM TypeChunk: can't find card Object Yo! Present Lineput Present on the short english date return after field Attendance of card z of stack Kids HintmouseUp It would be helpful if you could post whole handler, since the excerpts above don't give enough info. Some of the relevant variables don't match; for example, the script refers to the card as x and in the error it refers to z, and so forth. What you want to do is usually pretty easy: put Roberto Clement into tUserName go cd tUserName of stack kids put Present on the short english date return after field Attendance Alternately, you don't need to actually go to the card, you can do it all from anywhere remotely, provided the stack is in memory somewhere: put Roberto Clement into tUserName put Present on the short english date return after field \ Attendance of card tUserName of stack kids -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Time-Stamping Demo programs via substacks?
Um: --30 Day code-- if the fld STAMP of stack STAMP is empty then set the lockScreen to true put the seconds into into fld STAMP of stack STAMP save stack STAMP set the lockScreen to false end if put the seconds into DAZE30 put fld STAMP of stack STAMP into TSTAMP if DAZE30 (TSTAMP + 2592000) then set the vis of img TIME IS UP CHUM to true end if --End 30 Day code-- This works very well in a stack (where stack STAMP is a substack of my mainstack), will it work in a standalone? or, put another way, will the standalone save the time-stamp data in the substack? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Time-Stamping Demo programs via substacks?
Richmond, The best way to go is to call the DAZE30 function from your standalone and compare it with a TSTAMP reference stored on the cloud so your customers won't find any local file to delete to get a way to bypass your 30 days try-period key. HTH, Le 23 avr. 2012 à 10:31, Richmond a écrit : Um: --30 Day code-- if the fld STAMP of stack STAMP is empty then set the lockScreen to true put the seconds into into fld STAMP of stack STAMP save stack STAMP set the lockScreen to false end if put the seconds into DAZE30 put fld STAMP of stack STAMP into TSTAMP if DAZE30 (TSTAMP + 2592000) then set the vis of img TIME IS UP CHUM to true end if --End 30 Day code-- This works very well in a stack (where stack STAMP is a substack of my mainstack), will it work in a standalone? or, put another way, will the standalone save the time-stamp data in the substack? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Time-Stamping Demo programs via substacks?
In the clouds, baby! That presupposes that my target demographic are all connected, permanently, to the internet; and they are not. Richmond, The best way to go is to call the DAZE30 function from your standalone and compare it with a TSTAMP reference stored on the cloud so your customers won't find any local file to delete to get a way to bypass your 30 days try-period key. HTH, Le 23 avr. 2012 à 10:31, Richmond a écrit : Um: --30 Day code-- if the fld STAMP of stack STAMP is empty then set the lockScreen to true put the seconds into into fld STAMP of stack STAMP save stack STAMP set the lockScreen to false end if put the seconds into DAZE30 put fld STAMP of stack STAMP into TSTAMP if DAZE30 (TSTAMP + 2592000) then set the vis of img TIME IS UP CHUM to true end if --End 30 Day code-- This works very well in a stack (where stack STAMP is a substack of my mainstack), will it work in a standalone? or, put another way, will the standalone save the time-stamp data in the substack? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Confused about substacks
Yes I was actually thinking about and had begun to make each card/form it's own stack, but when I got to the place of thinking about all the variables and code and message paths I had already set up and was deeply entrenched in, the hassle of making it all work non-modally so to speak seemed too much of a hassle. I guess the lesson to be learned here, is plan for standalone and modality before coding an app. Retooling can be a b! Bob On Nov 18, 2011, at 4:31 PM, Mike Bonner wrote: Probably what will work is to make a stackrunner type of splash stack with any libraries etc included. Then you can have your real stack with its substacks be opened by the splash. As long as the right support stuff is included the splash you can go stack.. and it should be fine, and the splashstack can handle the saving of changes to your real stack. On Fri, Nov 18, 2011 at 5:17 PM, Bob Sneidar b...@twft.com wrote: Correction. You cannot go to a card in a new window. The command will ignore the new window and just go to the card in the existing window. That would be a nice feature enhancement for having multiple windows open on a single stack. Bob ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Confused about substacks
Hi all. I am a bit confused now. I created a new stack, saved it, made it a substack of my splash stack. No problemo. I can see the substack on the hard drive, I can see the substack in the application browser as a substack of my splash stack. BUT THEN... I right clicked my splash stack in the application browser, and created a new substack, named it, saved it, application browser looks peachy, but the stack file is not visible on the hard drive! Does making a stack a substack create a COPY of the original stack and imbed it in the main stack, or is the file hiding somewhere else on my hard drive? If the former, then am I correct in thinking I do not need the other stack files I CAN see on my hard drive, because there are now copies of them in the main stack? I am s confused... Bob ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Confused about substacks
Hi Bob, When you turn a mainstack into a substack of another mainstack, that substack becomes part of the stackfile containing the mainstack. In effect the stackfile containing the former mainstack is orphaned. Usually I just get rid of these orphaned stackfiles to avoid confusion. Bottom line: substacks are part of the same stack file of the mainstack. Hope this it what you were asking. Devin On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote: Hi all. I am a bit confused now. I created a new stack, saved it, made it a substack of my splash stack. No problemo. I can see the substack on the hard drive, I can see the substack in the application browser as a substack of my splash stack. BUT THEN... I right clicked my splash stack in the application browser, and created a new substack, named it, saved it, application browser looks peachy, but the stack file is not visible on the hard drive! Does making a stack a substack create a COPY of the original stack and imbed it in the main stack, or is the file hiding somewhere else on my hard drive? If the former, then am I correct in thinking I do not need the other stack files I CAN see on my hard drive, because there are now copies of them in the main stack? I am s confused... Bob ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Confused about substacks
Assuming you are doing this so that you can save your stack file, yes. When you make a stack a substack, I do believe it incorporates it all together. However, there is a setting in the standalone builder that avoids this when you build a standalone. Its under the stacks heading, move substacks into individual stack files. On Fri, Nov 18, 2011 at 4:36 PM, Bob Sneidar b...@twft.com wrote: Hi all. I am a bit confused now. I created a new stack, saved it, made it a substack of my splash stack. No problemo. I can see the substack on the hard drive, I can see the substack in the application browser as a substack of my splash stack. BUT THEN... I right clicked my splash stack in the application browser, and created a new substack, named it, saved it, application browser looks peachy, but the stack file is not visible on the hard drive! Does making a stack a substack create a COPY of the original stack and imbed it in the main stack, or is the file hiding somewhere else on my hard drive? If the former, then am I correct in thinking I do not need the other stack files I CAN see on my hard drive, because there are now copies of them in the main stack? I am s confused... Bob ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Confused about substacks
Oic. Because if they are substacks of the splash stack then they are part of the standalone and therefore not editable. That makes sense. I think I am misusing substacks then. I should just make them individual stacks on the hard drive. The goal is to have multiple editable forms open at the same time, so having each form as it's own stack seemed a logical choice, but now I am not so sure. I wonder if I should just be using go card in new window instead? Bob On Nov 18, 2011, at 3:44 PM, Mike Bonner wrote: Assuming you are doing this so that you can save your stack file, yes. When you make a stack a substack, I do believe it incorporates it all together. However, there is a setting in the standalone builder that avoids this when you build a standalone. Its under the stacks heading, move substacks into individual stack files. On Fri, Nov 18, 2011 at 4:36 PM, Bob Sneidar b...@twft.com wrote: Hi all. I am a bit confused now. I created a new stack, saved it, made it a substack of my splash stack. No problemo. I can see the substack on the hard drive, I can see the substack in the application browser as a substack of my splash stack. BUT THEN... I right clicked my splash stack in the application browser, and created a new substack, named it, saved it, application browser looks peachy, but the stack file is not visible on the hard drive! Does making a stack a substack create a COPY of the original stack and imbed it in the main stack, or is the file hiding somewhere else on my hard drive? If the former, then am I correct in thinking I do not need the other stack files I CAN see on my hard drive, because there are now copies of them in the main stack? I am s confused... Bob ___ use-livecode mailing list use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Confused about substacks
Thanks Devin I think I understand now. I am going to avoid the whole problem and go card in new window. Bob On Nov 18, 2011, at 3:42 PM, Devin Asay wrote: Hi Bob, When you turn a mainstack into a substack of another mainstack, that substack becomes part of the stackfile containing the mainstack. In effect the stackfile containing the former mainstack is orphaned. Usually I just get rid of these orphaned stackfiles to avoid confusion. Bottom line: substacks are part of the same stack file of the mainstack. Hope this it what you were asking. Devin On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote: Hi all. I am a bit confused now. I created a new stack, saved it, made it a substack of my splash stack. No problemo. I can see the substack on the hard drive, I can see the substack in the application browser as a substack of my splash stack. BUT THEN... I right clicked my splash stack in the application browser, and created a new substack, named it, saved it, application browser looks peachy, but the stack file is not visible on the hard drive! Does making a stack a substack create a COPY of the original stack and imbed it in the main stack, or is the file hiding somewhere else on my hard drive? If the former, then am I correct in thinking I do not need the other stack files I CAN see on my hard drive, because there are now copies of them in the main stack? I am s confused... Bob ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Confused about substacks
Correction. You cannot go to a card in a new window. The command will ignore the new window and just go to the card in the existing window. That would be a nice feature enhancement for having multiple windows open on a single stack. Bob Thanks Devin I think I understand now. I am going to avoid the whole problem and go card in new window. Bob On Nov 18, 2011, at 3:42 PM, Devin Asay wrote: Hi Bob, When you turn a mainstack into a substack of another mainstack, that substack becomes part of the stackfile containing the mainstack. In effect the stackfile containing the former mainstack is orphaned. Usually I just get rid of these orphaned stackfiles to avoid confusion. Bottom line: substacks are part of the same stack file of the mainstack. Hope this it what you were asking. Devin On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote: ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Confused about substacks
Probably what will work is to make a stackrunner type of splash stack with any libraries etc included. Then you can have your real stack with its substacks be opened by the splash. As long as the right support stuff is included the splash you can go stack.. and it should be fine, and the splashstack can handle the saving of changes to your real stack. On Fri, Nov 18, 2011 at 5:17 PM, Bob Sneidar b...@twft.com wrote: Correction. You cannot go to a card in a new window. The command will ignore the new window and just go to the card in the existing window. That would be a nice feature enhancement for having multiple windows open on a single stack. Bob Thanks Devin I think I understand now. I am going to avoid the whole problem and go card in new window. Bob On Nov 18, 2011, at 3:42 PM, Devin Asay wrote: Hi Bob, When you turn a mainstack into a substack of another mainstack, that substack becomes part of the stackfile containing the mainstack. In effect the stackfile containing the former mainstack is orphaned. Usually I just get rid of these orphaned stackfiles to avoid confusion. Bottom line: substacks are part of the same stack file of the mainstack. Hope this it what you were asking. Devin On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote: ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: SubStacks and message path
...thanks Robert but 'do login()' was working just fine until I moved it from a login 'card' in the mainstack into into a login substack. And it does again now, since I have taken Jaque's advice to use groups with switched visibility (and background images that simulate popping a substack with a fancy window shape) instead of unnecessary substacks! I think I'm gradually learning how to avoid the bits of LiveCode that I don't understand enough to be able to control! ;-) Best, Keith.. On 5 Jun 2011, at 17:00, Robert Brenstein wrote: I think that your problem with original scenerio was not with path but that 'do login()' was a wrong construct, if login was a function. It should probably have been something like 'get login()'. Robert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: SubStacks and message path
On 04.06.2011 at 12:58 Uhr +0100 Keith Clarke apparently wrote: Hi Jim, Thanks for the response, clarification and tips. This app has one MainStack (so far!) and it's script contains a handler on preOpenStack, to start using stack SOAP. So, thanks for confirming that this should place the SOAP substack into the message path library 'slot' for the MainStack and any other substacks (such as this login one). So, maybe I just had a typo somewhere - that wouldn't be a first! Best, Keith.. I think that your problem with original scenerio was not with path but that 'do login()' was a wrong construct, if login was a function. It should probably have been something like 'get login()'. Robert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: SubStacks and message path
On 4 Jun 2011, at 09:07, Keith Clarke wrote: Hi folks, I'm using a substack 'Credentials' as a dialogue box to capture login credentials for a web service (tUsername, tPassword). A second 'SOAP' substack acts as a library managing the various POST messages for the web service, including a function login pUsername pPassword If I attempt to use 'do login(tUsername, tPassword)' in a button on the Credential's substack, the script throws errors - so I'm assuming that the SOAP substack is not in the Credentials substack's message path. So, I'm trying the call function for the first time, but get errors with call login(tUsername, tPassword) of stack SOAP Any clues as to what I'm dong wrong? Best, Keith.. No need for fancy maneuvers. Just use the straight forward approach. You could do a simple one-liner in the 'on openstack' of the SOAP stack script. start using stack (the short name of me) If you do this in the main stack, then use start using stack SOAP functions -- this puts only the stack script into the 'library' part of the message path Now that script container will be after ANY main stack substacks you open. The path will be main stack, then SOAP, then back, then engine unless the SOAP stack is front most window, then SOAP stk, main stack, then SOAP, then back, then engine -- thus twice, if and only if you pass your handler and function traps Switch to another main stack and SOAP remains in the path. main stack 2, SOAP stk, then back, then engine The best practice is to keep SOAP in memory rather than close it after executing start using, unless you execute stop using, then close. Otherwise, Livecode will try to keep the stack open in memory, since you said you needed it. Hope this helps Jim Ault Las Vegas ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: SubStacks and message path
Hi Jim, Thanks for the response, clarification and tips. This app has one MainStack (so far!) and it's script contains a handler on preOpenStack, to start using stack SOAP. So, thanks for confirming that this should place the SOAP substack into the message path library 'slot' for the MainStack and any other substacks (such as this login one). So, maybe I just had a typo somewhere - that wouldn't be a first! Best, Keith.. On 4 Jun 2011, at 12:22, Jim Ault wrote: On 4 Jun 2011, at 09:07, Keith Clarke wrote: Hi folks, I'm using a substack 'Credentials' as a dialogue box to capture login credentials for a web service (tUsername, tPassword). A second 'SOAP' substack acts as a library managing the various POST messages for the web service, including a function login pUsername pPassword If I attempt to use 'do login(tUsername, tPassword)' in a button on the Credential's substack, the script throws errors - so I'm assuming that the SOAP substack is not in the Credentials substack's message path. So, I'm trying the call function for the first time, but get errors with call login(tUsername, tPassword) of stack SOAP Any clues as to what I'm dong wrong? Best, Keith.. No need for fancy maneuvers. Just use the straight forward approach. You could do a simple one-liner in the 'on openstack' of the SOAP stack script. start using stack (the short name of me) If you do this in the main stack, then use start using stack SOAP functions -- this puts only the stack script into the'library' part of the message path Now that script container will be after ANY main stack substacks you open. The path will be main stack, then SOAP, then back, then engine unless the SOAP stack is front most window, then SOAP stk, main stack, then SOAP, then back, then engine -- thus twice, if and only if you pass your handler and function traps Switch to another main stack and SOAP remains in the path. main stack 2, SOAP stk, then back, then engine The best practice is to keep SOAP in memory rather than close it after executing start using, unless you execute stop using, then close. Otherwise, Livecode will try to keep the stack open in memory, since you said you needed it. Hope this helps Jim Ault Las Vegas ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode