Re: Previous request not completed

2021-10-11 Thread J. Landman Gay via use-livecode

On 10/11/21 2:35 PM, Mark Wieder via use-livecode wrote:
So I'd say either try the tsNettsNetLibUrlReuseConnection command or loop on the socket you're 
using in the opensockets (in my case it was :443), waiting for it to disappear from the list. 
Unfortunately, simply completing a put url and getting valid status from the remote resource 
doesn't automatically free the socket.


Or if you're up against a deadline just kludge it and put in a wait. 


I'm going with the wait for now, deadline is looming. Next release I think I'll try tsNet's 
reusable connection just to see how it goes.


Thanks for responding.

--
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: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar via use-livecode Mon, 11 Oct 2021 16:42:20 -0700
> 
> I see. I think I did not maky myself clear. With the object inspector open 
> and 
> the behavior tab selected, before dragging the object with the pointer tool, 
> there is no behavior registered. Upon dragging the object, the tool works as 
> advertised, and that is the coolest thing since sliced bread, however the 
> behavior for bnGuides is registered in the inspector, and remains registered 
> even after I stop dragging the object. 

Just in case I did not make it clear: the behavior is removed when the 
selection of the dragged is, well, deselected. Independend of dragging.

To see that in the Properties inspector you would have to lock the Properties 
Inspector for that object and after deselecting the object you would have to 
change the tab in the Properties Inspector and go back to the "Behavior" tab to 
see that the behavior is gone.

Kind regards
Bernd
___
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: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
I see. I think I did not maky myself clear. With the object inspector open and 
the behavior tab selected, before dragging the object with the pointer tool, 
there is no behavior registered. Upon dragging the object, the tool works as 
advertised, and that is the coolest thing since sliced bread, however the 
behavior for bnGuides is registered in the inspector, and remains registered 
even after I stop dragging the object. 

The same symptoms occur in a simple stack with two buttons, and does so even 
with the revNavigator stack closed. I quit Livecode so all of my own projects 
were closed, and tried again with a simple stack, and got the same results. 

HTH

Bob S


> On Oct 11, 2021, at 16:33 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar via use-livecode Mon, 11 Oct 2021 16:07:53 -0700
>> 
>> Sorry, no love. I made the change as you suggested, but the behavior 
>> property 
>> of the object still retains the bnGuides behavior. 
> 
> 
> Bob,
> I assume that the behavior that sticks was added after you made the changes 
> to bnGuides and that it is not a behavior that was added before you made the 
> changes to bnGuides.
> Maybe a short test with a new stack and a couple of controls that you inspect 
> via Navigator while in Browse Mode.
> 
> Then I will have to investigate further because in my testing bnGuides does 
> not add a behavior to a control when in "Browse" mode and Navigator or the 
> Project Browser selects a control as a feedback for the target.
> 
> Kind regards
> Bernd


___
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: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
FYI all my actions have been in pointer mode. 

Bob S


> On Oct 11, 2021, at 16:21 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
> Mark Wieder wrote:
> 
> On 10/11/21 3:38 PM, Niggemann, Bernd via use-livecode wrote:
> 
>if the tool <> "pointer tool" then
>   exit revSelectedObjectChanged
>end if
> 
> 
> Wouldn't that still be a problem if something else (e.g. the Project Browser) 
> selects an object?
> 
> 
> 
> Not that I can see. bnGuides just stays out of this if Navigator or the 
> Project Browser selects a control when the tool is browse tool.
> If you are in browse mode you will not and can not move controls around for 
> layout.
> 
> But maybe I am not seeing all implications.
> 
> Kind regards
> Bernd
> ___
> 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: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar via use-livecode Mon, 11 Oct 2021 16:07:53 -0700
> 
> Sorry, no love. I made the change as you suggested, but the behavior property 
> of the object still retains the bnGuides behavior. 


Bob,
I assume that the behavior that sticks was added after you made the changes to 
bnGuides and that it is not a behavior that was added before you made the 
changes to bnGuides.
Maybe a short test with a new stack and a couple of controls that you inspect 
via Navigator while in Browse Mode.

