Re: Mobile Clipboard?

2022-12-22 Thread Mark Talluto via use-livecode
On Fri, Dec 16, 2022 at 10:54 AM Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Dan Friedman wrote:

 > Is there a way to set the clipboard text on a mobile (iOS and Android)
 > device?  Something equivalent to "set the clipboardData to someText"?

Unless there's been a very recent change, I don't believe LC-made mobile 
apps can use the clipboard at all outside of user interactions within 
scripted instantiations of mobile-native fields.

Do we have any word from the team on when this will be added?


Livecode apps for mobile devices take advantage of the host OS clipboard. You 
have to use the native input fields to access the clipboard.

Here is some sample code from the Appli Player, where one would paste in an app 
code to access a project.
This assumes you are using the version of the input field where you build it 
yourself vs. dragging the input field from the toolbox.

  on inputTextChanged
 local tTarget, tText

 //VALIDATE THE ENTRY
 put mobileControlTarget() into tTarget
 put mobileControlGet(tTarget,"text") into tText
 put validateAppCodeInput(tText) into tText

 //SUPPORT PASTE FROM CLIPBOARD
 if the num of chars of tText = 9 then
  repeat with xChar = 1 to 9
   if xChar = 5 then next repeat --SKIP HYPHEN
   mobileControlSet gMobileAppCodeFieldIDa[xChar], "text", char 
xChar of tText
  end repeat
 else
  //SUPPORT ENTER ONE CHAR AT A TIME
  if tText is false then
   //PUT EMPTY INTO INPUT FIELD
   mobileControlSet tTarget, "text", ""
  else
   //GO TO NEXT INPUT FIELD
   put getNextIOSinputField(tTarget) into tTarget
   mobileControlDo ("appCode" && tTarget), "focus"
  end if
 end if
end inputTextChanged


Due to challenges with this method of the input field for Android, we settled 
on using the input field from the toolbox. 
In that case, you would pick up the clipboard as you would for a desktop. This 
is from memory. Let me know if there are problems, and I’ll dig deeper.

Best regards,
Mark Talluto

appli.io 
livecloud.io 
nursenotes.net 
canelasoftware.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: Anyone any experience with Livecode under Ventura?

2022-12-22 Thread Simon Knight via use-livecode
Richmond62 is using : ProductName: macOS, ProductVersion: 13.2, 
ProductVersionExtra: (a)
Stam is using : ProductName: macOS, ProductVersion: 13.0.1, BuildVersion: 22A400

Details from a log file that Richmond62 and Stam reported in the Forum thread.  
If I understand what Richmond has written in the thread Livecode was listed in 
the Privacy Pane and was enabled but my library reported "denied".  Stam's 
Livecode is not listed and never requests access.

I'm going the thread here : 
https://forums.livecode.com/viewtopic.php?f=9=37540=30

> On 22 Dec 2022, at 17:00, use-livecode-requ...@lists.runrev.com wrote:
> 
> What version LC? There was a version that was exhibiting this behavior, but 
> it was fixed. This may be a regression.

___
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: Anyone any experience with Livecode under Ventura?

2022-12-22 Thread matthias rebbe via use-livecode
Hi Simon,

do you have a sample stack i could test for you here? To be honest, i have no 
clue how to access the contacts or the calendar. So a sample stack would be 
fine.

Matthias

> Am 22.12.2022 um 10:01 schrieb Simon Knight via use-livecode 
> :
> 
> Well I've had issues with Ventura and how Livecode requests permission for 
> access to Contacts and Calendar data.  Unfortunately I don't have Ventura so 
> all this is second hand but hints that there are issues with how the Privacy 
> Pane works.  For example a stack running in the IDE and using a library that 
> requires access to Calendar fails to request permission yet the compiled 
> application does.
> ___
> 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: Anyone any experience with Livecode under Ventura?

2022-12-22 Thread Bob Sneidar via use-livecode
What version LC? There was a version that was exhibiting this behavior, but it 
was fixed. This may be a regression.

Bob S


On Dec 22, 2022, at 01:01 , Simon Knight via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Well I've had issues with Ventura and how Livecode requests permission for 
access to Contacts and Calendar data.  Unfortunately I don't have Ventura so 
all this is second hand but hints that there are issues with how the Privacy 
Pane works.  For example a stack running in the IDE and using a library that 
requires access to Calendar fails to request permission yet the compiled 
application does.

___
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


Anyone any experience with Livecode under Ventura?

2022-12-22 Thread Simon Knight via use-livecode
Well I've had issues with Ventura and how Livecode requests permission for 
access to Contacts and Calendar data.  Unfortunately I don't have Ventura so 
all this is second hand but hints that there are issues with how the Privacy 
Pane works.  For example a stack running in the IDE and using a library that 
requires access to Calendar fails to request permission yet the compiled 
application does.
___
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