Hey Friends, Long time no see! Loved this thread! In the spirit of working in the open and sharing unfinished (and potentially broken) stuff, I'd welcome you all to take a look into some documentation we're putting into place at:
https://bitbucket.org/hapdevelopers/devdocs/wiki/Home We welcome feedback, advise, suggestions and comments! :D Give use your two livecents! :D PS: The objective is to have a bit of documentation on best practices that we can point developers (internal and external) to. Cheers andre On Mon, Apr 4, 2016 at 5:32 AM, Ali Lloyd <ali.ll...@livecode.com> wrote: > localPath() & > "main-stack-scripts/generic-mobile-functions_behavior.livecode" is not a > valid stack reference - it's just a path. Try: > > on assignBehaviors > > set the behavior of stack "siva-portal-links_behavior" to the long id of > stack (localPath() & > "main-stack-scripts/generic-mobile-functions_behavior.livecode") > > end assignBehaviors > > On Mon, Apr 4, 2016 at 5:42 AM Sannyasin Brahmanathaswami < > bra...@hindu.org> > wrote: > > > But FWIW.. this does not work > > > > on assignBehaviors > > > > set the behavior of stack "siva-portal-links_behavior" to (localPath() & > > "main-stack-scripts/generic-mobile-functions_behavior.livecode") > > > > end assignBehaviors > > > > OTOH: if you assign the behavior via the inspector to the script-only > > stack it *does* work.. > > > > So there must be a syntax for that that we can use also. > > > > What is it? > > > > On March 31, 2016 at 12:30:50 PM, Ali Lloyd (ali.ll...@livecode.com > > <mailto:ali.ll...@livecode.com>) wrote: > > > > My solution to this: > > > > Stack "MyTestStack" has a field, which is assigned stack > > "MyBehaviorStack" as its behavior property. > > > > Stack "MyBehaviorStack" is a separate stack file. > > > > would be to also include the behavior *setting* in the preOpenStack > handler > > of "MyTestStack". > > > > on preOpenStack > > set the behavior of field "FieldWithBehavior" of me to <path to > > MyBehaviorStack> > > end preOpenStack > > _______________________________________________ > > 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 > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. _______________________________________________ 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