Then I will have to investigate further because in my testing bnGuides does not 
add a behavior to a control when in "Browse" mode and Navigator or the Project 
Browser selects a control as a feedback for the target.

Kind regards
Bernd
___
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: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
Mark Wieder wrote:

On 10/11/21 3:38 PM, Niggemann, Bernd via use-livecode wrote:

if the tool <> "pointer tool" then
   exit revSelectedObjectChanged
end if


Wouldn't that still be a problem if something else (e.g. the Project Browser) 
selects an object?



Not that I can see. bnGuides just stays out of this if Navigator or the Project 
Browser selects a control when the tool is browse tool.
If you are in browse mode you will not and can not move controls around for 
layout.

But maybe I am not seeing all implications.

Kind regards
Bernd
___
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: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Sorry, no love. I made the change as you suggested, but the behavior property 
of the object still retains the bnGuides behavior. 

Bob S


> On Oct 11, 2021, at 15:38 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar 
>> 
>>  wrote
> 
>> It was an old version so I imagine that was the issue. I got the new version
>> and am testing it in my IDE. I'll let you know if there are any issues.
> 
> 
> 
> I think I know what is going on.
> 
> Navigator selects the object to indicate the target. That triggers a 
> selectedObjectChanged message.
> 
> I naively assumed that would only happen when in "Edit mode" i.e. the tool is 
> the "pointer tool"
> 
> 
> If you add the following conditional to the card script in handler 
> revSelectedObjectChanged
> 
> 
> 
> on revSelectedObjectChanged
>   local tSelected, tSelectedOne
> 
>   ## dont set behavior if the tool is not "pointer tool"
>   ## i.e. editing layout of controls
>   if the tool <> "pointer tool" then
>  exit revSelectedObjectChanged
>   end if
> 
> you should be fine. I will have to put out a new version which catches that.
> 
> Kind regards
> Bernd
> ___
> 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: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Hi Bernd. 

Yes the problem persists. I won't attempt this with an object that already has 
a behavior for fear it may break the link. 

By the way, one unintended (or otherwise intended) "feature" of this handy 
little utility is that you can drag items that are lockLoc'd. I actually like 
that! 

Bob S


> On Oct 11, 2021, at 15:38 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar 
>> 
>>  wrote
> 
>> It was an old version so I imagine that was the issue. I got the new version
>> and am testing it in my IDE. I'll let you know if there are any issues.
> 
> 
> 
> I think I know what is going on.
> 
> Navigator selects the object to indicate the target. That triggers a 
> selectedObjectChanged message.
> 
> I naively assumed that would only happen when in "Edit mode" i.e. the tool is 
> the "pointer tool"
> 
> 
> If you add the following conditional to the card script in handler 
> revSelectedObjectChanged
> 
> 
> 
> on revSelectedObjectChanged
>   local tSelected, tSelectedOne
> 
>   ## dont set behavior if the tool is not "pointer tool"
>   ## i.e. editing layout of controls
>   if the tool <> "pointer tool" then
>  exit revSelectedObjectChanged
>   end if
> 
> you should be fine. I will have to put out a new version which catches that.
> 
> Kind regards
> Bernd
> ___
> 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: [ANN] bnGuides has been updated

2021-10-11 Thread Mark Wieder via use-livecode

On 10/11/21 3:38 PM, Niggemann, Bernd via use-livecode wrote:


if the tool <> "pointer tool" then
   exit revSelectedObjectChanged
end if


Wouldn't that still be a problem if something else (e.g. the Project 
Browser) selects an object?


--
 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: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar 
> 
>  wrote

> It was an old version so I imagine that was the issue. I got the new version
> and am testing it in my IDE. I'll let you know if there are any issues.



I think I know what is going on.

Navigator selects the object to indicate the target. That triggers a 
selectedObjectChanged message.

I naively assumed that would only happen when in "Edit mode" i.e. the tool is 
the "pointer tool"


