livecode JSON extension

2016-08-11 Thread Matt Maier
I'm using a stack written by someone else that's trying to call what appears to be a built-in JSON library. For example, it will call jsonImport() on some JSON, but won't find that handler. The error says to check to see if the "com.livecode.library.json" extension is checked in the standalone app

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Sannyasin Brahmanathaswami
@Dick Sure, I think we would be interested. @ monte Not sure if the above qualifies as use case… but may help ? Our new app is very modular. Layout on disk looks like this config.json loader stack # stack script initializes all back/front and lib required to app wide use # as declare

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Sannyasin Brahmanathaswami
I meant "can't run parallel" Svasti Astu, Be Well Brahmanathaswami www.himalayanacademy.com On 8/11/16, 3:08 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami" wrote: So, since we know the behaviors can run parallel, ___ use-livecod

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Sannyasin Brahmanathaswami
"I had tried indenting each level, but found it didn't provide that much more clarity and preferred to keep linked behaviors at the same level" So, since we know the behaviors can run parallel, your view means behavior 3 is parent of 2? And behavior 2 is a patent of 1? Swasti Astu! Be Well ( f

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Monte Goulding
> On 12 Aug 2016, at 10:17 AM, Dick Kriesel wrote: > > A use case involves the script editor’s "Apply" button, whose events may > matter to multiple development tools. When that button already has a > behavior, the process for adding another also adds complexity and adverse > side effects.

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Dick Kriesel
> On Aug 11, 2016, at 2:34 PM, Sannyasin Brahmanathaswami > wrote: > > but looking for > > OBJECT A (with behaviors) > behavior 1 > behavior 2 > bevaiour 3 > > all with an "equal standing" I have a library called "libBehaviorList" you could use to give any object a list of

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Dr. Hawkins
On Thu, Aug 11, 2016 at 3:26 PM, Richard Gaskin wrote: > With the current nesting setup we have the same ability to use multiple > scripts to define a single class of objects, but much greater clarity with > being able to know which will override/overload others. Multiple inheritance can have i

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Richard Gaskin
Sannyasin Brahmanathaswami wrote: > Richard… tks for devolution I had it before but downloaded a fresh > copy If yours is v4 or later it should have an option to notify you of updates automatically. > fyi that image " devo-mpath-nested.png" > > button "Main Button" > > shows three assigned b

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Sannyasin Brahmanathaswami
Richard… tks for devolution I had it before but downloaded a fresh copy. fyi that image " devo-mpath-nested.png" button "Main Button" shows three assigned behaviors in parallel, not nested? ?? On 8/11/16, 12:26 PM, "use-livecode on behalf of Richard Gaskin" wrote: Here's a view with n

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Richard Gaskin
Sannyasin Brahmanathaswami wrote: > The hierarchical behavior method obfuscates the architecture in the > sense that it is very hard to see the common parent behaviors that > are "hiding" behind the other child behaviors. That's a function of the tool, not a weakness in the language. The Projec

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Sannyasin Brahmanathaswami
agreed and done http://quality.livecode.com/show_bug.cgi?id=18176 please add more if my description is insufficient. Aloha! BR On 8/11/16, 11:40 AM, "use-livecode on behalf of Monte Goulding" wrote: Given the width it would probably be nice to support showing the full behavior hierarc

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Monte Goulding
> On 12 Aug 2016, at 7:34 AM, Sannyasin Brahmanathaswami > wrote: > > The hierarchical behavior method obfuscates the architecture in the sense > that it is very hard to see the common parent behaviors that are "hiding" > behind the other child behaviors. Given the width it would probably be

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Sannyasin Brahmanathaswami
Monte: yes I was aware of that option… but looking for OBJECT A (with behaviors) behavior 1 behavior 2 bevaiour 3 all with an "equal standing". I can see how from the engine's point of view this might be challenging vs a hierarchical/cascading layout. ergo, answer is "no,

No data in application browser in 8.0.2

2016-08-11 Thread Dr. Hawkins
I took one of my brief forays into version 8 today--shorter even than usual. The application browser window comes up, but it's completely empty--with a dozen stacks loaded! -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list us

Re: Can use assign multiple behaviors to a single object?

2016-08-11 Thread Monte Goulding
You can assign a behavior to a behavior object for common code you want to use in multiple behaviors. The IDE does support it. Cheers Monte Sent from my iPhone > On 12 Aug 2016, at 7:10 AM, Sannyasin Brahmanathaswami > wrote: > > Pursuant to the new text only script architecture possibiliti

Can use assign multiple behaviors to a single object?

2016-08-11 Thread Sannyasin Brahmanathaswami
Pursuant to the new text only script architecture possibilities: e.g. Group "portal-links" Can we assign more than 1 behavior to this(any) group(object)? Rumors are that it is possible. But, the IDE does not support it. Or at least the current property inspector UI as it looks today, does not s

Re: Trouble setting the font of the text of a field

2016-08-11 Thread Dr. Hawkins
On Thu, Aug 11, 2016 at 12:53 PM, Jeanne A. E. DeVoto < revolut...@jaedworks.com> wrote: > set the textFont of char 1 to -1 of tgTg to empty > > That should work. > It did, it did! I had been trying "char 1 to -1 of the text of tgTg", which I suppose gets past the same way as "the text of" . .

Re: Trouble setting the font of the text of a field

2016-08-11 Thread Jeanne A. E. DeVoto
At 11:28 AM -0700 8/11/2016, Dr. Hawkins wrote: This code has been around a while; it's part of the maintenance routines. But now it's glitching. [...] set the textFont of the text of tgTg to empty "the text of tgTg" would be parsed as the text content of the field. Try using this inst

Re: Trouble setting the font of the text of a field

2016-08-11 Thread Peter Bogdanoff
I've had better results with: set char 1 to -1 of the text of ... > On Aug 11, 2016, at 11:28 AM, Dr. Hawkins wrote: > > This code has been around a while; it's part of the maintenance routines. > But now it's glitching. > > tgTg holds the long id of a field > > Inside a conditional, the last

Trouble setting the font of the text of a field

2016-08-11 Thread Dr. Hawkins
This code has been around a while; it's part of the maintenance routines. But now it's glitching. tgTg holds the long id of a field Inside a conditional, the last line of the code set the txtFnt of tgTg to "ArialMt" ck tgTg & cr & the long name of tgTg set the textFont of the te

Re: [OT] Another reason we love LiveCode

2016-08-11 Thread Mark Waddingham
On 2016-08-11 17:32, Mike Kerner wrote: or the difference between ++a and a++ and I didn't know, until yesterday, that "to" and "into" are synonyms. I freaked out when the syntax checker didn't yell at me for "put 1 to a", until I tested it. There's lots of synonyms lurking around like that

Re: put one array after another

2016-08-11 Thread Peter M. Brigham
On Aug 11, 2016, at 11:37 AM, Matt Maier wrote: > The way I've been tracking arrays in text for documentation purposes is > basically just a table at heart: > > array[first-key][this-key] = whatever > array[first-key][that-key] = foobar > array[2nd-key][some-key] = data > array[2nd-key][another-o

Re: put one array after another

2016-08-11 Thread Matt Maier
I second the vote for a YAML library. It makes text and arrays work together a lot better than JSON. The way I've been tracking arrays in text for documentation purposes is basically just a table at heart: array[first-key][this-key] = whatever array[first-key][that-key] = foobar array[2nd-key][so

Re: [OT] Another reason we love LiveCode

2016-08-11 Thread Mike Kerner
or the difference between ++a and a++ and I didn't know, until yesterday, that "to" and "into" are synonyms. I freaked out when the syntax checker didn't yell at me for "put 1 to a", until I tested it. ___ use-livecode mailing list use-livecode@lists.ru

[OT] Another reason we love LiveCode

2016-08-11 Thread Richard Gaskin
The difference between "=" and "==" is something we LiveCoders never need to worry about: https://i.redd.it/nf19afmd7kex.jpg :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web __

Re: put one array after another

2016-08-11 Thread Richard Gaskin
Quentin Long wrote: > I don't know if there's a command that will do the job. However, > there's a construction I use when I merge two list variables into one: > > put ItemList2 into item (1 + the number of items in ItemList1) of > ItemList1 > > That construction may seem a little weird, but it d

Re: put one array after another

2016-08-11 Thread Quentin Long
sez Matt Maier : > Is there a command to merge two array variables into one? > > Example: > > tFirstArray[tom] = mot > tFirstArray[jane] = enaj > > tSecondArray[bill] = llib > tSecondArray[name] = eman > > put tSecondArray after tFirstArray > > tFirstArray[tom] = mot > tFirstArray[jane] = ena