If you add the following conditional to the card script in handler 
revSelectedObjectChanged



on revSelectedObjectChanged
   local tSelected, tSelectedOne

   ## dont set behavior if the tool is not "pointer tool"
   ## i.e. editing layout of controls
   if the tool <> "pointer tool" then
  exit revSelectedObjectChanged
   end if

you should be fine. I will have to put out a new version which catches that.

Kind regards
Bernd
___
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: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
It was an old version so I imagine that was the issue. I got the new version 
and am testing it in my IDE. I'll let you know if there are any issues. 

Bob S


> On Oct 11, 2021, at 13:13 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar via 
>> use-livecode<https://www.mail-archive.com/search?l=use-livecode@lists.runrev.com=from:%22Bob+Sneidar+via+use%5C-livecode%22>
>>  Mon, 11 Oct 2021 11:01:44 
>> -0700<https://www.mail-archive.com/search?l=use-livecode@lists.runrev.com=date:20211011>
> 
>> Concerning the issue of the revNavigator item being red and unckickable, I
>> found that the behavior had not been removed. It was a simple edit to remove
>> the stranded behavior.
> 
> 
> 
>> On Oct 11, 2021, at 10:56 , Bob Sneidar 
>> http://iotecdigital.com>> wrote:
>> 
>> Where would I get the latest? I have rev .05, but I noted in your notes that
>> "A behavior is temporarily attached to the object..." What happens to the
>> existing behavior if there is one? I noticed that having selected a button
>> with bnGuides open, revNavigator shows that object in a red color, and I can
>> no longer double click the object in revNavigator to get the script object.
>> 
> 
> Bob,
> 
> the behavior used by bnGuides is set to a control. If that control already 
> has a behavior/behaviors set then bnGuides
> sets its behavior to the last in the chain of behaviors and removes it when 
> the control is not selected anymore.
> 
> Do you have a recipe for an unremoved behavior set by bnGuides?
> 
> I have not tested bnGuides when revNavigator is in use. Maybe I should.
> 
> Kind regards
> Bernd
> ___
> 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: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar via 
> use-livecode<https://www.mail-archive.com/search?l=use-livecode@lists.runrev.com=from:%22Bob+Sneidar+via+use%5C-livecode%22>
>  Mon, 11 Oct 2021 11:01:44 
> -0700<https://www.mail-archive.com/search?l=use-livecode@lists.runrev.com=date:20211011>

> Concerning the issue of the revNavigator item being red and unckickable, I
> found that the behavior had not been removed. It was a simple edit to remove
> the stranded behavior.



> On Oct 11, 2021, at 10:56 , Bob Sneidar 
> http://iotecdigital.com>> wrote:
>
> Where would I get the latest? I have rev .05, but I noted in your notes that
> "A behavior is temporarily attached to the object..." What happens to the
> existing behavior if there is one? I noticed that having selected a button
> with bnGuides open, revNavigator shows that object in a red color, and I can
> no longer double click the object in revNavigator to get the script object.
>

Bob,

the behavior used by bnGuides is set to a control. If that control already has 
a behavior/behaviors set then bnGuides
sets its behavior to the last in the chain of behaviors and removes it when the 
control is not selected anymore.

Do you have a recipe for an unremoved behavior set by bnGuides?

I have not tested bnGuides when revNavigator is in use. Maybe I should.

Kind regards
Bernd
___
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: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
Thank you Roger for the kind words.

I think I did not announce the update on the use-list. It fixes a bug when 
returning from "Edit Group" via "Stop Editing"

bnGuides is a plug-in that shows guides to place UI-objects.

I announced the update here:
https://forums.livecode.com/viewtopic.php?f=4=31920=209453=3c72aae96597f167ba6cb9882dd8413d#p209370

and you can find bnGuides on livecodeshare

http://livecodeshare.runrev.com/stack/918/BnGuides

Kind regards
Bernd
___
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: Previous request not completed

2021-10-11 Thread Mark Wieder via use-livecode

On 10/10/21 10:00 AM, J. Landman Gay via use-livecode wrote:
I'm sure it's coming from libURL. TSNet adds functionality to libURL and 
they work together. As I understand it, you can't use TSNet alone, it 
needs libURL.


https://www.mail-archive.com/use-livecode@lists.runrev.com/msg85062.html

Also:
"So include libUrl and you get normal libUrl; include libUrl and tsNet 
and you get libUrl driven by tsNet; include neither and you get the 
in-engine implementation."

https://www.mail-archive.com/use-livecode@lists.runrev.com/msg106501.html

Because TSNet allows me to set multiple connections, I wonder if that 
would solve the problem. I'm too close to deadline to have time to 
tinker too much.


Jacque-

I would get that error before when doing an update check using https.
put url("https://...;)
and if I try an update check on another stack before the first one has 
time to timeout I'll get the "previous request not completed" error.


So I'd say either try the tsNettsNetLibUrlReuseConnection command or 
loop on the socket you're using in the opensockets (in my case it was 
:443), waiting for it to disappear from the list. Unfortunately, simply 
completing a put url and getting valid status from the remote resource 
doesn't automatically free the socket.


Or if you're up against a deadline just kludge it and put in a wait. 

--
 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: [ANN] bnGuides has been updated

2021-10-11 Thread Mark Wieder via use-livecode

On 10/11/21 10:56 AM, Bob Sneidar via use-livecode wrote:


Livecode.com resources is not working. I cannot download this using that site. 
Clicking on anything after searching for it just reloads the page.


http://livecodeshare.runrev.com/stack/918/BnGuides

--
 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: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Concerning the issue of the revNavigator item being red and unckickable, I 
found that the behavior had not been removed. It was a simple edit to remove 
the stranded behavior. 

Bob S


> On Oct 11, 2021, at 10:56 , Bob Sneidar  wrote:
> 
> Where would I get the latest? I have rev .05, but I noted in your notes that 
> "A behavior is temporarily attached to the object..." What happens to the 
> existing behavior if there is one? I noticed that having selected a button 
> with bnGuides open, revNavigator shows that object in a red color, and I can 
> no longer double click the object in revNavigator to get the script object. 
> 
> Livecode.com resources is not working. I cannot download this using that 
> site. Clicking on anything after searching for it just reloads the page. 
> 
> Bob S
> 
> 
>> On Oct 11, 2021, at 09:48 , Roger Guay via use-livecode 
>>  wrote:
>> 
>> bnGuides is unobtrusive and efficient, cute even. I like it a lot!
>> 
>> I added a script to alternately collapse and expand it making it even more 
>> unobtrusive.
>> 
>> When it comes to UI design, you never get a second chance to make to make a 
>> first impression!
>> 
>> Thank you, Bernd
>> 
>> Roger
>> 
>> 
>> 
>> ___
>> 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: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Where would I get the latest? I have rev .05, but I noted in your notes that "A 
behavior is temporarily attached to the object..." What happens to the existing 
behavior if there is one? I noticed that having selected a button with bnGuides 
open, revNavigator shows that object in a red color, and I can no longer double 
click the object in revNavigator to get the script object. 

Livecode.com resources is not working. I cannot download this using that site. 
Clicking on anything after searching for it just reloads the page. 

Bob S


> On Oct 11, 2021, at 09:48 , Roger Guay via use-livecode 
>  wrote:
> 
> bnGuides is unobtrusive and efficient, cute even. I like it a lot!
> 
> I added a script to alternately collapse and expand it making it even more 
> unobtrusive.
> 
> When it comes to UI design, you never get a second chance to make to make a 
> first impression!
> 
> Thank you, Bernd
> 
> Roger
> 
> 
> 
> ___
> 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: [ANN] bnGuides has been updated

2021-10-11 Thread Roger Guay via use-livecode
bnGuides is unobtrusive and efficient, cute even. I like it a lot!

I added a script to alternately collapse and expand it making it even more 
unobtrusive.

When it comes to UI design, you never get a second chance to make to make a 
first impression!

Thank you, Bernd

Roger



___
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