Re: [ANN] Release 9.6.2 RC-3

2021-03-15 Thread Graham Samuel via use-livecode
I knew I was being stupid relying on the alphabet. Thanks Panos.

Graham

> On 15 Mar 2021, at 09:01, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Graham,
> 
>>>>> * and this particular LC version number isn’t in the list on the
> offline activation file tool. *
> 
> Are you sure? If I remember correctly, you have to scroll further down for
> the RC and DP versions
> 
> Kind regards,
> Panos
> --
> 
> 
> On Mon, 15 Mar 2021 at 10:48, Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Boring I know, but after a long download I can’t activate this
>> automatically, and this particular LC version number isn’t in the list on
>> the offline activation file tool.
>> 
>> Someone please tell me what I did wrong.
>> 
>> Graham
>> 
>>> On 12 Mar 2021, at 11:55, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Dear list members,
>>> 
>>> We are pleased to announce the release of LiveCode 9.6.2 RC-3.
>>> 
>>> 
>>> Getting the Release
>>> ===
>>> You can get the release at https://downloads.livecode.com/livecode/ or
>> via
>>> the automatic updater.
>>> 
>>> 
>>> Release Contents
>>> 
>>> LiveCode 9.6.2 RC-3 comes with 6 regression fixes, including:
>>> 
>>> - Visual effects doesn't work on macOS Big Sur
>>> - Cannot close "Ask Password" dialog as Sheet in modal stack
>>> - mergLA not included in 9.6.2 RC 2
>>> - PDF Widget broken on iOS device
>>> 
>>> For the full list of all fixes, updates and enhancements please see the
>>> release notes:
>>> 
>> http://downloads.livecode.com/livecode/9_6_2/LiveCodeNotes-9_6_2_rc_3.pdf
>>> 
>>> 
>>> Known issues
>>> 
>>> - The Browser widget's native layer is not shown in some Linux distros
>> with
>>> Cinnamon window manager.
>>> - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit
>> LTS
>>> yet.
>>> 
>>> 
>>> Required Software
>>> =
>>> To build iOS apps with LiveCode you must have the appropriate versions of
>>> Xcode as follows:
>>> 
>>> - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS
>> 12.1
>>> SDK
>>> - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS
>>> 13.2 SDK
>>> - macOS 10.15.4+: Xcode 12.1.x - LiveCode builds iOS apps using the iOS
>>> 14.1 SDK
>>> 
>>> There is a full list of working LiveCode/macOS/Xcode combinations here:
>>> https://livecode.com/docs/9-5-0/faq/faq/
>>> 
>>> Note: Whilst we endeavour to release updated versions of LiveCode
>>> supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly
>>> recommend disabling automatic update of Xcode or downloading the specific
>>> version of Xcode required directly from the Apple developer portal and
>>> installing it separately.
>>> 
>>> Important: From the end of June 2020, Apple is only accepting apps built
>>> using iOS13 SDKs. This means that, if you wish to submit apps to the
>>> AppStore you will have to be running at least macOS 10.14 in order to be
>>> able to install the necessary version of Xcode.
>>> 
>>> 
>>> Feedback
>>> 
>>> Please report any bugs encountered on our quality center at
>>> http://quality.livecode.com/
>>> 
>>> We have a forum available for discussing LiveCode Builder at
>>> http://forums.livecode.com/viewforum.php?f=93
>>> 
>>> 
>>> Have fun!
>>> The LiveCode Team
>>> 
>>> 
>>> --
>>> ___
>>> 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: [ANN] Release 9.6.2 RC-3

2021-03-15 Thread Graham Samuel via use-livecode
Boring I know, but after a long download I can’t activate this automatically, 
and this particular LC version number isn’t in the list on the offline 
activation file tool. 

Someone please tell me what I did wrong.

Graham

> On 12 Mar 2021, at 11:55, panagiotis merakos via use-livecode 
>  wrote:
> 
> Dear list members,
> 
> We are pleased to announce the release of LiveCode 9.6.2 RC-3.
> 
> 
> Getting the Release
> ===
> You can get the release at https://downloads.livecode.com/livecode/ or via
> the automatic updater.
> 
> 
> Release Contents
> 
> LiveCode 9.6.2 RC-3 comes with 6 regression fixes, including:
> 
> - Visual effects doesn't work on macOS Big Sur
> - Cannot close "Ask Password" dialog as Sheet in modal stack
> - mergLA not included in 9.6.2 RC 2
> - PDF Widget broken on iOS device
> 
> For the full list of all fixes, updates and enhancements please see the
> release notes:
> http://downloads.livecode.com/livecode/9_6_2/LiveCodeNotes-9_6_2_rc_3.pdf
> 
> 
> Known issues
> 
> - The Browser widget's native layer is not shown in some Linux distros with
> Cinnamon window manager.
> - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS
> yet.
> 
> 
> Required Software
> =
> To build iOS apps with LiveCode you must have the appropriate versions of
> Xcode as follows:
> 
>  - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1
> SDK
>  - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS
> 13.2 SDK
>  - macOS 10.15.4+: Xcode 12.1.x - LiveCode builds iOS apps using the iOS
> 14.1 SDK
> 
> There is a full list of working LiveCode/macOS/Xcode combinations here:
> https://livecode.com/docs/9-5-0/faq/faq/
> 
> Note: Whilst we endeavour to release updated versions of LiveCode
> supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly
> recommend disabling automatic update of Xcode or downloading the specific
> version of Xcode required directly from the Apple developer portal and
> installing it separately.
> 
> Important: From the end of June 2020, Apple is only accepting apps built
> using iOS13 SDKs. This means that, if you wish to submit apps to the
> AppStore you will have to be running at least macOS 10.14 in order to be
> able to install the necessary version of Xcode.
> 
> 
> Feedback
> 
> Please report any bugs encountered on our quality center at
> http://quality.livecode.com/
> 
> We have a forum available for discussing LiveCode Builder at
> http://forums.livecode.com/viewforum.php?f=93
> 
> 
> Have fun!
> The LiveCode Team
> 
> 
> --
> ___
> 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: Which Monitor to Open LC In

2021-02-23 Thread Graham Samuel via use-livecode
Works for me on OS11.2.1 (Big Sur) on my MacBook out of the box. The actual 
text shown is “Assign to desktop on” and then “Display 1” or “Display 2”.

> On 23 Feb 2021, at 16:36, Devin Asay via use-livecode 
>  wrote:
> 
> Roger,
> 
> Perhaps you need to set up Spaces first?
> 
> - Devin
> 
>> On Feb 22, 2021, at 10:52 PM, Roger Guay via use-livecode 
>>  wrote:
>> 
>> Hmmm, I don’t have that option!?? I’m using LC 9.6.1 in OS 11.2 What is your 
>> config?
>> 
>> Thanks Paul!
>> 
>> Roger
>> 
>>> On Feb 22, 2021, at 8:48 PM, Paul Hibbert via use-livecode 
>>>  wrote:
>>> 
>>> Right-click (ctrl-click) on the LC icon in the dock and choose “Options” 
>>> then select “Assign to Desktop on Display 1”, should do it.
>>> 
>>> Paul
>>> 
 On 22Feb, 2021, at 7:47 PM, Roger Guay via use-livecode 
  wrote:
 
 I have a MBP with an external monitor. Does anybody know how to force LC 
 to open on the internal display and not the external? It suddenly switched 
 on me and I can’t figure out why or how to control it. BTW, the external 
 monitor is arranged to be above the MBP display.
 
 Thanks,
 Roger
> 
> Devin Asay
> Director
> Office of Digital Humanities
> 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: Wasm and the LC Roadmap

2021-02-17 Thread Graham Samuel via use-livecode
Well done Klaus, I was still Googling it! I am in fact looking at articles 
(e.g. https://blog.bitsrc.io/whats-wrong-with-web-assembly-3b9abb671ec2 
)  that 
suggest that despite some very significant users (Google Earth is one), wasm 
hasn’t exactly conquered the universe in the three years since it was launched.

Would LC users benefit and/or would it be a massive diversion of scarce 
development effort? Anyone have any idea?

Graham

> On 17 Feb 2021, at 15:19, Klaus major-k via use-livecode 
>  wrote:
> 
> To all who are also not familiar witht the gazillion abbreviations,
> David is talking about -> WebaSseMbly :-)
> 
>> Am 17.02.2021 um 16:13 schrieb David Bovill via use-livecode 
>> :
>> 
>> Anyone know the wasm plans?
>> 
>> I’m Woking on a project in collaboration with a number of other platforms 
>> and partners that are using wasm. Would like to play in the same place with 
>> LiveCode.
>> 
>>  
>>
>>  ***
>>  
>>   
>>  \\   //  
>>   \\\//  ***
>> \\\
>>  |||//   ,
>>  |__/
>> ,,,//\,,o==o
>> ;
>> 
>> Schedule a meeting using this link.
>> Writing and media work on Media Garden.
>> 
>> LinkedIn: David Bovill
> 
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> 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: Double sided PDF Problem

2021-01-29 Thread Graham Samuel via use-livecode
I’m thinking (guessing) that he’s into the more general problem that you get 
when you are trying to print say a booklet with multiple pages of the book per 
printed sheet. You do have to print double-sided (and your printer may help you 
with that) but the key is lay it out so that page 2 of the booklet is at the 
back of page 1 etc. If for example you have an 8 page leaflet printed four up, 
the first - verso - physical page could be laid out like

1   3
5   7

and the other side of the paper - recto - would be laid out

4   2
8   6

People who print books etc are having to do this all the time, so it’s 
reasonable to assume that the problem has been encapsulated in a procedure by 
now. I won’t start with the links, since I don’t really know if this is the 
problem Brian is trying to solve.

Graham

> On 29 Jan 2021, at 06:21, J. Landman Gay via use-livecode 
>  wrote:
> 
> Right after I sent the message below, I think I understand what you meant. 
> You want to print double-sided pages of all the cards in a stack. Is that 
> right? On a regular printer you don't have to do anything special; if the 
> printer driver supports double-sided printing then it just works.
> 
> For PDFs, I'd have to check. What OS are you on?
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On January 28, 2021 11:59:01 PM "J. Landman Gay via use-livecode" 
>  wrote:
> 
>> I'm confused. Are you writing a card game with decks of cards? Or do you
>> mean the cards in a lC stack? What is "flipping the page"?
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On January 28, 2021 11:15:51 PM "Brian K. Duck via use-livecode"
>>  wrote:
>> 
>>> I’d like to print decks of cards, front and back
>>> 
>>> The front page is always easy.
>>> Cards print left to right: 1-3
>>> 
>>> Flipping the pages, in portrait layout, the cards are now face down, in
>>> order but reversed: 3,2, 1.
>>> 
>>> The problem is, printing 3 wide by 4 tall, aligining the two.
>>> 
>>> Any existing solutions or discussions?
>>> 
>>> Thanks for your time,
>>> Brian Duck
>>> Bduck at m@c dot 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: Threads in LC

2021-01-08 Thread Graham Samuel via use-livecode
On a purely personal note (does that make it OT?), I think I am beginning to 
accept, at a pretty advanced age, that just understanding LC coding is not 
really enough to get stuff done. Linux for example I have managed to avoid, and 
many other technologies… perhaps learning all this stuff is good use of one’s 
time in lockdown (I’m in the UK at the moment). Can’t spend all one’s time on 
the bike trainer…

So, Richard, if you have time to expand a bit on Linux virtual directories, I’d 
be grateful. But only if you have time.

Graham

> On 8 Jan 2021, at 07:19, Richard Gaskin via use-livecode 
>  wrote:
> 
> Peter Bogdanoff wrote:
> 
> > On Jan 7, 2021, at 3:07 PM, Richard Gaskin wrote:
> >
> >> Maybe.
> >>
> >> Does your Pi_gpio_output function use file I/O calls to the virtual
> >> file system in /run, or call an LCB or external using a lower-level
> >> interface for GPIO?
> >
> >
> > Maybe. Maybe not. In spite of all events, this may be the most
> > challenging, nay, inscrutable question I have seen this year.
> 
> From you I'll take that as a compliment. :)
> 
> If this is interesting I don't mind breaking that down for people who don't 
> yet spend as much time on the Raspberry Pi. Linux virtual directories are a 
> pretty nifty invention.
> 
> --
> 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


Bug 22999 - iOS location updates not received in the background

2021-01-04 Thread Graham Samuel via use-livecode
Panos, this was said to be “awaiting merge” on 9.6.1 GM. We’ve passed that 
point, but I don’t see anything in the QCC to suggest this actually happened.

Sorry to trouble you, but can you update me? This bug was a complete 
show-stopper for me and really anyone trying to write an iOS navigation app in 
LC. I just stopped working on my modest app more than a month ago...

Best

Graham
___
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 using Lottie animations?

2020-12-09 Thread Graham Samuel via use-livecode
I came across these recently, apparently JSON-based and cross-platform 
including mobiles. Could be useful, but I wonder how hard it would be to use 
them for an LC iOS app - the examples I’ve seen to things with Xcode and Swift 
which are out of my star.

Does anyone know?

https://lottiefiles.com/what-is-lottie 

Graham
___
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: iOS notification app goes into background doesn't seem to work

2020-11-26 Thread Graham Samuel via use-livecode
Hi Mark - glad you got an explanation.

I am still getting some anomalies in these notifications, and more importantly 
from my point of view I’m seeing problems with receiving sensor messages when 
the app goes into the background. Elanor thinks there is a bug there (tho so 
far unconfirmed - 22999). 

I will let this dog (or dogs) sleep until I hear more from the mother ship.

Graham

> On 25 Nov 2020, at 02:16, Mark Smith  wrote:
> 
> Hi Graham, figured it out. If I replace the app, and while developing I do 
> that pretty frequently, the first “WillBecomeActive” does not get detected 
> because the app has not yet registered for notifications. So over 48 hours I 
> saw 3 such events and while I did not record the times I installed, if I 
> replaced it 3 times then this data would make perfect sense. I hope that is 
> clear, and if not feel free to ask me to explain it better. But I think the 
> data indicate that everything is working A-OK.
> 
> Sorry for any confusion I might have caused, but at least I got to the bottom 
> of my own problem :)  I’ll send Elanor an email to confirm and let her know. 
> 
> Mark
> 
> 
>> On Nov 25, 2020, at 1:00 AM, Mark Smith  wrote:
>> 
>> Thanks Graham,
>> 
>> Nope, just checked and my quotes are not curly. Over a 48 hour period of 
>> testing, with multiple startups and shutdowns (33 in total, these were 
>> mostly in/out of background not actual exits and restarts) I only saw 3 
>> instances of a double shutdown notification 
>> (applicationWillResignActiveNotification) without an intervening startup 
>> (applicationDidBecomeActiveNotification) so it’s evidently a very small 
>> problem (10% ?). I’ll send the log to Elanor to let her know. From my 
>> perspective, not something I am going to fret about. 
>> 
>>> On Nov 24, 2020, at 10:18 PM, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> An very timely and helpful update from Elanor at the mother ship. My 
>>> problems with mergNotify were there because the string representing the 
>>> specific notification “UIApplicationWillResignActiveNotification” was in 
>>> curly quotes! I literally didn’t see this, and the script editor didn’t 
>>> report an error. It might have done something with the colorisation, but as 
>>> I’m partly colour blind I never take much notice of this aspect of scripts. 
>>> How the quotes got there is a mystery, as I thought I had simply copied 
>>> these lines of script from an earlier mail by Henry Lowe, but apparently 
>>> not. So, problem solved at the price of my red face.
>>> 
>>> The question about what being “in the background” actually means remains, 
>>> and I hope to have an answer for that soon. If I get any info I will send 
>>> it to the list as a new topic.
>>> 
>>> Elanor also said:
>>> 
>>>> I don't know if the issue Mark is seeing is the same one but if you are 
>>>> replying on the list just ask him to contact Support and I'll take a look 
>>>> at his stack too.
>>> 
>>> 
>>> 
>>> Graham
>>> 
>>>> On 23 Nov 2020, at 15:23, Graham Samuel via use-livecode 
>>>>  wrote:
>>>> 
>>>> Thanks Mark
>>>> 
>>>> Well, it does seem to be a bug, but is it in iOS or LC? It is weird that 
>>>> you get inconsistent results. Mine are more consistent, but still wrong. I 
>>>> plan to write to the mother ship and ask their opinion.
>>>> 
>>>> I am also getting perhaps related inconsistencies in the use of 
>>>> locationChanged messages to get GPS readings, or I think I am. It looks 
>>>> like sometimes when the app goes into the background it switches off the 
>>>> effect of
>>>> mobileStartTrackingSensor "location"
>>>> 
>>>> which a script can only do by calling mobileStopTrackingSensor.
>>>> 
>>>> The apparent effect is that GPS readings just stop coming in, although 
>>>> other activity (in my case, a stopwatch-like timer) continues without a 
>>>> break. I am haunted by the idea that I’ve made some mistake in coding, of 
>>>> course, but it I haven’t then I need to know somehow that the readings 
>>>> have stopped and correct the situation before gaps appear in the record, 
>>>> i.e. within about a second. Can’t do that if I’m not notified of the 
>>>> switch to the background.
>>>> 
>>>> I have tried to look at the iOS SDK documentation but have become 
>>>> terminally conf

Re: iOS notification app goes into background doesn't seem to work

2020-11-24 Thread Graham Samuel via use-livecode
An very timely and helpful update from Elanor at the mother ship. My problems 
with mergNotify were there because the string representing the specific 
notification “UIApplicationWillResignActiveNotification” was in curly quotes! I 
literally didn’t see this, and the script editor didn’t report an error. It 
might have done something with the colorisation, but as I’m partly colour blind 
I never take much notice of this aspect of scripts. How the quotes got there is 
a mystery, as I thought I had simply copied these lines of script from an 
earlier mail by Henry Lowe, but apparently not. So, problem solved at the price 
of my red face.

The question about what being “in the background” actually means remains, and I 
hope to have an answer for that soon. If I get any info I will send it to the 
list as a new topic.

Elanor also said:

> I don't know if the issue Mark is seeing is the same one but if you are 
> replying on the list just ask him to contact Support and I'll take a look at 
> his stack too.



Graham

> On 23 Nov 2020, at 15:23, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks Mark
> 
> Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you 
> get inconsistent results. Mine are more consistent, but still wrong. I plan 
> to write to the mother ship and ask their opinion.
> 
> I am also getting perhaps related inconsistencies in the use of 
> locationChanged messages to get GPS readings, or I think I am. It looks like 
> sometimes when the app goes into the background it switches off the effect of
>   mobileStartTrackingSensor "location"
> 
> which a script can only do by calling mobileStopTrackingSensor.
> 
> The apparent effect is that GPS readings just stop coming in, although other 
> activity (in my case, a stopwatch-like timer) continues without a break. I am 
> haunted by the idea that I’ve made some mistake in coding, of course, but it 
> I haven’t then I need to know somehow that the readings have stopped and 
> correct the situation before gaps appear in the record, i.e. within about a 
> second. Can’t do that if I’m not notified of the switch to the background.
> 
> I have tried to look at the iOS SDK documentation but have become terminally 
> confused - it seems to suggest that apps that go into the background are 
> suspended and ‘do not receive events’. If that’s so, how do timer and 
> navigation apps work? They still seem to be doing stuff even while the user 
> is using another app to read the news, make a phone call or whatever. There 
> must be a state between being active and just sitting in RAM and doing 
> nothing. What is that state called and how does one invoke it?
> 
> Over my head...
> 
> Graham
> 
>> On 22 Nov 2020, at 13:30, Mark Smith  wrote:
>> 
>> Hi Graham,
>> 
>> So, apparently not 100% accurate but here are the results of some late hour 
>> testing yesterday (I was also interested in evaluating something I needed to 
>> occur around the time the date changed, hence the late hour testing.). But 
>> as you can see, I had 3 ResignActiveNotifications before the first 
>> DidBecomeActive occurred. 
>> 
>> 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS
>> 
>> 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS
>> 
>> 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS
>> 
>> 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS
>> 
>> 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS
>> 
>> 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS
>> 
>> 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS
>> 
>> 
>> 
>>> On Nov 21, 2020, at 11:33 PM, Mark Smith >> <mailto:marksmith...@gmail.com>> wrote:
>>> 
>>> Graham, I think there might be a problem. I just re-enabled this code in 
>>> one of my applications and the only thing I am seeing is the 
>>> WillResignActiveNotification message, and not the 
>>> DidBecomeActiveNotification message. Odd also because it is the exact 
>>> opposite of what you are seeing, so we are both seeing half of the story, 
>>> just not the same half :) I’ll keep it enabled and see if I can spot any 
>>> patterns. 
>>> 
>>> Mark
>>> 
>>> 
>>>> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com>> 
>>>> wrote:
>>>> 
>>>> Thanks Mark
>>>> 
>>>> I tried exactly your suggestion. For me, the second notification appears 
>>>> ex

Re: iOS notification app goes into background doesn't seem to work

2020-11-23 Thread Graham Samuel via use-livecode
Thanks Mark

Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you 
get inconsistent results. Mine are more consistent, but still wrong. I plan to 
write to the mother ship and ask their opinion.

I am also getting perhaps related inconsistencies in the use of locationChanged 
messages to get GPS readings, or I think I am. It looks like sometimes when the 
app goes into the background it switches off the effect of
   mobileStartTrackingSensor "location"

which a script can only do by calling mobileStopTrackingSensor.

The apparent effect is that GPS readings just stop coming in, although other 
activity (in my case, a stopwatch-like timer) continues without a break. I am 
haunted by the idea that I’ve made some mistake in coding, of course, but it I 
haven’t then I need to know somehow that the readings have stopped and correct 
the situation before gaps appear in the record, i.e. within about a second. 
Can’t do that if I’m not notified of the switch to the background.

I have tried to look at the iOS SDK documentation but have become terminally 
confused - it seems to suggest that apps that go into the background are 
suspended and ‘do not receive events’. If that’s so, how do timer and 
navigation apps work? They still seem to be doing stuff even while the user is 
using another app to read the news, make a phone call or whatever. There must 
be a state between being active and just sitting in RAM and doing nothing. What 
is that state called and how does one invoke it?

Over my head...

Graham

> On 22 Nov 2020, at 13:30, Mark Smith  wrote:
> 
> Hi Graham,
> 
> So, apparently not 100% accurate but here are the results of some late hour 
> testing yesterday (I was also interested in evaluating something I needed to 
> occur around the time the date changed, hence the late hour testing.). But as 
> you can see, I had 3 ResignActiveNotifications before the first 
> DidBecomeActive occurred. 
> 
> 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS
> 
> 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS
> 
> 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS
> 
> 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS
> 
> 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS
> 
> 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS
> 
> 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS
> 
> 
> 
>> On Nov 21, 2020, at 11:33 PM, Mark Smith > <mailto:marksmith...@gmail.com>> wrote:
>> 
>> Graham, I think there might be a problem. I just re-enabled this code in one 
>> of my applications and the only thing I am seeing is the 
>> WillResignActiveNotification message, and not the 
>> DidBecomeActiveNotification message. Odd also because it is the exact 
>> opposite of what you are seeing, so we are both seeing half of the story, 
>> just not the same half :) I’ll keep it enabled and see if I can spot any 
>> patterns. 
>> 
>> Mark
>> 
>> 
>>> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> Thanks Mark
>>> 
>>> I tried exactly your suggestion. For me, the second notification appears 
>>> exactly as you say, but the first one doesn’t. It’s likely that I made a 
>>> silly mistake but I can’t see what it is. I put other stuff in the log, so 
>>> it’s not just a case of the text being overwritten. Obviously the app does 
>>> go into the background, since it is detected coming back to the foreground. 
>>> This test was on the Xcode simulator, but I got essentially the same 
>>> results on a real iPhone.
>>> 
>>> Strange.
>>> 
>>> Graham
>>> 
>>> 
>>>> On 20 Nov 2020, at 17:21, Mark Smith >>> <mailto:marksmith...@gmail.com>> wrote:
>>>> 
>>>> Hi Graham, you can put something like the following in your handlers and 
>>>> then check the log file to see when they were activated.  If you're using 
>>>> Xcode you can download your “sandbox”  to your device. You’ll find the log 
>>>> file in there. 
>>>> put the long time && "UIApplicationWillResignActiveNotification detected" 
>>>> & return after url ("file:" & specialFolderPath("documents") & "/log.txt")
>>>> 
>>>> for example…
>>>> 
>>>> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack 
>>>> Script
>>>> 10:57:23 AM UIApplicationDidBecomeActiveNotific

Re: iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Graham Samuel via use-livecode
Thanks Mark

I tried exactly your suggestion. For me, the second notification appears 
exactly as you say, but the first one doesn’t. It’s likely that I made a silly 
mistake but I can’t see what it is. I put other stuff in the log, so it’s not 
just a case of the text being overwritten. Obviously the app does go into the 
background, since it is detected coming back to the foreground. This test was 
on the Xcode simulator, but I got essentially the same results on a real iPhone.

Strange.

Graham


> On 20 Nov 2020, at 17:21, Mark Smith  wrote:
> 
> Hi Graham, you can put something like the following in your handlers and then 
> check the log file to see when they were activated.  If you're using Xcode 
> you can download your “sandbox”  to your device. You’ll find the log file in 
> there. 
> put the long time && "UIApplicationWillResignActiveNotification detected" & 
> return after url ("file:" & specialFolderPath("documents") & "/log.txt")
> 
> for example…
> 
> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script
> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script
> 
> 
> 
> 
>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Thanks to Mark Smith and Henry Lowe, I know that I’m supposed to set up 
>> mergNotify for two notifications as below.
>> 
>> I believe I’ve done this, and I’ve set a monitoring action (putting a text 
>> into a field) to show that these notifications have happened.
>> 
>> Of course it may be just me, but so far, I only seem to get the notification 
>> when the app comes back into the foreground (so logically it must have gone 
>> the background first),  but I just don’t get the ‘going in to the 
>> background' notification, or at least my monitoring doesn’t work.  Is there 
>> some trick of timing that I’ve missed?
>> 
>> Graham
>> 
>> 
>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> 
>>> 
>>> On iOS use mergNotify as below. Works well for me.
>>> 
>>> on openStack
>>> mergNotify "UIApplicationWillResignActiveNotification"
>>> mergNotify "UIApplicationDidBecomeActiveNotification"
>>> end openStack
>>> 
>>> on UIApplicationWillResignActiveNotification pUserInfo
>>> // Your code before the app goes to background
>>> -- your code here to handle going to the background
>>> end UIApplicationWillResignActiveNotification
>>> 
>>> on UIApplicationDidBecomeActiveNotification pUserInfo
>>> // Your code after the app comes back to foreground
>>> -- your code here to handle your app becoming active
>>> end UIApplicationDidBecomeActiveNotification
>>> 
>>> Henry
>> 
>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> And just a reminder that, under iOS, you’ll have to register to receive a “ 
>>> UIApplicationWillResignActiveNotification” message, and then write a 
>>> handler to respond to that (PS only register once in your stack script — I 
>>> learned the hard way). It’s documented under mergNotify in the dictionary 
>>> (with credit to Elanor for pointing this out to me when my “on 
>>> shutdownRequest” handlers were being ignored). 
>>> 
>>> Jacque, I believe this is what you are looking for to be notified when you 
>>> go into the background. I do some db cleanup at that time and it seems to 
>>> work.
>>> 
>>> Mark
>> 
>> ___
>> 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
> 

___
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


iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Graham Samuel via use-livecode
Thanks to Mark Smith and Henry Lowe, I know that I’m supposed to set up 
mergNotify for two notifications as below.

I believe I’ve done this, and I’ve set a monitoring action (putting a text into 
a field) to show that these notifications have happened.

Of course it may be just me, but so far, I only seem to get the notification 
when the app comes back into the foreground (so logically it must have gone the 
background first),  but I just don’t get the ‘going in to the background' 
notification, or at least my monitoring doesn’t work.  Is there some trick of 
timing that I’ve missed?

Graham


> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode 
>  wrote:
> 
> 
> 
> On iOS use mergNotify as below. Works well for me.
> 
> on openStack
> mergNotify "UIApplicationWillResignActiveNotification"
> mergNotify "UIApplicationDidBecomeActiveNotification"
> end openStack
> 
> on UIApplicationWillResignActiveNotification pUserInfo
> // Your code before the app goes to background
> -- your code here to handle going to the background
> end UIApplicationWillResignActiveNotification
> 
> on UIApplicationDidBecomeActiveNotification pUserInfo
> // Your code after the app comes back to foreground
> -- your code here to handle your app becoming active
> end UIApplicationDidBecomeActiveNotification
> 
> Henry

> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode 
>  wrote:
> 
> And just a reminder that, under iOS, you’ll have to register to receive a “ 
> UIApplicationWillResignActiveNotification” message, and then write a handler 
> to respond to that (PS only register once in your stack script — I learned 
> the hard way). It’s documented under mergNotify in the dictionary (with 
> credit to Elanor for pointing this out to me when my “on shutdownRequest” 
> handlers were being ignored). 
> 
> Jacque, I believe this is what you are looking for to be notified when you go 
> into the background. I do some db cleanup at that time and it seems to work.
> 
> Mark

___
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: Suspend in iOS, or when is a mobile app running?

2020-11-18 Thread Graham Samuel via use-livecode
Thanks to all who replied on this topic - lots of this is new to me! So far, 
for me the big thing missing is how to **force** iOS to continue sending 
messages to the app in the background, or alternatively force iOS itself to ask 
the user the question when the app calls for location data for the first time. 
Although I have set the ‘experimental’  setting of Location Authorization Type 
to ‘Always' in my Sstandalone Application Settings, this  does not seem either 
to ensure access nor to force the message. Maybe wading around in the iOS SDK 
documentation will help, though somehow I doubt it.

To repeat myself, I have noticed that the following apps which I have used 
personally, don’t seem to get the OS to ask a question of the user, and yet 
they unfailingly continue to process the equivalent of locationChanged messages 
from the GPS when they’re in the background:

Strava
SityTrail
TomTom GO
GB & Parks

and presumably Google Maps and Apple’s own Maps.

They appear to run (i.e execute code, not just sit in RAM) while in the 
background.I just don’t know how they do it so consistently. 

It’s frustrating to try to solve a problem that’s obviously been solved many 
times before, but just happens not to be in the public domain. I am not sure I 
will live long enough to come out the other side of all this (I’m including the 
issue of tracking a route taking into account GPS inaccuracies and anomalies), 
but if I do, I’ll write it up.

Graham

> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode 
>  wrote:
> 
> And just a reminder that, under iOS, you’ll have to register to receive a “ 
> UIApplicationWillResignActiveNotification” message, and then write a handler 
> to respond to that (PS only register once in your stack script — I learned 
> the hard way). It’s documented under mergNotify in the dictionary (with 
> credit to Elanor for pointing this out to me when my “on shutdownRequest” 
> handlers were being ignored). 
> 
> Jacque, I believe this is what you are looking for to be notified when you go 
> into the background. I do some db cleanup at that time and it seems to work.
> 
> Mark
> 
> 
>> On Nov 17, 2020, at 6:54 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Android has always acted like this and now that iOS apps run in the 
>> background like Android does, it behaves the same way. At least our problems 
>> are cross-platform now.
>> 
>> An app will stay in RAM until the user specifically quits or until the OS 
>> needs the memory. When that happens, the OS wipes the app and it effectively 
>> shuts down. We get no warning, except for a shutDown message. Android 
>> recommends we store the last state of the app and restore it when it starts 
>> up again.
>> 
>> I'd love to get a message when the app goes into the background but so far 
>> there is none. Storing every little change as it happens seems tedious and 
>> wasteful. I haven't had much luck with storing changes on shutdown but it's 
>> worth a try, it's been a while since I did it.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On November 17, 2020 9:27:50 AM Graham Samuel via use-livecode 
>>  wrote:
>> 
>>> Sorry if this is documented somewhere but I can’t find it.
>>> 
>>> On desktop platforms, LC gives us “suspend” which is fired when the app 
>>> goes into the background. I seem to be having some problems with iOS, in 
>>> that when the screen locks (triggered by  user action or a time limit), my 
>>> app seems to stop getting messages from the OS, so is in some sense 
>>> suspended. This seems to call for something like “suspend” for mobiles. 
>>> Does such a message exist?
>>> 
>>> Another thing that happens with iOS apps that use Location Services is that 
>>> the user is sometimes asked via a popu-up on the screen of the device 
>>> whether the app should be allowed to use these services when it’s not 
>>> running. I don’t know what triggers these user messages, nor am exactly 
>>> certain what ‘not running’ means - presumably if the app has been properly 
>>> quit, that’s something other than ‘not running’. In the Standalone Settings 
>>> for mobile, one can set Location Services as being a requirement, but there 
>>> doesn’t seem to be a setting corresponding to this user choice.
>>> 
>>> Has anyone a clear understanding of all this? I would love to see an 
>>> explanation.
>>> 
>>> TIA
>>> 
>>> Graham
>>> ___
>>> use-livecode mailing list
>>> use-livecode@list

Suspend in iOS, or when is a mobile app running?

2020-11-17 Thread Graham Samuel via use-livecode
Sorry if this is documented somewhere but I can’t find it.

On desktop platforms, LC gives us “suspend” which is fired when the app goes 
into the background. I seem to be having some problems with iOS, in that when 
the screen locks (triggered by  user action or a time limit), my app seems to 
stop getting messages from the OS, so is in some sense suspended. This seems to 
call for something like “suspend” for mobiles. Does such a message exist?

Another thing that happens with iOS apps that use Location Services is that the 
user is sometimes asked via a popu-up on the screen of the device whether the 
app should be allowed to use these services when it’s not running. I don’t know 
what triggers these user messages, nor am exactly certain what ‘not running’ 
means - presumably if the app has been properly quit, that’s something other 
than ‘not running’. In the Standalone Settings for mobile, one can set Location 
Services as being a requirement, but there doesn’t seem to be a setting 
corresponding to this user choice.

Has anyone a clear understanding of all this? I would love to see an 
explanation.

TIA

Graham
___
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: Publishing Mac Apps

2020-11-17 Thread Graham Samuel via use-livecode
I agree (from limited experience I admit). The hassle referred to usually 
includes messages from the OS that many non-tech users will find mysterious, 
confusing and generally off-putting. Quite a lot of users don’t really 
understand the requirement to log in just to get some bit of software updated, 
let alone installed, so the burden then falls to the developer to write an 
essay explaining what the user has to do and sending it by email etc. Of course 
we all need security, but the whole thing has got out of hand IMHO. I think 
maybe Windows is worse, with its insistence on changing passwords after a time 
even if you’re working on an unconnected machine in the middle of nowhere…

Graham

> On 17 Nov 2020, at 07:02, John Balgenorth via use-livecode 
>  wrote:
> 
> I think that makes it easiest and safest for
> the end user.  If you did  not code sign the
> app they could probably still use it but it
> would be a hassle.
> 
> JB
> 
>> On Nov 16, 2020, at 9:52 PM, Bill Vlahos via use-livecode 
>>  wrote:
>> 
>> If I want to distribute Mac apps should I get a $99 Apple Developer account 
>> and Notarize them? I don’t anticipate putting apps in the Apple App Store?
>> 
>> Are there other considerations or options to avoid problems as Apple 
>> continues to enforce more restrictions?
>> 
>> Thanks,
>> Bill Vlahos
>> ___
>> 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


Sensor questions

2020-11-13 Thread Graham Samuel via use-livecode
A couple of more general questions about mobile sensor functions in LC.

1. The dictionary seems to offer messages only from those sensors which are 
associated with native sensors in the device such as an accelerometer. Suppose 
I have an external sensor, for example a heart monitor connected via Bluetooth 
- how do I access that?

2. If a script processes sensor input by responding to messages from the sensor 
as they come in (as for example it does with locationChanged messages 
associated with GPS), what happens when the processing time for the sensor 
message exceeds the time between sensor inputs? Is it necessary for the script 
to detect that an instance of the message is already running, or does LC itself 
inhibit this recursion-like behaviour? Up to now I have kind of dealt with this 
by limiting the processing of locationChanged messages via a timer, but this is 
not a general solution. Can anyone explain what happens - I think the answer 
lies in the message queue, which I don’t fully understand.

Graham
___
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: Ideas on iOS GPS tracking needed

2020-11-10 Thread Graham Samuel via use-livecode
Just a little more info for those that are interested. 

In general, it is extremely frustrating having to recreate a solution to a 
problem which has clearly been solved already many times. I can list several 
iOS apps which I use personally that appear to give reasonably accurate 
measures of how far someone has walked, run or cycled. Yet I still have not 
cracked the problem of inaccuracy which essentially causes all the trouble. 
Still trying, obviously.

I did come across an interesting document, an MSc thesis by Benjamin Bennett, a 
graduate student at the University of Oregon, written in 2018, entitled 
"Accurate Distance Calculation Using GPS While Performing Low Speed Activity “. 

https://scholarsbank.uoregon.edu/xmlui/bitstream/handle/1794/23827/Bennett_oregon_0171N_12262.pdf?sequence=1=y
 


Bennett used Android devices, using of course GPS coords, including speed. His 
preoccupations with walking and cycling were very relevant. He himself found 
that the raw GPS point-to-point calculation was pretty good, but I am having a 
really good look at his other methods. His use of speed is interesting: in 
general the speed data gave terrible results, except that it was a very 
accurate way of assessing that the user had stopped moving! This is needed 
because if you simple keep the phone stationary and measure successive GPS 
readings, the GPS inaccuracies cause variations which falsely add to the 
distance calculation. So it would be good to include “idling” detection, which 
he did.

[BTW, you can get the speed from the GPS in iOS in LC via mobileSensorReading, 
although it’s only mentioned in a footnote in the LC Dictionary. It’s an array 
element with the expected key “speed”. Minor update to the Dictionary needed.]

Sorry if all this seems tedious. Despite the frustrations, I still find it 
fascinating.

Graham

PS Kevin Willett did answer me, but he wasn’t very forthcoming about exactly 
how he filters out inaccuracies. Of course he was under no obligation to do so!

> On 4 Nov 2020, at 23:57, Graham Samuel  wrote:
> 
> Thanks Alan and Bob - I was beginning to think I was alone on this one…
> 
> Yes, I do look at horizontal accuracy. I found out the following using my 
> iPhone XS.
> 
> 1. Horizontal accuracy tends to be rather poor for the first 10 to 20 
> readings after activation, typically 65 metres. In context, a test walking 
> round my garden, which is about 110 x 60 meters, can quite often be woefully 
> inaccurate at the beginning.
> 
> 2. Even when has settled down it is still  quite variable, but tends to 
> settle to an average less than 10 metres after a time.
> 
> 3. Occasionally it throws colossal anomalies, like 5000 metres, with a 
> corresponding crazy waypoint taking someone on foot right out of the park.
> 
> Of course I can catch the really big ones and ignore them, especially as they 
> are infrequent (maybe two or three in an hour’s walk); but on my tests, the 
> issue is the points that are a bit out, which can be fairly subtle - I mean 
> if you draw them on a map, they are obvious to the human eye, but detecting 
> them is quite difficult. For those, Bob’s idea is a good one, though of 
> course it works best after the trip has been going for while. Anyway, thanks, 
> I'm planning to use it. I agree seconds is the way to go - especially if the 
> app doesn’t know the intended speed (it might be walking, cycling or driving 
> for example). You can tell the user what you’re doing (some apps do this) but 
> I prefer not to ask the user to make that choice.
> 
> I just bought a little app from the App Store, GPSOdometer by Kevin Willett. 
> This does more or less what I want my app to do (it’s cosmetically quite 
> different), and it offers a “Filter Level” setting, which effectively allows 
> the user to decide how much horizontal (in)accuracy to accept. The level 
> varies between 0.05 and 2.00, where a higher number means a larger tolerance 
> of inaccuracies. I’ve written to Kevin to ask for a little more detail - of 
> course he doesn’t have to reply, but I hope he does.
> 
> I will come back to the list to say how I got on. You never know, this may 
> help others eventually.
> 
> Graham
> 
> PS The only test data I have been able to find for the XCode Simulator is a 
> bike ride in California which runs along giving a succession of GPS . It is 
> quite useful, but naturally it doesn’t involve anomalies.
> 
> 
>> On 3 Nov 2020, at 23:55, Bob Sneidar via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Seems to me if you are tracking linear movement, you need to average the 
>> trending values, say the last 5 or 10 reads, against a time base, and reject 
>> the ones outside an acceptable tolerance. You may reject some good data here 
>> and there, but something grossly outside tolerance should be pretty easy to 
>> grok.
>> 
>> Sounds 

Re: Is the DateFormat read only?

2020-11-07 Thread Graham Samuel via use-livecode
I am as confused as anyone else as to what you are trying to do, but just in 
case, this little function seems to work for me to get the ’standard’ UTC date 
format which I have to use in my app to put time stamps into GPX files. It 
apparently produces the correct time zone. Doubtless it could be more elegantly 
coded. 

Hope it helps - who knows?

Graham

function fUTCTime
   local t1,t2,t3
   -- this gets the current time and puts it into UTC format, i.e 
-MM-DDThh:mm:ssTZD
   put word 5 to 6 of the internet date into t3 -- we are interested in the 
time and time zone
   put the long time into t1
   convert t1 to dateItems -- format is ,m,d,h,m,s,day no.
   put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of 
t1) &"T" & word 1 of t3 into t2
   put word 2 of t3 into t1 -- the time zone indication
   get char 1 of t1 — the code for 0 (zero) is Z, apparently
   if it <> "+" and it <> "-“ then
  put "Z" after t2
   else
  put t1 after t2
   end if
   return t2
end fUTCTime

function f2digits theNum
-- add a leading zero. We don't check if there are more than two digits
   if number of chars of theNum = 1 then
  return ("0" & theNum)
   else
  return theNum
   end if
end f2digits


> On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode 
>  wrote:
> 
> I don't think it "strips" the TZ info - it simply ignores it. I think the key 
> phrase is in the dictionary as :
> 
>> *Note:* The *convert* command assumes all dates / times are in local time 
>> except for 'the seconds', which is taken to be universal time.
>> 
> So it assume syou date is in local time (regardless of the +0300), and 
> therefore your example returns + for you (I assume you're in the UK, or 
> equivalent,  now). It does the same for me, and returns the date with "+".
> 
> However, the same code run on my LC server (wherever on-rev is these days), 
> changes the +0300 to -0500 - i.e. it's taken as local time where the server 
> is.
> 
> 
> I assume you should be able to do something with the TimeZone library - but 
> I'm struggling to figure that out.
> 
>>local tNow
>>put the seconds into tNow
>>put FromUniversalTime(tNow,"US/Central") into tt
>>put tNow && tt
>>put FromUniversalTime(tNow,"US/Alaska") into tt
>>put CR & tt after msg
> gives me
> 
> 1604709030 1604709030
> 
> 1604709030
> 
> so I don't have a clue  what it was trying to do !?!
> 
> Alex.
> 
> On 06/11/2020 21:28, David Bovill via use-livecode wrote:
>> Why does:
>> 
>> get "Fri, 06 Nov 2020 10:57:37 +0300"
>> convert it to internet date
>> put it
>> 
>> — give
>> "Fri, 06 Nov 2020 10:57:37 +"
>> 
>> Just seems to strip the timezone info?
>> On 30 Oct 2020, 21:29 +, How to use LiveCode 
>> , wrote:
>>> ToUniversalTime
>> ___
>> 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


Issue with 'beep' on iOS

2020-11-07 Thread Graham Samuel via use-livecode
In my iOS app, I create a special beep sound, as explained in the LC Dictionary 
entry for ‘beep’. It works fine on the Simulator, but on a real phone, there’s 
no sound. Vibration works OK. I have not turned off sound on the phone, and I 
have checked to see if any other controls on the phone might be wrongly set but 
I can’t find any. Ring tones, system sounds, music and sounds from external 
sources work. I seem to remember it worked before I upgraded to iOS 14. Can 
anyone suggest what’s happening?
___
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: Ideas on iOS GPS tracking needed

2020-11-04 Thread Graham Samuel via use-livecode
Thanks Alan and Bob - I was beginning to think I was alone on this one…

Yes, I do look at horizontal accuracy. I found out the following using my 
iPhone XS.

1. Horizontal accuracy tends to be rather poor for the first 10 to 20 readings 
after activation, typically 65 metres. In context, a test walking round my 
garden, which is about 110 x 60 meters, can quite often be woefully inaccurate 
at the beginning.

2. Even when has settled down it is still  quite variable, but tends to settle 
to an average less than 10 metres after a time.

3. Occasionally it throws colossal anomalies, like 5000 metres, with a 
corresponding crazy waypoint taking someone on foot right out of the park.

Of course I can catch the really big ones and ignore them, especially as they 
are infrequent (maybe two or three in an hour’s walk); but on my tests, the 
issue is the points that are a bit out, which can be fairly subtle - I mean if 
you draw them on a map, they are obvious to the human eye, but detecting them 
is quite difficult. For those, Bob’s idea is a good one, though of course it 
works best after the trip has been going for while. Anyway, thanks, I'm 
planning to use it. I agree seconds is the way to go - especially if the app 
doesn’t know the intended speed (it might be walking, cycling or driving for 
example). You can tell the user what you’re doing (some apps do this) but I 
prefer not to ask the user to make that choice.

I just bought a little app from the App Store, GPSOdometer by Kevin Willett. 
This does more or less what I want my app to do (it’s cosmetically quite 
different), and it offers a “Filter Level” setting, which effectively allows 
the user to decide how much horizontal (in)accuracy to accept. The level varies 
between 0.05 and 2.00, where a higher number means a larger tolerance of 
inaccuracies. I’ve written to Kevin to ask for a little more detail - of course 
he doesn’t have to reply, but I hope he does.

I will come back to the list to say how I got on. You never know, this may help 
others eventually.

Graham

PS The only test data I have been able to find for the XCode Simulator is a 
bike ride in California which runs along giving a succession of GPS . It is 
quite useful, but naturally it doesn’t involve anomalies.


> On 3 Nov 2020, at 23:55, Bob Sneidar via use-livecode 
>  wrote:
> 
> Seems to me if you are tracking linear movement, you need to average the 
> trending values, say the last 5 or 10 reads, against a time base, and reject 
> the ones outside an acceptable tolerance. You may reject some good data here 
> and there, but something grossly outside tolerance should be pretty easy to 
> grok.
> 
> Sounds easy, huh? :-) But it really is. For a car moving at 60mph, obviously 
> the trend is going to be greater than a person walking, and slower than a 
> small airplane. For an alien spacecraft traveling at insane speeds and making 
> wild maneuvers, I’m afraid you are on your own. The tolerance can be a 
> percentage of the average of the last x reads or the last x seconds. Seconds 
> makes more sense to me since if you drop 2 or 3 reads it will skew the 
> averages significantly. That is likely how Google Maps does it.
> 
> Bob S
> 
> 
> On Nov 3, 2020, at 2:39 PM, Alan Stenhouse via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Hi Graham
> 
> Are you checking the horizontal accuracy of each reading? (It's part of the 
> array of data with your lat-longs, as well as speed, etc - though not on 
> every phone).
> 
> If not, try that and see if the anomalous readings are hugely out. From my 
> experience, that's normally the case. If so, the easiest thing is to drop 
> them in the short term, unless you get too many and then you may need to be a 
> bit fancier. If you do, would love to hear the solution that you come up with.
> 
> HTH, cheers
> 
> Alan
> 
> On 4 Nov 2020, at 3:30 am, Graham Samuel  > wrote:
> 
> From: Graham Samuel mailto:livf...@mac.com>>
> To: How to use LiveCode  >
> Subject: Ideas on iOS GPS tracking needed
> Message-ID: <6c855814-1850-4975-b185-1731efcd6...@mac.com 
> >
> Content-Type: text/plain; charset=utf-8
> 
> Sorry this is a bit long.
> 
> For a long time I?ve been tinkering with an app that uses the GPS on iPhones 
> to show how far ?as the crow flies? the user is from some base point, which 
> is set before the journey starts. It?s intended for walkers and cyclists, and 
> I was using a beta version in the first French lockdown, which forbade one 
> walking more than 1km from one?s house. I put the completion of this aside, 
> but now we?re in the second French lockdown and it looks worth finishing - 
> but I have some issues which I believe are not just down to my bad coding 
> (though of course that?s more than possible), and I wonder if anyone else has 
> thought about this stuff.
> 
> The basic idea is 

Ideas on iOS GPS tracking needed

2020-11-02 Thread Graham Samuel via use-livecode
Sorry this is a bit long.

For a long time I’ve been tinkering with an app that uses the GPS on iPhones to 
show how far ‘as the crow flies’ the user is from some base point, which is set 
before the journey starts. It’s intended for walkers and cyclists, and I was 
using a beta version in the first French lockdown, which forbade one walking 
more than 1km from one’s house. I put the completion of this aside, but now 
we’re in the second French lockdown and it looks worth finishing - but I have 
some issues which I believe are not just down to my bad coding (though of 
course that’s more than possible), and I wonder if anyone else has thought 
about this stuff.

The basic idea is extremely simple, as you can imagine, and it wasn’t hard to 
code. The app keeps working out the point-to-point distance from the base and 
tests it against the permitted limit. If the limit is exceeded, it sounds an 
alarm. If the user goes back within the limit, the alarm stops. Everything else 
is just cosmetic, really.

The issue I have is that in every journey of say 40 minutes to an hour, the 
iPhone appears to generate a few ‘bad’ GPS readings. When I say bad, I mean way 
beyond the published accuracy of the GPS (which varies up to about 70m). 
Sometimes the GPS wants to tell me that I’ve walked half a kilometer in three 
seconds!

I have analysed a lot of data (.gpx files) from other apps for walkers, drivers 
and cyclists and I don’t see such glaring anomalies; and using such apps on my 
main test phone (an iPhone X), I don’t see these strange readings affecting the 
data.

Assuming this isn’t just a stupid coding error on my part (OK, a risky 
assumption), I need to find a solution, either by increasing the accuracy of 
the readings, or by finding the anomalies as they occur and eliminating them. I 
know no way of doing the first, and although I have ideas for the second (check 
apparent speed, for example), none seems foolproof. As the app works in real 
time, a retroactive curve-fitting solution is no good for me, even if my maths 
was up to coding it (Kalman filter, anyone?).

Has anyone tried anything like this, and if so, did you find any anomalies in 
the data, and how did you cope with them?

I’d be grateful for any ideas.

Graham
___
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: Is the DateFormat read only?

2020-10-29 Thread Graham Samuel via use-livecode
Jacque

Right as usual. I had forgotten about the internet date, if I ever knew. I 
suppose somewhere there is a little essay about all this but if so it is buried 
in the LC documentation.

The only souci with this format is that it gives the month in alpha, presumably 
according to the nationality of the OS. But it’s easy to get the numeric month 
in other ways. Still, it is just a little bit fiddly to create a full UTC date 
of the format:

-MM-DDThh:mm:ssTZD

Works OK now, just slightly more lines of code than I would have guessed.

Thanks (again).

Graham

> On 29 Oct 2020, at 18:15, J. Landman Gay via use-livecode 
>  wrote:
> 
> You can get the time zone, or at least the zone offset, by using "the 
> internet date".
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On October 29, 2020 8:21:46 AM Graham Samuel via use-livecode 
>  wrote:
> 
>> I understand it, but the Dictionary is misleading and in one case actually 
>> wrong: when it says the ’time’ form gives the seconds - it doesn’t. You need 
>> to use the ‘long time’, at least so it seems to me. I have submitted a bug 
>> report.
>> 
>> I also thought that I could use the ToUniversalTime function, but that 
>> assumes you already know the time zone. Although LC has a Time Zone library, 
>> I haven’t found any documentation explaining how an app can find out which 
>> Time Zone it’s actually in. In fact my app doesn’t care that much, so will 
>> stick to UTC.
>> 
>> The documentation around all this needs a bit of tidying up, IMHO.
>> 
>> Graham
>> 
>>> On 29 Oct 2020, at 12:07, Tore Nilsen via use-livecode 
>>>  wrote:
>>> 
>>> If you only use a date and  convert it, dateItems will assume the time to 
>>> be midnight on that particular date.
>>> 
>>> Tore
>>> 
>>>> 29. okt. 2020 kl. 12:04 skrev Graham Samuel via use-livecode 
>>>> :
>>>> 
>>>> Just FYI, I think the dictionary is wrong or misleading in respect of what 
>>>> the dateItems does. If you script this in the LC Message Box:
>>>> 
>>>> put the date into t1
>>>> convert t1 to dateItems
>>>> put t1
>>>> 
>>>> You get, e.g.
>>>> 2020,10,29,0,0,0,5
>>>> 
>>>> 
>>>> but if you script
>>>> 
>>>> put the english time into t1
>>>> convert t1 to dateItems
>>>> put t1
>>>> 
>>>> You get e.g.
>>>> 2020,10,29,11,40,0,5
>>>> 
>>>> i.e if you specify the date, you only get the date; but if you specify the 
>>>> time, you get the date thrown in. I could not deduce this from the 
>>>> Dictionary, but maybe I am just poor at reading what it says.
>>>> 
>>>> Graham
>>>> 
>>>>> On 29 Oct 2020, at 09:29, Graham Samuel via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Thanks Tore - I had forgotten the existence of dateItems. That of course 
>>>>> will do the trick. BTW I was trying to create dates in standard UTC 
>>>>> format, and now I can.
>>>>> 
>>>>> Graham
>>>>> 
>>>>>> On 28 Oct 2020, at 23:18, Tore Nilsen via use-livecode 
>>>>>>  wrote:
>>>>>> 
>>>>>> You can convert any given date to dateItems. Then you can use dateItems 
>>>>>> to present the date in any format you like. A date converted to 
>>>>>> dateItems will give you the following list of items:
>>>>>> 
>>>>>> the year
>>>>>> the month number
>>>>>> the day of the month
>>>>>> the hour in 24-hour time
>>>>>> the minute
>>>>>> the second
>>>>>> the numeric day of the week where Sunday is day 1, Monday is day 2, and 
>>>>>> so forth
>>>>>> All according to the Dictionary.
>>>>>> 
>>>>>> To be sure that any valid date format is recognized as a date when you 
>>>>>> read in the date you will like to convert, it is best to ask for the 
>>>>>> system date or set the useSystemDate to true, as this will make all 
>>>>>> valid date formats convert to dateItems.
>>>>>> 
>>>>>> Best regards
>>>>>> Tore Nilsen
>>>>>>> 28. okt. 2020 kl. 22:58 skrev Graham Samuel vi

Re: Is the DateFormat read only?

2020-10-29 Thread Graham Samuel via use-livecode
I understand it, but the Dictionary is misleading and in one case actually 
wrong: when it says the ’time’ form gives the seconds - it doesn’t. You need to 
use the ‘long time’, at least so it seems to me. I have submitted a bug report.

I also thought that I could use the ToUniversalTime function, but that assumes 
you already know the time zone. Although LC has a Time Zone library, I haven’t 
found any documentation explaining how an app can find out which Time Zone it’s 
actually in. In fact my app doesn’t care that much, so will stick to UTC.

The documentation around all this needs a bit of tidying up, IMHO.

Graham

> On 29 Oct 2020, at 12:07, Tore Nilsen via use-livecode 
>  wrote:
> 
> If you only use a date and  convert it, dateItems will assume the time to be 
> midnight on that particular date.
> 
> Tore
> 
>> 29. okt. 2020 kl. 12:04 skrev Graham Samuel via use-livecode 
>> :
>> 
>> Just FYI, I think the dictionary is wrong or misleading in respect of what 
>> the dateItems does. If you script this in the LC Message Box:
>> 
>> put the date into t1
>> convert t1 to dateItems
>> put t1
>> 
>> You get, e.g.
>> 2020,10,29,0,0,0,5
>> 
>> 
>> but if you script
>> 
>> put the english time into t1
>> convert t1 to dateItems
>> put t1
>> 
>> You get e.g.
>> 2020,10,29,11,40,0,5
>> 
>> i.e if you specify the date, you only get the date; but if you specify the 
>> time, you get the date thrown in. I could not deduce this from the 
>> Dictionary, but maybe I am just poor at reading what it says.
>> 
>> Graham
>> 
>>> On 29 Oct 2020, at 09:29, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> Thanks Tore - I had forgotten the existence of dateItems. That of course 
>>> will do the trick. BTW I was trying to create dates in standard UTC format, 
>>> and now I can.
>>> 
>>> Graham
>>> 
>>>> On 28 Oct 2020, at 23:18, Tore Nilsen via use-livecode 
>>>>  wrote:
>>>> 
>>>> You can convert any given date to dateItems. Then you can use dateItems to 
>>>> present the date in any format you like. A date converted to dateItems 
>>>> will give you the following list of items: 
>>>> 
>>>> the year
>>>> the month number
>>>> the day of the month
>>>> the hour in 24-hour time
>>>> the minute
>>>> the second
>>>> the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
>>>> forth
>>>> All according to the Dictionary.
>>>> 
>>>> To be sure that any valid date format is recognized as a date when you 
>>>> read in the date you will like to convert, it is best to ask for the 
>>>> system date or set the useSystemDate to true, as this will make all valid 
>>>> date formats convert to dateItems.
>>>> 
>>>> Best regards
>>>> Tore Nilsen
>>>>> 28. okt. 2020 kl. 22:58 skrev Graham Samuel via use-livecode 
>>>>> :
>>>>> 
>>>>> A quick test seems to show that the DateFormat can’t be changed by a 
>>>>> ‘set’ command.
>>>>> 
>>>>> How then can I force a date to be in a given format? I’m really thinking 
>>>>> of the difference between US and European dates, i.e
>>>>> 
>>>>> d/m/y versus m/d/y
>>>>> 
>>>>> Obviously for some types of use, an LC program should be able to force 
>>>>> the format for consistency’s sake, regardless of where in the world it’s 
>>>>> being run.
>>>>> 
>>>>> Can it be done?
>>>>> 
>>>>> Graham
>>>>> ___
>>>>> 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
> 
> 
> ___
> 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: Is the DateFormat read only?

2020-10-29 Thread Graham Samuel via use-livecode
Just FYI, I think the dictionary is wrong or misleading in respect of what the 
dateItems does. If you script this in the LC Message Box:

put the date into t1
convert t1 to dateItems
put t1

You get, e.g.
2020,10,29,0,0,0,5


but if you script

put the english time into t1
convert t1 to dateItems
put t1

You get e.g.
2020,10,29,11,40,0,5

i.e if you specify the date, you only get the date; but if you specify the 
time, you get the date thrown in. I could not deduce this from the Dictionary, 
but maybe I am just poor at reading what it says.

Graham

> On 29 Oct 2020, at 09:29, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks Tore - I had forgotten the existence of dateItems. That of course will 
> do the trick. BTW I was trying to create dates in standard UTC format, and 
> now I can.
> 
> Graham
> 
>> On 28 Oct 2020, at 23:18, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> You can convert any given date to dateItems. Then you can use dateItems to 
>> present the date in any format you like. A date converted to dateItems will 
>> give you the following list of items: 
>> 
>> the year
>> the month number
>> the day of the month
>> the hour in 24-hour time
>> the minute
>> the second
>> the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
>> forth
>> All according to the Dictionary.
>> 
>> To be sure that any valid date format is recognized as a date when you read 
>> in the date you will like to convert, it is best to ask for the system date 
>> or set the useSystemDate to true, as this will make all valid date formats 
>> convert to dateItems.
>> 
>> Best regards
>> Tore Nilsen
>>> 28. okt. 2020 kl. 22:58 skrev Graham Samuel via use-livecode 
>>> :
>>> 
>>> A quick test seems to show that the DateFormat can’t be changed by a ‘set’ 
>>> command.
>>> 
>>> How then can I force a date to be in a given format? I’m really thinking of 
>>> the difference between US and European dates, i.e
>>> 
>>> d/m/y versus m/d/y
>>> 
>>> Obviously for some types of use, an LC program should be able to force the 
>>> format for consistency’s sake, regardless of where in the world it’s being 
>>> run.
>>> 
>>> Can it be done?
>>> 
>>> Graham
>>> ___
>>> 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: Is the DateFormat read only?

2020-10-29 Thread Graham Samuel via use-livecode
Thanks Tore - I had forgotten the existence of dateItems. That of course will 
do the trick. BTW I was trying to create dates in standard UTC format, and now 
I can.

Graham

> On 28 Oct 2020, at 23:18, Tore Nilsen via use-livecode 
>  wrote:
> 
> You can convert any given date to dateItems. Then you can use dateItems to 
> present the date in any format you like. A date converted to dateItems will 
> give you the following list of items: 
> 
> the year
> the month number
> the day of the month
> the hour in 24-hour time
> the minute
> the second
> the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
> forth
> All according to the Dictionary.
> 
> To be sure that any valid date format is recognized as a date when you read 
> in the date you will like to convert, it is best to ask for the system date 
> or set the useSystemDate to true, as this will make all valid date formats 
> convert to dateItems.
> 
> Best regards
> Tore Nilsen
>> 28. okt. 2020 kl. 22:58 skrev Graham Samuel via use-livecode 
>> :
>> 
>> A quick test seems to show that the DateFormat can’t be changed by a ‘set’ 
>> command.
>> 
>> How then can I force a date to be in a given format? I’m really thinking of 
>> the difference between US and European dates, i.e
>> 
>> d/m/y versus m/d/y
>> 
>> Obviously for some types of use, an LC program should be able to force the 
>> format for consistency’s sake, regardless of where in the world it’s being 
>> run.
>> 
>> Can it be done?
>> 
>> Graham
>> ___
>> 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


Is the DateFormat read only?

2020-10-28 Thread Graham Samuel via use-livecode
A quick test seems to show that the DateFormat can’t be changed by a ‘set’ 
command.

How then can I force a date to be in a given format? I’m really thinking of the 
difference between US and European dates, i.e

d/m/y versus m/d/y

Obviously for some types of use, an LC program should be able to force the 
format for consistency’s sake, regardless of where in the world it’s being run.

Can it be done?

Graham
___
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: Naive XML questions

2020-10-26 Thread Graham Samuel via use-livecode
Thanks to all who replied, but Ken - you are spot on! I simply had no idea how 
to address an individual node. I am not keen to use any method other than the 
ones which already exist in the XML library, so this is the way for me. 

One can sometimes (often, if I’m honest) be stymied by some very basic lack of 
knowledge. It reminds me vaguely of some consumer tests which were done on (I 
think) early IBM PCs. The researchers wanted to know how the new users got on 
with the machine, how productive it was for them etc, but they soon found that 
the most common issue was how to switch the machine on! In explaining stuff, we 
neglect the basics at our peril.

Graham

> On 25 Oct 2020, at 23:29, Ken Ray  wrote:
> 
> Graham, here's the basic approach (assuming your XML is in the variable 
> 'tXML'):
> 
>   put revXMLCreateTree(tXML,false,true,false) into tTreeID
>   put  "/gpx/trk/trkseg/trkpt[1]" into tNode  -- the brackets identify 
> the instance of "trkpt" to work with
>   put revXMLAttribute(tTreeID, tNode,"lon") into tLonValue
>   put revXMLNodeContents(tTreeID,(tNode & "/ele")) into tEleValue
>   put tLonValue && "/" && tEleValue
> 
> >> 2.128369 / 169.623637
> 
> So to work with the third instance of "trkpt", you'd do:
> 
>       put  "/gpx/trk/trkseg/trkpt[3]" into tNode
> 
> Hope this helps,
> 
> Ken
> 
> 
>> On Oct 25, 2020, at 12:21 PM, Graham Samuel via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> I feel stupid, but even with Sarah Reichelt’s help, there are very very 
>> simple things I can’t do with the LC XML functions. My current problem is 
>> this:
>> 
>> I have a series of XML files which are in fact .gpx files - a collection of 
>> GPS coordinates representing a route on the Earth’s surface. There are 
>> thousands of files around which I can use as test data, so I don’t have to 
>> roll my own. Taking just one of these examples, I can do the following in LC
>> 
>> 1. Get the user to find the file and download it
>> 
>> 2. Check it’s a .gpx file
>> 
>> 3. Turn it into an LC XML data structure with an integer ID
>> 
>> 4. Find out how many child nodes there are.
>> 
>> Then it all goes wrong, because I don’t seem to be able to address the 
>> individual nodes. This is obviously needed for further progress, in 
>> functions like revXMLFirstChild  and revXMLNodeContents.
>> 
>> I just don’t know what format to use. Sarah’s tutorial doesn’t help because 
>> her data structure is too simplified.
>> 
>> If you’re still with me, this is what the beginning of a typical file looks 
>> like:
>> 
>>> 
>>> http://www.topografix.com/GPX/1/1 
>>> <http://www.topografix.com/GPX/1/1>" creator="Digital Crow" version="1.0" 
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
>>> <http://www.w3.org/2001/XMLSchema-instance>" 
>>> xsi:schemaLocation="http://www.topografix.com/GPX/1/1 
>>> <http://www.topografix.com/GPX/1/1> 
>>> http://www.topografix.com/GPX/1/1/gpx.xsd 
>>> <http://www.topografix.com/GPX/1/1/gpx.xsd>">
>>> 
>>> 
>>>   
>> 
>>> 
>>> 169.623637 
>> 
>>> 
>>> 169.744722 
>> 
>>> 
>>> 169.744722 
>> 
>>> 
>>> 169.266626 
>>> 
>> etc - there may sometimes be thousands of these “trkpt” elements.
>> 
>> So, suppose I want to get the first instance of the “lon” attribute into a 
>> local variable. How do I address the first  node etc in order to do it? 
>> I have attempted various common-sense methods, but none work.
>> 
>> This must be child’s play to a lot of people, just not me.
>> 
>> Hoping for some guidance.
>> 
>> Graham
>> ___
>> 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
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com <mailto:k...@sonsothunder.com>
> Website: https://www.sonsothunder.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


Naive XML questions

2020-10-25 Thread Graham Samuel via use-livecode
I feel stupid, but even with Sarah Reichelt’s help, there are very very simple 
things I can’t do with the LC XML functions. My current problem is this:

I have a series of XML files which are in fact .gpx files - a collection of GPS 
coordinates representing a route on the Earth’s surface. There are thousands of 
files around which I can use as test data, so I don’t have to roll my own. 
Taking just one of these examples, I can do the following in LC

1. Get the user to find the file and download it

2. Check it’s a .gpx file

3. Turn it into an LC XML data structure with an integer ID

4. Find out how many child nodes there are.

Then it all goes wrong, because I don’t seem to be able to address the 
individual nodes. This is obviously needed for further progress, in functions 
like revXMLFirstChild  and revXMLNodeContents.

I just don’t know what format to use. Sarah’s tutorial doesn’t help because her 
data structure is too simplified.

If you’re still with me, this is what the beginning of a typical file looks 
like:

> 
> http://www.topografix.com/GPX/1/1; creator="Digital Crow" 
> version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
> xsi:schemaLocation="http://www.topografix.com/GPX/1/1 
> http://www.topografix.com/GPX/1/1/gpx.xsd;>
>  
>  
>

> 
> 169.623637 

> 
> 169.744722 

> 
> 169.744722 

> 
> 169.266626 
> 
etc - there may sometimes be thousands of these “trkpt” elements.

So, suppose I want to get the first instance of the “lon” attribute into a 
local variable. How do I address the first  node etc in order to do it? I 
have attempted various common-sense methods, but none work.

This must be child’s play to a lot of people, just not me.

Hoping for some guidance.

Graham
___
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


In Praise of TROZ

2020-10-24 Thread Graham Samuel via use-livecode
Struggling for the first time in years with using XML in LC, I dug out Sarah 
Reichelt’s XML tutorial. Although as far as I know, Sarah moved away from LC 
long ago (when it was still Revolution), this seems to me the most 
comprehensive explanation of the XML library we have.

Sarah still appears as TrozWare and still develops apps for the Mac,and writes 
tutorials, for example for the Mac Swift system. That’s all I know about her - 
but she left us a legacy that I for one still appreciate!

Graham
___
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: LC iOS Command 'mergPopActivity'

2020-10-22 Thread Graham Samuel via use-livecode
The subject of this conversation is a bit wrong now, but I will keep so that 
the thread continues.

Looking at this a bit further, it looks like there is more than one scheme for 
getting one app to open another.

I find that the Dictionary entry for ‘launch url’ doesn’t quite conform to the 
example in the first link given by Bernard, at least not AFAIKS. The Dictionary 
says that if an app successfully launches another app in order to pass it a 
file, the originating app quits; but I don’t think the example shows that, and 
on a real iPhone for example, a little button appears on the top left of the 
screen allowing one to go back to the originating app. So I think the 
Dictionary is wrong and the example is right, but of course I will try it. 

It’s also stated in the Dictionary that you can launch a file, and the OS will 
attempt to open a ‘default' app that accepts that sort of file. Of course there 
may be many such apps for common formats like text, but there will be one 
chosen by the OS as the default. Again, one needs to experiment.

What it doesn’t say in the example or in the dictionary is how to find the 
equivalent of a Custom URL for an existing app (not an LC app) and thus avoid 
the problem that one may not wish to use the default app to process one’s data.

As ever, I would be very happy for guidance and meanwhile will go on 
experimenting. (This is in part, I admit, displacement activity since my real 
priority is plunging back into the iOS App Deployment system, that gives me the 
jitters every time.)

Graham

> On 22 Oct 2020, at 10:48, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks Bernard - looks very promising! I will experiment. Means a lot of 
> installation into an actual phone, I think, due to the limitations of the 
> Xcode simulator (can’t load existing apps)..
> 
> Very helpful
> 
> Graham
> 
>> On 22 Oct 2020, at 01:08, Bernard Devlin via use-livecode 
>>  wrote:
>> 
>> Hi Graham
>> 
>> I wondered if this information is of use.  URL calls are not limited to
>> "http://;.
>> 
>> Having a LC app respond to a URL call:
>> http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
>> 
>> Apps and their URL schemas:
>> https://ios.gadgethacks.com/news/always-updated-list-ios-app-url-scheme-names-0184033/
>> 
>> Regards
>> Bernard
>> 
>> On Wed, Oct 21, 2020 at 4:33 PM Graham Samuel via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> So far I have not found out how to invoke another app directly from inside
>>> an iOS app, although I think I can invoke a browser using a URL. Perhaps
>>> this is easier than I thought. Will report.
>>> 
>>> Graham
>>> 
>>> 
>>> 
>> ___
>> 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: LC iOS Command 'mergPopActivity'

2020-10-22 Thread Graham Samuel via use-livecode
Thanks Bernard - looks very promising! I will experiment. Means a lot of 
installation into an actual phone, I think, due to the limitations of the Xcode 
simulator (can’t load existing apps)..

Very helpful

Graham

> On 22 Oct 2020, at 01:08, Bernard Devlin via use-livecode 
>  wrote:
> 
> Hi Graham
> 
> I wondered if this information is of use.  URL calls are not limited to
> "http://;.
> 
> Having a LC app respond to a URL call:
> http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes
> 
> Apps and their URL schemas:
> https://ios.gadgethacks.com/news/always-updated-list-ios-app-url-scheme-names-0184033/
> 
> Regards
> Bernard
> 
> On Wed, Oct 21, 2020 at 4:33 PM Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
> So far I have not found out how to invoke another app directly from inside
>> an iOS app, although I think I can invoke a browser using a URL. Perhaps
>> this is easier than I thought. Will report.
>> 
>> Graham
>> 
>> 
>> 
> ___
> 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: LC iOS Command 'mergPopActivity'

2020-10-21 Thread Graham Samuel via use-livecode
A little progress report.

Elanor has come up with a solid answer to my original question, which was how 
to use the mergPopActivity command to break out of an iOS app sandbox by 
offering a file to the external world (such as the “Files” folder) on iOS 
systems. Basically, if you put a file in say the documents folder within your 
app and make a path tPath to it, then if the file’s name is in tFileName,
   mergPopActivity tFileName,,("file:" & tPath)

will open the model window and allow the user to put the file into “Files” 
folder, email it etc

So far I have not found out how to invoke another app directly from inside an 
iOS app, although I think I can invoke a browser using a URL. Perhaps this is 
easier than I thought. Will report.

Graham



> On 19 Oct 2020, at 11:14, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks very much for that. Sadly on a first look, in this particular case 
> there is little or no additional detail about the command. Nevertheless I 
> think there should be a link to the Merg web site in the LC Dictionary itself.
> 
> I rely heavily on the Dictionary, and only venture elsewhere when I am 
> completely foxed, as with iOS Deployment, for me a nightmare compared with 
> simply coding and debugging.
> 
> It is also true that the Simulator is very limited, in particular in showing 
> what’s happening when things go wrong (silent failure being a factor which 
> has bitten me several times). Under the Simulator, my GPS-related app can 
> only use a couple of limited examples built in to Xcode.
> 
> Probably there is a way to roll your own, but only in the monstrous xCode 
> universe, so very different from the familiar environment of LC. I am really 
> too old to start learning all that stuff. Apart though from my own bruised 
> ego, there is the issue of one of the key USPs of LC - simplicity - being 
> damaged by the difficulty of deployment. I’m ranting, I suppose… will study 
> the Merg info, but sadly still need Elanor to ride to the rescue!
> 
> Graham
> 
>> On 19 Oct 2020, at 03:23, Andrew at MidWest Coast Media 
>>  wrote:
>> 
>> The limited documentation is at http://mergext.com/home/mergpop/ 
>> <http://mergext.com/home/mergpop/>
>> Glad to hear that Elanor might be working on some more documentation. This 
>> feature (like push notifications and mobile camera) are difficult to test 
>> since the emulator either doesn’t work or has extremely limited 
>> functionality.
>> 
>> I found this code snippet in an old project where I was taking a screenshot 
>> of part of the screen and trying to share to Facebook or Twitter.
>> 
>> export snapshot from rect tExportRect of this card to file tFilePath as PNG
>> 
>> mergPopActivity "Indiana On Tap just hooked me up!",tFilePath,”"
>> 
>> 
>> —Andrew Bell
>> 
>> 
>>> 
>>> Message: 13
>>> Date: Sun, 18 Oct 2020 12:58:50 +0200
>>> From: Graham Samuel mailto:livf...@mac.com>>
>>> To: How to use LiveCode >> <mailto:use-livecode@lists.runrev.com>>
>>> Subject: LC iOS Command 'mergPopActivity' [was Re: The iOS "Files"
>>> folder]
>>> Message-ID: <769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com 
>>> <mailto:769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com>>
>>> Content-Type: text/plain;   charset=utf-8
>>> 
>>> I have been trying to use this command, initially to allow an iOS app to 
>>> put something in the ?Files? folder on an iPhone, but I?m now more 
>>> interested in the whole idea of Activity Views and how to exploit them in 
>>> an iOS app. I believe that the LC ?mergPopActivity' command is a wrapper 
>>> for some function in the iOS native universe - connected with 
>>> ?UIActivityViewController', but so far I haven?t worked out which one, 
>>> since I don?t really understand much of Apple?s iOS Developer documentation 
>>> (I always hope that using LC removes the need to do so!).
>>> 
>>> Elanor Buchanan of the mother ship has been extremely helpful about this, 
>>> and has said she hopes to improve the almost non-existent documentation of 
>>> this command, but meanwhile I?m interested if anyone on this list has any 
>>> insights, as I?m quite stuck and don?t want to bug Elanor too much.
>>> 
>>> When you invoke the ?mergPopActivity' command in an LC script, it opens a 
>>> modal window which gives a gateway into services available on your device, 
>>> like email, printing, saving to ?Files?, sending to social media etc - it 
>>> depends on what your device is capable of, and the apps it ha

Re: LC iOS Command 'mergPopActivity'

2020-10-19 Thread Graham Samuel via use-livecode
Thanks very much for that. Sadly on a first look, in this particular case there 
is little or no additional detail about the command. Nevertheless I think there 
should be a link to the Merg web site in the LC Dictionary itself.

I rely heavily on the Dictionary, and only venture elsewhere when I am 
completely foxed, as with iOS Deployment, for me a nightmare compared with 
simply coding and debugging.

It is also true that the Simulator is very limited, in particular in showing 
what’s happening when things go wrong (silent failure being a factor which has 
bitten me several times). Under the Simulator, my GPS-related app can only use 
a couple of limited examples built in to Xcode.

Probably there is a way to roll your own, but only in the monstrous xCode 
universe, so very different from the familiar environment of LC. I am really 
too old to start learning all that stuff. Apart though from my own bruised ego, 
there is the issue of one of the key USPs of LC - simplicity - being damaged by 
the difficulty of deployment. I’m ranting, I suppose… will study the Merg info, 
but sadly still need Elanor to ride to the rescue!

Graham

> On 19 Oct 2020, at 03:23, Andrew at MidWest Coast Media 
>  wrote:
> 
> The limited documentation is at http://mergext.com/home/mergpop/ 
> 
> Glad to hear that Elanor might be working on some more documentation. This 
> feature (like push notifications and mobile camera) are difficult to test 
> since the emulator either doesn’t work or has extremely limited functionality.
> 
> I found this code snippet in an old project where I was taking a screenshot 
> of part of the screen and trying to share to Facebook or Twitter.
> 
> export snapshot from rect tExportRect of this card to file tFilePath as PNG
> 
> mergPopActivity "Indiana On Tap just hooked me up!",tFilePath,”"
> 
> 
> —Andrew Bell
> 
> 
>> 
>> Message: 13
>> Date: Sun, 18 Oct 2020 12:58:50 +0200
>> From: Graham Samuel mailto:livf...@mac.com>>
>> To: How to use LiveCode > >
>> Subject: LC iOS Command 'mergPopActivity' [was Re: The iOS "Files"
>>  folder]
>> Message-ID: <769b3120-fcf5-4ecb-9683-ac0a303e2...@mac.com 
>> >
>> Content-Type: text/plain;charset=utf-8
>> 
>> I have been trying to use this command, initially to allow an iOS app to put 
>> something in the ?Files? folder on an iPhone, but I?m now more interested in 
>> the whole idea of Activity Views and how to exploit them in an iOS app. I 
>> believe that the LC ?mergPopActivity' command is a wrapper for some function 
>> in the iOS native universe - connected with ?UIActivityViewController', but 
>> so far I haven?t worked out which one, since I don?t really understand much 
>> of Apple?s iOS Developer documentation (I always hope that using LC removes 
>> the need to do so!).
>> 
>> Elanor Buchanan of the mother ship has been extremely helpful about this, 
>> and has said she hopes to improve the almost non-existent documentation of 
>> this command, but meanwhile I?m interested if anyone on this list has any 
>> insights, as I?m quite stuck and don?t want to bug Elanor too much.
>> 
>> When you invoke the ?mergPopActivity' command in an LC script, it opens a 
>> modal window which gives a gateway into services available on your device, 
>> like email, printing, saving to ?Files?, sending to social media etc - it 
>> depends on what your device is capable of, and the apps it has loaded; so I 
>> believe that the LC command essentially implements the ?sharing? activity in 
>> iOS, which is usually invoked via an icon consisting of a square with a 
>> North-pointing arrow in it. 
>> 
>> So far so good, but I?ve only been able to do one thing so far, which is to 
>> offer a text string originating in the app to these various services. So far 
>> I have not been able to find a way to offer a file (for example, a file 
>> containing a text rather than the text itself - easy to generate within an 
>> app, but no luck in offering to email it etc). There is a ?URL? parameter 
>> but I can?t work out what it does.
>> 
>> Anyone got any clues or shall I apologise (again) to Elanor and ask her for 
>> more help?
>> 
>> Graham
>> 
>> --

___
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


LC iOS Command 'mergPopActivity' [was Re: The iOS "Files" folder]

2020-10-18 Thread Graham Samuel via use-livecode
I have been trying to use this command, initially to allow an iOS app to put 
something in the “Files” folder on an iPhone, but I’m now more interested in 
the whole idea of Activity Views and how to exploit them in an iOS app. I 
believe that the LC ‘mergPopActivity' command is a wrapper for some function in 
the iOS native universe - connected with ‘UIActivityViewController', but so far 
I haven’t worked out which one, since I don’t really understand much of Apple’s 
iOS Developer documentation (I always hope that using LC removes the need to do 
so!).

Elanor Buchanan of the mother ship has been extremely helpful about this, and 
has said she hopes to improve the almost non-existent documentation of this 
command, but meanwhile I’m interested if anyone on this list has any insights, 
as I’m quite stuck and don’t want to bug Elanor too much.

When you invoke the ‘mergPopActivity' command in an LC script, it opens a modal 
window which gives a gateway into services available on your device, like 
email, printing, saving to “Files”, sending to social media etc - it depends on 
what your device is capable of, and the apps it has loaded; so I believe that 
the LC command essentially implements the ‘sharing’ activity in iOS, which is 
usually invoked via an icon consisting of a square with a North-pointing arrow 
in it. 

So far so good, but I’ve only been able to do one thing so far, which is to 
offer a text string originating in the app to these various services. So far I 
have not been able to find a way to offer a file (for example, a file 
containing a text rather than the text itself - easy to generate within an app, 
but no luck in offering to email it etc). There is a ‘URL’ parameter but I 
can’t work out what it does.

Anyone got any clues or shall I apologise (again) to Elanor and ask her for 
more help?

Graham
___
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


Test, please ignore

2020-10-16 Thread Graham Samuel via use-livecode
One of my mails didn’t make it to the list, even though I re-sent it. Just 
checking if anything at all is coming through...
___
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: The iOS "Files" folder

2020-10-15 Thread Graham Samuel via use-livecode
Believe it or not, there is a class of apps that doesn’t need to use the 
internet. I’m thinking for example of apps meant to be used on a device such as 
a phone while it’s in motion or on a journey. Internet access isn’t guaranteed 
in many parts of the world. Although smart phones do have to make contact with 
the internet for many tasks, that imperative shouldn’t force one to include 
internet access in an app that has no other need for it. It’s that notion that 
made me want to break out of the sandbox locally, to allow local apps access to 
local data.

Just my two overpriced eurocents.

Graham
[sorry if I sent this twice, but the first try seems to have got lost]

> On 14 Oct 2020, at 16:24, Brian Milby via use-livecode 
>  wrote:
> 
> Apple has already provided a way forward for this.  Their current best 
> practice is for apps to store files in their Documents folder in iCloud.  
> This provides seamless access between multiple devices and data security 
> since it is not tied to the app remaining installed.
> 
> I briefly looked at the dev docs on this and it does take some work to 
> integrate.  The most complicated piece will be detecting and resolving 
> conflicts.  I think it would be a good feature request just not sure how to 
> do the conflict resolution piece.  The mechanics of putting and getting a 
> file are not that bad.
> 
> Sent from my iPhone
> 
>> On Oct 13, 2020, at 8:42 PM, John Balgenorth via use-livecode 
>>  wrote:
>> 
>> One my iPad I have everything turned on for iCloud and I am
>> sure everything is backed up with my backup file.  I do not
>> see all of my individual files when I access icloud except for
>> ones I added through a different means than the application.
>> 
>> The issue of apps becoming outdated and any files being
>> locked in with the app is serious to me.  Not a big issue to
>> solve if Apple wants to.
>> 
>> JB
>> 
>>> On Oct 13, 2020, at 8:24 AM, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> I’ll have to take issue with that one. If your device is set to sync to 
>>> the cloud, your notes will be preserver. There’s no unlikely about it. The 
>>> only way they would not sync is if you had sync turned off for notes. In 
>>> that case it is not only likely but certain you will lose any new data 
>>> since sync was disabled.
>>> 
>>> If it did not work this way, iCould would die a quick and horrible death.
>>> 
>>> Bob S
>>> 
>>> 
>>> On Oct 12, 2020, at 3:09 PM, John Balgenorth via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> wrote:
>>> 
>>> Most likely it will not be saved to the
>>> icloud independently so the files you have for that app even
>>> though they exist with the app on your icloud backup will be
>>> deleted with the app.
>>> 
>>> ___
>>> 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: The iOS "Files" folder

2020-10-13 Thread Graham Samuel via use-livecode
Elanor has given me some more information about the very poorly documented 
mergPropActivity - I don’t know how to get someone who really understands it to 
provide meaningful documentation. Meanwhile, thanks to Elanor, I can generate a 
text file within my iOS app and can have a button within the app that opens 
‘activity view’ on the phone which allows the user to save the file to the 
“Files” folder outside of the app, or into iCloud, so outside the sandbox; one 
can also copy to the clipboard, also outside the sandbox. Before asking Support 
I had never heard of activity views, which seem to be iOS only. 

It looks from the minimum documentation I have that you could do much the same 
with an image, but I have not tried it. The various options available to the 
user in these circumstances presumably change with the file type, although I am 
not sure of this. The test application that Elanor gave me did not allow the 
user to email the text for example, but I have absolutely no idea why.

It seems strange to have such a sophisticated degree of functionality available 
and then apparently no adequate instructions as to how it works, the external 
context, or indeed the full range of options for its parameters. Should I raise 
this lack of documentation as a bug?

Graham

> On 12 Oct 2020, at 21:34, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Graham,
> 
> You can write to your own app’s preference’s folder.
> Due to sandboxing Apple doesn’t want you writing
> stuff elsewhere.  You can sometimes write to special
> folders, I don’t know the list off of the top of my head
> however.
> 
> Keep us informed of your progress.
> 
> Rick
> 
>> On Oct 12, 2020, at 1:19 PM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> I am getting a bit nearer answering my own question, or at least having it 
>> answered by the mother ship. Elanor Buchanan has introduced me to 
>> ‘MergPopActivity’ but so far I am just too ignorant to use it. Hopefully 
>> I’ll have more information soon. Meanwhile it would be interesting to know 
>> if anyone on this list has ever used it.
>> 
>> Graham
> 
> ___
> 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: The iOS "Files" folder

2020-10-12 Thread Graham Samuel via use-livecode
I am getting a bit nearer answering my own question, or at least having it 
answered by the mother ship. Elanor Buchanan has introduced me to 
‘MergPopActivity’ but so far I am just too ignorant to use it. Hopefully I’ll 
have more information soon. Meanwhile it would be interesting to know if anyone 
on this list has ever used it.

Graham

> On 10 Oct 2020, at 17:42, Graham Samuel via use-livecode 
>  wrote:
> 
> Is it possible to access (write to) the iOS “Files” folder from an iOS app? I 
> see that there is no specialFolderPath entry for it, but it appears that some 
> apps do allow saving to the folder, and one is then allowed to open such 
> files with an appropriate app. Basically I am thinking of giving the user a 
> chance to save a text file there for processing by other apps. The 
> alternative would involve the internet with all the tedious privacy rules 
> etc. and my particular app doesn’t have any other use for the internet at all.
> 
> Anyone tried it?
> 
> Graham
> ___
> 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


The iOS "Files" folder

2020-10-10 Thread Graham Samuel via use-livecode
Is it possible to access (write to) the iOS “Files” folder from an iOS app? I 
see that there is no specialFolderPath entry for it, but it appears that some 
apps do allow saving to the folder, and one is then allowed to open such files 
with an appropriate app. Basically I am thinking of giving the user a chance to 
save a text file there for processing by other apps. The alternative would 
involve the internet with all the tedious privacy rules etc. and my particular 
app doesn’t have any other use for the internet at all.

Anyone tried it?

Graham
___
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: Select text question

2020-10-08 Thread Graham Samuel via use-livecode
Jacque, that’s perfect. Where would I be without the knowledge and kindness 
displayed daily on this list!

Graham

> On 8 Oct 2020, at 18:58, J. Landman Gay via use-livecode 
>  wrote:
> 
> Untested, but try this:
> 
> on keyboardActivated
> select text of fld 
> end keyboardActivated
> 
> If you get a selection flash when it sets twice, remove the command from the 
> openField handler.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On October 8, 2020 7:47:46 AM Graham Samuel via use-livecode 
>  wrote:
> 
>> I want a user to key a number in a field in an iOS app. Normally the field 
>> will already contain data which the user will be replacing, so I coded this
>> 
>> on openField
>>  set the keyboardType of me to "numeric"
>>  select text of me
>> end openField
>> 
>> What happens is that the selection can be seen taking place briefly (this is 
>> in the Simulator) and then reverts to a flashing cursor with the original 
>> data still in the field and no selection shown. (The numeric keyboard does 
>> open BTW, but I can’t see that as relevant).
>> 
>> What did I do wrong?
>> 
>> Graham
>> ___
>> 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: Xcode, iOS 14 and Livecode

2020-10-08 Thread Graham Samuel via use-livecode
Ralph, thanks - it worked! I was taking the error messages too seriously. They 
say “the current device configuration is unsupported. This phone is running iOS 
14.0.1… “. Enough to stop me in my tracks.

Thanks so much for that.

Graham

> On 8 Oct 2020, at 19:44, Ralph DiMola via use-livecode 
>  wrote:
> 
> Graham,
> 
> If you referring to the message in the "Devices and Simulator" window can 
> ignore it. Just drag you .app in to window and it will work just fine.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Graham Samuel via use-livecode
> Sent: Thursday, October 08, 2020 12:03 PM
> To: How to use LiveCode
> Cc: Graham Samuel
> Subject: Xcode, iOS 14 and Livecode
> 
> I’ve come back to an iOS app that I left for a time, before the advent of iOS 
> 14. My beta version works very nicely in the Simulator available in Xcode 
> 11.5, which I understand is the one LC9.6.1 expects one to have. I’m 
> simulating an iPhone XS, largely because I’ve got one of thos,e so it makes a 
> good testbed.
> 
> The problem comes when I want to upload my beta to my real phone, which is 
> running iOS 14.0.1. Xcode wants me to update, presumably to the latest 
> version.
> 
> What are my options, e.g.
> 
> 1. Stop work
> 
> 2. Carry on developing using the simulator and hope for better times.
> 
> 3. Download another version of Xcode but keep the old one for LC development.
> 
> Of course I’ve looked for an answer from the mother ship, but although there 
> is a very interesting mail from Panos on the subject of different versions of 
> XCode and the way the work with LC, repeated in a Forum post in March, it 
> doesn’t cover the case I have now, AFAIKS. I just don’t know how to get my 
> app into my own phone - publishing the app in the Store will of course come 
> later.
> 
> What are other folks doing?
> 
> Graham
> ___
> 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


Xcode, iOS 14 and Livecode

2020-10-08 Thread Graham Samuel via use-livecode
I’ve come back to an iOS app that I left for a time, before the advent of iOS 
14. My beta version works very nicely in the Simulator available in Xcode 11.5, 
which I understand is the one LC9.6.1 expects one to have. I’m simulating an 
iPhone XS, largely because I’ve got one of thos,e so it makes a good testbed.

The problem comes when I want to upload my beta to my real phone, which is 
running iOS 14.0.1. Xcode wants me to update, presumably to the latest version.

What are my options, e.g.

1. Stop work

2. Carry on developing using the simulator and hope for better times.

3. Download another version of Xcode but keep the old one for LC development.

Of course I’ve looked for an answer from the mother ship, but although there is 
a very interesting mail from Panos on the subject of different versions of 
XCode and the way the work with LC, repeated in a Forum post in March, it 
doesn’t cover the case I have now, AFAIKS. I just don’t know how to get my app 
into my own phone - publishing the app in the Store will of course come later.

What are other folks doing?

Graham
___
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: Select text question

2020-10-08 Thread Graham Samuel via use-livecode
Thanks Craig. Somehow the return characters didn’t arrive in my email, but of 
course I understand what you mean. But this would simply empty the field,  
wouldn’t it, whereas I want the user to see the text that was there before, 
selected. I thought that was what the ’select’ command for text was for.

Graham

> On 8 Oct 2020, at 15:30, craig--- via use-livecode 
>  wrote:
> 
> 
> Not sure about mobile, but does this help?
> 
> on openFieldset the keyboardType of me to "numeric"
> put "" into meselect text of meend openField
> 
> Craig
> 
> 
> -Original Message-
> From: "Graham Samuel via use-livecode" 
> Sent: Thursday, October 8, 2020 8:45am
> To: "How to use LiveCode" 
> Cc: "Graham Samuel" 
> Subject: Select text question
> 
> 
> 
> I want a user to key a number in a field in an iOS app. Normally the field 
> will already contain data which the user will be replacing, so I coded this
> 
> on openField
> set the keyboardType of me to "numeric"
> select text of me
> end openField
> 
> What happens is that the selection can be seen taking place briefly (this is 
> in the Simulator) and then reverts to a flashing cursor with the original 
> data still in the field and no selection shown. (The numeric keyboard does 
> open BTW, but I can’t see that as relevant).
> 
> What did I do wrong?
> 
> Graham
> ___
> 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


Select text question

2020-10-08 Thread Graham Samuel via use-livecode
I want a user to key a number in a field in an iOS app. Normally the field will 
already contain data which the user will be replacing, so I coded this

on openField
   set the keyboardType of me to "numeric"
   select text of me
end openField

What happens is that the selection can be seen taking place briefly (this is in 
the Simulator) and then reverts to a flashing cursor with the original data 
still in the field and no selection shown. (The numeric keyboard does open BTW, 
but I can’t see that as relevant).

What did I do wrong?

Graham
___
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: Has anyone published an iPhone app that works on iOS 14?

2020-10-07 Thread Graham Samuel via use-livecode
Answered my own question, or rather there is an answer in the Xcode 
documentation under "Create a simulator configuration”. Turns out a whole lot 
of other devices are hiding there, certainly including the iPhone XS.

Sorry I disturbed the list.

Graham

> On 7 Oct 2020, at 17:36, Graham Samuel via use-livecode 
>  wrote:
> 
> Sorry to return to this topic, but I just tried to do what Paul did, and I 
> failed: this is because the Simulator on my copy of XCode 11.5 wouldn’t allow 
> me to simulate the device I actually have, an iPhone XS. This model can use 
> iOS 14, let alone 13.5, which as far as this version of XCode goes AFAIK.
> 
> Can anyone tell me how to get a list of all the viable iPhones for this iOS 
> level on the 11.5 simulator? Obviously I have done something daft.
> 
> Graham
> 
>> On 28 Sep 2020, at 20:13, Paul Hibbert via use-livecode 
>>  wrote:
>> 
>> I’ve just recently upgraded my iPhone and so ended up using iOS14, initially 
>> some apps that I had previously installed on my older iPhone would’t install 
>> on the new phone, most of them are quite old, so I rebuilt them using 
>> LC9.6.0 and Xcode 11.4. The first time I launched them they all worked fine 
>> on first launch, but none of them would launch for a second time, however, 
>> when I rebuilt them again using LC9.6.1 and Xcode 11.5 they all work fine.
>> 
>> These are all apps that I have built for my own use and are not published 
>> through the app store.
>> 
>> Paul
>> 
>>> On 28Sep, 2020, at 01:44, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> Sorry if this has been asked before, but a quick search of the list didn’t 
>>> reveal anything, and I have only been semi-lurking lately.
>>> 
>>> The subject says it all. At this point I don’t know if I can create an app 
>>> in LC that runs reliably with iOS 14. I know there have been high volume 
>>> grumbles from some non-LC developers that they weren’t ready when Apple 
>>> started the rollout of 14 earlier than expected, but I don’t know the 
>>> substance of the complaints.
>>> 
>>> Anyone just sailing along with no problems? I ask because I’m about to 
>>> revive an earlier app project and don’t want to crash and burn the moment I 
>>> restart.
>>> 
>>> Graham
>>> ___
>>> 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: Has anyone published an iPhone app that works on iOS 14?

2020-10-07 Thread Graham Samuel via use-livecode
Sorry to return to this topic, but I just tried to do what Paul did, and I 
failed: this is because the Simulator on my copy of XCode 11.5 wouldn’t allow 
me to simulate the device I actually have, an iPhone XS. This model can use iOS 
14, let alone 13.5, which as far as this version of XCode goes AFAIK.

Can anyone tell me how to get a list of all the viable iPhones for this iOS 
level on the 11.5 simulator? Obviously I have done something daft.

Graham

> On 28 Sep 2020, at 20:13, Paul Hibbert via use-livecode 
>  wrote:
> 
> I’ve just recently upgraded my iPhone and so ended up using iOS14, initially 
> some apps that I had previously installed on my older iPhone would’t install 
> on the new phone, most of them are quite old, so I rebuilt them using LC9.6.0 
> and Xcode 11.4. The first time I launched them they all worked fine on first 
> launch, but none of them would launch for a second time, however, when I 
> rebuilt them again using LC9.6.1 and Xcode 11.5 they all work fine.
> 
> These are all apps that I have built for my own use and are not published 
> through the app store.
> 
> Paul
> 
>> On 28Sep, 2020, at 01:44, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> Sorry if this has been asked before, but a quick search of the list didn’t 
>> reveal anything, and I have only been semi-lurking lately.
>> 
>> The subject says it all. At this point I don’t know if I can create an app 
>> in LC that runs reliably with iOS 14. I know there have been high volume 
>> grumbles from some non-LC developers that they weren’t ready when Apple 
>> started the rollout of 14 earlier than expected, but I don’t know the 
>> substance of the complaints.
>> 
>> Anyone just sailing along with no problems? I ask because I’m about to 
>> revive an earlier app project and don’t want to crash and burn the moment I 
>> restart.
>> 
>> Graham
>> ___
>> 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: Slightly OT: downloading Xcode

2020-10-04 Thread Graham Samuel via use-livecode
This is just to thank everyone who took part in these discussions. I learned a 
lot - for example, I didn’t know that download managers existed. 

I have solved my immediate problem by brute force (I basically kept coming back 
to my Mac every few minutes for about half a day and so did the download), but 
the solutions offered in this conversation are going to be used from now on.  
In fact since Apple keeps updating Xcode and LC struggles (and sometimes fails) 
to keep up, a lot more of these big downloads seem inevitable.

To put the thing in a wider context, I do think these incredibly large files 
are a bad thing. OK sometimes they may be unavoidable, but in the case of 
Xcode,  which is really just a big tool box (and other comparable software), it 
seems perverse. Not much chance of changing Apple’s mind, I suppose.

Personally I can still hope that my French ISP comes out of the woodwork and 
gives me "fibre optique" before I have to take off for quarantine in England 
(where i have absolutely no idea what internet speeds to expect in my 
quarantine hideout - what times we live in!).

Thanks again

Graham
PS Apologies to Richmond for the unforeseen consequences of my typo - but in 
mitigation, I never asked you to do the download yourself!

> On 3 Oct 2020, at 20:27, Richmond via use-livecode 
>  wrote:
> 
> Well . . . eventually after a lot of fooling around I chopped Xcode 11.5 up 
> into 15 * 650 MB chunks: but, frankly, that
> will not solve your problem.
> 
> Later postings in this thread made a lot more sense.
> 
> Best, Richmond.
> 
> On 3.10.20 11:11, Graham Samuel via use-livecode wrote:
>> This is a question for people having to use XCode to generate iOS apps. I 
>> find from responses on this list that I now need Xcode 15 to have a chance 
>> of generating for iOS 14. I would ask Apple this quesiton, but I doubt if I 
>> would get a meaningful answer:
>> 
>> I'm working deep in the French countryside with an ADSL connection - 
>> although I have enough bandwidth to stream TV programs, really long files 
>> are hard to download. Downloading Xcode - which is reported to be an 8.12GB 
>> file - at a speed of between 300 and 750 KB/sec is a nightmare. If the 
>> download speed drops below some unspecified limit, the download stops and 
>> has to be resumed in Safari, but that's not the worst of it. If I leave the 
>> download overnight, having got say 4 out of 8 Gb loaded, when look at the 
>> download folder in the morning, it only contains 14 bytes, necessitating a 
>> complete reload! There isn't even anything in the Trash. What's that about, 
>> and is there any way I can simply accumulate the download bit by bit until 
>> it's all finished?
>> 
>> If anyone has any hints, I’d be grateful. Otherwise it means spending some 
>> hours keep the download pot boiling and wrecking the rest of my day.
>> 
>> Thanks
>> 
>> Graham
>> ___
>> 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: Slightly OT: downloading Xcode

2020-10-03 Thread Graham Samuel via use-livecode
Sorry if I said Xcode 15 - just a typo, it’s actually 11.5. But the point 
remains the same. As I have said before, it seems that Apple are offering files 
as big as the Library of Babel for no logical reason. Stephen’s idea that they 
expect you to have a fibre connection is probably true, but odd considering 
that there are so many places in the world not yet offering high speed internet.

I didn’t bother to explain that in my tiny French village, the new 
state-sponsored optical fibre goes straight past my house, but sadly on the 
wrong side of the road! I have contracted with the necessary ISP, different 
from the one I’m using now, but after an abortive visit by a very nice 
technician who announced that she couldn’t solve the problem herself, they have 
outsourced the link from one side of the street to the other to an external 
contractor, with the result that the original August installation date has been 
pushed out to November! I have even tried to organise a bit of private work to 
get the cable across but the ISP will not play ball.

In practical terms, I will either hang over my Mac for a few more hours or take 
up the sensible suggestion of getting someone else with true broadband to do 
the download for me. The point of my email though was to ask if there is a way 
of downloading a huge file by any other method than simply swallowing the whole 
elephant in one go - looks like there isn’t.

Thanks all

Graham

> On 3 Oct 2020, at 13:17, Richmond via use-livecode 
>  wrote:
> 
> Cripes!
> 
> xCode 12.2. beta 2 takes up 10.5 GB of space . . . wonder what the bloat is: 
> Tim Cook's unwashed laundry?
> 
> On 3.10.20 11:11, Graham Samuel via use-livecode wrote:
>> This is a question for people having to use XCode to generate iOS apps. I 
>> find from responses on this list that I now need Xcode 15 to have a chance 
>> of generating for iOS 14. I would ask Apple this quesiton, but I doubt if I 
>> would get a meaningful answer:
>> 
>> I'm working deep in the French countryside with an ADSL connection - 
>> although I have enough bandwidth to stream TV programs, really long files 
>> are hard to download. Downloading Xcode - which is reported to be an 8.12GB 
>> file - at a speed of between 300 and 750 KB/sec is a nightmare. If the 
>> download speed drops below some unspecified limit, the download stops and 
>> has to be resumed in Safari, but that's not the worst of it. If I leave the 
>> download overnight, having got say 4 out of 8 Gb loaded, when look at the 
>> download folder in the morning, it only contains 14 bytes, necessitating a 
>> complete reload! There isn't even anything in the Trash. What's that about, 
>> and is there any way I can simply accumulate the download bit by bit until 
>> it's all finished?
>> 
>> If anyone has any hints, I’d be grateful. Otherwise it means spending some 
>> hours keep the download pot boiling and wrecking the rest of my day.
>> 
>> Thanks
>> 
>> Graham
>> ___
>> 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


Slightly OT: downloading Xcode

2020-10-03 Thread Graham Samuel via use-livecode
This is a question for people having to use XCode to generate iOS apps. I find 
from responses on this list that I now need Xcode 15 to have a chance of 
generating for iOS 14. I would ask Apple this quesiton, but I doubt if I would 
get a meaningful answer:

I'm working deep in the French countryside with an ADSL connection - although I 
have enough bandwidth to stream TV programs, really long files are hard to 
download. Downloading Xcode - which is reported to be an 8.12GB file - at a 
speed of between 300 and 750 KB/sec is a nightmare. If the download speed drops 
below some unspecified limit, the download stops and has to be resumed in 
Safari, but that's not the worst of it. If I leave the download overnight, 
having got say 4 out of 8 Gb loaded, when look at the download folder in the 
morning, it only contains 14 bytes, necessitating a complete reload! There 
isn't even anything in the Trash. What's that about, and is there any way I can 
simply accumulate the download bit by bit until it's all finished?

If anyone has any hints, I’d be grateful. Otherwise it means spending some 
hours keep the download pot boiling and wrecking the rest of my day.

Thanks

Graham
___
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


Has anyone published an iPhone app that works on iOS 14?

2020-09-28 Thread Graham Samuel via use-livecode
Sorry if this has been asked before, but a quick search of the list didn’t 
reveal anything, and I have only been semi-lurking lately.

The subject says it all. At this point I don’t know if I can create an app in 
LC that runs reliably with iOS 14. I know there have been high volume grumbles 
from some non-LC developers that they weren’t ready when Apple started the 
rollout of 14 earlier than expected, but I don’t know the substance of the 
complaints.

Anyone just sailing along with no problems? I ask because I’m about to revive 
an earlier app project and don’t want to crash and burn the moment I restart.

Graham
___
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: ...and now for something completely off the wall...

2020-09-01 Thread Graham Samuel via use-livecode
Richmond, is this Scots or just badly spelled 16th Century English? A genuine 
enquiry

The stait of man dois change and vary,
Now sound, now seik, now blith, now sary,
Now dansand mery, now like to dee;
Timor mortis conturbat me.

Graham

> On 28 Aug 2020, at 21:22, Richmond via use-livecode 
>  wrote:
> 
> Very droll: that's a load of Frenchies having fun.
> 
> On 28.08.20 19:44, Bob Sneidar via use-livecode wrote:
>> If the painting is any indication of a real event, the Scots would be well 
>> advised to build their bon fires a wee bit further from the wooden ladders 
>> they are torturing their victims on. :-)
>> 
>> Bob S
>> 
>> 
>>> On Aug 28, 2020, at 9:09 AM, Richmond via use-livecode 
>>>  wrote:
>>> 
>>> Well, I suppose it is funny: about as funny as pointing out to those people 
>>> in Utah who spawned this idiot that
>>> undder Scots law as a citizen of a Scottish colony whose indepndence is 
>>> only de facto under Scots law he should
>>> suffer the death sentence for treason: drawing and quartering.
>>> 
>>> https://upload.wikimedia.org/wikipedia/commons/f/fc/BNMsFr2643FroissartFol97vExecHughDespenser.jpg
>>> 
>>> On 28.08.20 18:54, Bob Sneidar via use-livecode wrote:
 
 
> On Aug 28, 2020, at 7:59 AM, Mark Wieder via use-livecode 
>  wrote:
> 
> Almost every article on the Scots version of Wikipedia is written by one 
> American teenager who can't speak Scots
> 
> "A veelage is a clustered human settlement or community, larger than a 
> hamlet but smawer than a toun, wi a population rangin frae a few hunder 
> tae a few thoosand (sometimes tens o thoosands)."
> 
> https://boingboing.net/2020/08/27/almost-every-article-on-the-sc.html
> https://www.scotslanguage.com/news/5724
> 
> -- 
> 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
> 
> 
> ___
> 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: Has anyone created a specialised mobile keyboard?

2020-08-05 Thread Graham Samuel via use-livecode
Thanks to all who replied: Jacque has rightly put me off trying to write a true 
native keyboard. I can (as I said at the beginning) roll my own, but I also see 
Richard’s point about the familiarity and sophistication of the native 
keyboards. I think on reflection I’ll just go for the numeric one and make up 
any deficiency of symbols either by simply telling my user to use certain 
characters as substitutes for the real thing, or by providing extra buttons for 
the extra symbols. I will experiment.

Graham

> On 5 Aug 2020, at 01:27, Richard Gaskin via use-livecode 
>  wrote:
> 
> I would encourage you to consider very carefully the standard keyboard 
> layouts provided by the OS before embarking on a custom one.
> 
> It's not only a lot of work to make a keyboard, but the common ones are very 
> good, with Swype-like behavior, word prediction, and other things that can be 
> cost-prohibitive for a solo dev to implement.
> 
> Users are *very* accustomed to standard input controls. Deviating from those 
> may be useful in unusual designs, but given the high value of consistency for 
> common tasks like text entry you'll want to weigh the pros and cons carefully 
> before deciding your use-case is too far outside of those supported by the OS.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> 
> 
> Graham Samuel wrote:
> > What I want to do is to design my own keyboard with numerals and a
> > few additional special symbols, but I don’t know if it’s possible
> > to do in native mode, as it were.
> >
> > Graham
> >
> > Sent from my iPhone
> >
> >> On 4 Aug 2020, at 14:41, JeeJeeStudio via use-livecode  >> lists.runrev.com> wrote:
> >>
> >> You can set which keyboard you want, like email, numeric
> >>
> >> it's in the dictionary, search on mobile keyboard
> >>
> 
> 
> 
> ___
> 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: Has anyone created a specialised mobile keyboard?

2020-08-04 Thread Graham Samuel via use-livecode
What I want to do is to design my own keyboard with numerals and a few 
additional special symbols, but I don’t know if it’s possible to do in native 
mode, as it were.

Graham

Sent from my iPhone

> On 4 Aug 2020, at 14:41, JeeJeeStudio via use-livecode 
>  wrote:
> 
> You can set which keyboard you want, like email, numeric
> 
> it's in the dictionary, search on mobile keyboard
> 
> 
> Op 4-8-2020 om 13:22 schreef Graham Samuel via use-livecode:
>> In the iOS app I’m developing, it would be nice (I mean less confusing for 
>> the user) to display a keyboard with only certain keys - numerals and 
>> certain other letters and symbols, on the lines of the various native 
>> keyboards available (numeric, email etc). I see that I can create one from 
>> scratch using graphics and buttons, but I wondered if there is a more 
>> native-style trick to this. I know so little about iOS APIs - I thought 
>> perhaps someone with more knowledge might have tried it.
>> 
>> Graham
>> ___
>> 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


Has anyone created a specialised mobile keyboard?

2020-08-04 Thread Graham Samuel via use-livecode
In the iOS app I’m developing, it would be nice (I mean less confusing for the 
user) to display a keyboard with only certain keys - numerals and certain other 
letters and symbols, on the lines of the various native keyboards available 
(numeric, email etc). I see that I can create one from scratch using graphics 
and buttons, but I wondered if there is a more native-style trick to this. I 
know so little about iOS APIs - I thought perhaps someone with more knowledge 
might have tried it.

Graham
___
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: Apple Transporter for iOS uploads?

2020-08-04 Thread Graham Samuel via use-livecode
A month ago I was asking the question below. Circumstances stopped my 
development work until very recently, then I picked this up again. Just in case 
anyone meets the same issue I can confirm there was an answer, given by Apple 
Support. They said:

> I have investigated the issue and I can see that you have not agreed to the 
> latest version of the Program License Agreement. 

Yes, that was it! Not at all mentioned in the app itself, but not having agreed 
(to something I hadn’t noticed in my IN box) stopped the program working. You 
would have thought an error message might have come up, but no.


Graham

> On 1 Jul 2020, at 21:15, Graham Samuel  wrote:
> 
> Anyone having any trouble with  this app? I downloaded it and signed in with 
> my Apple ID, but then it got stuck displaying “signing in” with a rotatiing 
> progress indicator. The ‘Force Quit’ system doesn’t report it as ’not 
> responding’, but it doesn’t seem to be responding to me!
> 
> iMac running Catalina 10.15.5.
> 
> Graham

___
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: Lost iOS widget

2020-08-02 Thread Graham Samuel via use-livecode
You are not wrong at all… that was the answer. One’s purchases of add-ons to LC 
don’t get directly incorporated in the license or in the download. Obvious 
really, but I had completely forgotten I’d bought the pack.

Thanks for yet another rescue.

Graham

> On 2 Aug 2020, at 11:33, matthias rebbe via use-livecode 
>  wrote:
> 
> Graham,
> 
> if i am not completely wrong then that widget is part of the Mobile Native 
> Essentials Widget Pack. This pack was sold as an additonal pack.  Maybe 
> you've purchased that pack and did not install it on your upgraded computer?
> You should find a download link for that pack in your Livecode Account at 
> https://livecode.com/account/products/thirdparty
> 
> 
> 
> Regards,
> Matthias
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 02.08.2020 um 12:24 schrieb Graham Samuel via use-livecode 
>> :
>> 
>> When re- building my beta-level iOS standalone in LC 9.6.0 (which was 
>> working pretty well a few weeks ago), I got a warning:
>> 
>>> Extension com.livecode.widget.native.activity-indicator not found
>> 
>> 
>> Was this withdrawn by LC? I can’t see anything in the release notes, but I 
>> note that some of my app has stopped working - this seems to be about 
>> buttons and not activity indicators, so it needs more investigation, but 
>> meanwhile does anyone know what his warning means?
>> 
>> Graham
>> ___
>> 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


Lost iOS widget

2020-08-02 Thread Graham Samuel via use-livecode
When re- building my beta-level iOS standalone in LC 9.6.0 (which was working 
pretty well a few weeks ago), I got a warning:

> Extension com.livecode.widget.native.activity-indicator not found


Was this withdrawn by LC? I can’t see anything in the release notes, but I note 
that some of my app has stopped working - this seems to be about buttons and 
not activity indicators, so it needs more investigation, but meanwhile does 
anyone know what his warning means?

Graham
___
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: iOS Profiles not seen by LC - what to do?

2020-08-02 Thread Graham Samuel via use-livecode
Hi Ralph - thanks, that worked, although I did have to restart LC. I seem to be 
having some kind of problem with the ID associated with the app (will report 
later) but I can run the simulator, so can work - phew!

Also, thanks Scott - yes I had already pointed LC to my copy of Xcode - had to 
be 14.1, where my Mac had loaded a later version of Xcode. Luckily I’m in a 
location with pretty fast broadband so downloading the right version was not 
too much of a pain (I have ranted earlier about the ridiculous size of Xcode: 
wouldn’t it have been better to turn it into a library of components? But you 
can’t fight Apple…)

Graham

> On 1 Aug 2020, at 19:25, rdimo...@evergreeninfo.net wrote:
> 
> Graham,
> 
> This won't make it to the list. I'm on a forwarded email.
> 
> Go to Xcode preferences and click on your account and click "download manual 
> profiles". You don't even need to close LC. Just click on any other tab in 
> the standalone settings then go back to iOS settings and all you provisioning 
> profiles will show up in the dropdown.
> 
> Ralph
> 
> 
> On Aug 1, 2020 14:04, Graham Samuel via use-livecode 
>  wrote:
> I’m coming back to iOS development after quite a long time and I’m using a 
> different Mac to the one I started with. I’m using LC 9.6.0 on MacOS Catalina 
> 10.15.6. When I try to configure my app’s Standalone Settings for iOS, LC 
> sees my internal app ID but it doesn’t see the associated profiles, even 
> though they are present in my KeyChain Access data.
> 
> How can I tell LC to ‘see’ the profiles? Without this I can’t build a 
> standalone at all. I don’t remember this problem occurring on my other Mac - 
> but I don’t have access to that one at the moment.
> 
> Thanks for any insight into this.
> 
> Graham
> ___
> 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


iOS Profiles not seen by LC - what to do?

2020-08-01 Thread Graham Samuel via use-livecode
I’m coming back to iOS development after quite a long time and I’m using a 
different Mac to the one I started with. I’m using LC 9.6.0 on MacOS Catalina 
10.15.6. When I try to configure my app’s Standalone Settings for iOS, LC sees 
my internal app ID but it doesn’t see the associated profiles, even though they 
are present in my KeyChain Access data.

How can I tell LC to ‘see’ the profiles? Without this I can’t build a 
standalone at all. I don’t remember this problem occurring on my other Mac - 
but I don’t have access to that one at the moment.

Thanks for any insight into this.

Graham
___
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: Apple Transporter for iOS uploads?

2020-07-02 Thread Graham Samuel via use-livecode
Thanks Jacque - I think I’ve still only got one Apple ID for everything. In the 
end Transporter timed out rather than rejecting my password. I tried it several 
times with the same result. I can still log on to my developer account. I have 
asked Apple and hopefully they will reply.

I will report any progress. My iOS deployment issues seem endless. It is 
dispiriting.

Graham

> On 2 Jul 2020, at 22:49, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 7/1/20 3:15 PM, Graham Samuel via use-livecode wrote:
>> Anyone having any trouble with  this app? I downloaded it and signed in with 
>> my Apple ID, but then it got stuck displaying “signing in” with a rotatiing 
>> progress indicator. The ‘Force Quit’ system doesn’t report it as ’not 
>> responding’, but it doesn’t seem to be responding to me!
>> iMac running Catalina 10.15.5.
> 
> I uploaded using Transporter a few days ago without any trouble. Did you use 
> the same Apple ID as the one in your developer account? That's the only thing 
> I can think of.
> 
> -- 
> 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


Apple Transporter for iOS uploads?

2020-07-01 Thread Graham Samuel via use-livecode
Anyone having any trouble with  this app? I downloaded it and signed in with my 
Apple ID, but then it got stuck displaying “signing in” with a rotatiing 
progress indicator. The ‘Force Quit’ system doesn’t report it as ’not 
responding’, but it doesn’t seem to be responding to me!

iMac running Catalina 10.15.5.

Graham
___
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: Yet more iOS deployment heartache - finding Xcode SDKs

2020-06-16 Thread Graham Samuel via use-livecode
Oh Heck - Xcode is so huge that it is quite a proposition to download yet 
another copy here in the countryside. Oh well. 

However, after installing, I still won’t know where to find the SDK so as to 
link it to LC. There must have been one in 11.5 even if it was the wrong one 
for LC, but I could not at all see where to find it. I need the path to the 
thing! Panos perhaps can help, and perhaps can say when 11.5 will be flavour of 
the month…

Deployment! No point in another rant, I suppose.

Graham

> On 16 Jun 2020, at 21:39, matthias rebbe via use-livecode 
>  wrote:
> 
> Graham,
> 
> first of all the release notes 9.6.0 say that Xcode 11.4 is supported, not 
> 11.5.
> 
> So i would suggest to download/install Xcode 11.4. You can find older 
> versions of Xcode in the download sections of your developer account.
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 16.06.2020 um 21:32 schrieb Graham Samuel via use-livecode 
>> :
>> 
>> I have a viable iOS app that I have previously managed to load into my own 
>> iPhone etc. Now I want to ready it for the app store. Since I last asked LC 
>> 9.6.0 to save it as a standalone, I have acquired a new iMac (runing 
>> Catalina) and upgraded Xcode to version 11.5.
>> 
>> Now when I try to save my LC project as a standalone, I get an error message 
>> from LC:
>> 
>> “There was an error while saving the standalone application
>> In order to perform device builds, you must have the iOS SDK 13.4 configured 
>> - iOS 13.4 comes with Xcode 11.4”
>> 
>> Well, thanks for telling me,. Trying to research this, I find that there is 
>> an LC lesson that says
>> 
>>> NB Xcode must  be linked to your version of LiveCode via LiveCodes Mobile 
>>> Support Preferences. This option is available from 
>>> "LiveCode"--->"Preferences">"Mobile Support”
>> 
>> Yes, and that says I have to find the relevant SDKs. But where are they? I 
>> search of the iMac didn’t find them. Nothing in Application Support AFAIKS.
>> 
>> Someone please help
>> 
>> Graham
>> 
>> 
>> ___
>> 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


Yet more iOS deployment heartache - finding Xcode SDKs

2020-06-16 Thread Graham Samuel via use-livecode
I have a viable iOS app that I have previously managed to load into my own 
iPhone etc. Now I want to ready it for the app store. Since I last asked LC 
9.6.0 to save it as a standalone, I have acquired a new iMac (runing Catalina) 
and upgraded Xcode to version 11.5.

Now when I try to save my LC project as a standalone, I get an error message 
from LC:

“There was an error while saving the standalone application
In order to perform device builds, you must have the iOS SDK 13.4 configured - 
iOS 13.4 comes with Xcode 11.4”

Well, thanks for telling me,. Trying to research this, I find that there is an 
LC lesson that says

> NB Xcode must  be linked to your version of LiveCode via LiveCodes Mobile 
> Support Preferences. This option is available from 
> "LiveCode"--->"Preferences">"Mobile Support”

Yes, and that says I have to find the relevant SDKs. But where are they? I 
search of the iMac didn’t find them. Nothing in Application Support AFAIKS.

Someone please help

Graham


___
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] Release 9.6.0

2020-06-01 Thread Graham Samuel via use-livecode
Yes - just did it. I’m guessing it’s something left over from an earlier 
activation of LC, but it’s just a guess. I’ve seen it once before. 

Graham

Sent from my iPhone

> On 1 Jun 2020, at 19:01, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Graham,
> 
> I have not seen that error before, but looks like it is coming from the OS.
> Did restarting the machine fix the problem?
> 
> Kind regards,
> Panos
> --
> 
>> On Mon, 1 Jun 2020 at 19:53, Graham Samuel via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Panos, what does “LiveCodeIndy-9_6_0-M Resource Busy" mean? Basically I
>> downloaded the dmg and got that. No other version of LC was open at the
>> time, but the machine (an iMac running HIgh Sierra) has not been rebooted
>> since the last use of LiveCode. I will restart now - but it shouldn’t
>> happen, should it?
>> 
>> Graham
>> 
>>> On 1 Jun 2020, at 17:16, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Dear list members,
>>> 
>>> We are pleased to announce the release of LiveCode 9.6.0.
>>> 
>>> 
>>> Getting the Release
>>> ===
>>> You can get the release at https://downloads.livecode.com/livecode/ or
>> via
>>> the automatic updater.
>>> 
>>> 
>>> Release Contents
>>> 
>>> LiveCode 9.6.0 comes with more than 120 changes since the last stable
>>> release (9.5.1) including:
>>> 
>>> New Features
>>> - Support for Storyboard launch images and backgrounds on iOS
>>> - Support for using the flash as a torch in the Android Barcode Scanner
>>> - Support for building with Xcode 11.4, using the iOS 13.4 SDK
>>> - New tsNet and mergExt builds, built with the iOS 13.4 SDK
>>> - The mobile player control has been updated to use the AVKit framework
>>> on iOS. This fixes a lot of existing bugs, including some new issues on
>> iOS
>>> 13+ devices.
>>> - The mobile browser control has been updated to use the WebKit
>> framework
>>> on iOS. This provides better performance on iOS devices.
>>> - The "open printing to pdf ..." command can now be used to direct
>>> printing to a PDF output file on Android devices.
>>> - New CEF build is included, which addresses rendering issues with the
>>> browser widget in some 32bit Windows devices.
>>> - New "focusModes" and "focusMode" properties are implemented for the
>>> Android camera control.
>>> - The ability to pass "detailed-utf8" to the files() and folders()
>>> function to preserve unicode filenames has been added.
>>> - Support for merging activity attributes is added in the Android
>>> Manifest Merging mechanism
>>> - New text to speech library for iOS, Android and MacOS (Indy/Business
>>> only)
>>> - Improved text rendering on Android
>>> - Objective-C block support in LCB
>>> - Ability to detect dark mode on MacOS, iOS and Android
>>> - Improvements on mobilePickPhoto on Android, including support for
>> front
>>> camera
>>> - Ability to highlight none of the icons in the navigation bar widget
>>> 
>>> Bug Fixes:
>>> 
>>> - Significant performance improvement when saving stacks on Windows
>>> - Improvements in the Windows FFI in LCB
>>> - Fixes to drag-drop on macOS and Windows
>>> - Windows camera control now produces much higher quality output
>>> 
>>> For the full list of all fixes, updates and enhancements please see the
>>> release notes:
>>> http://downloads.livecode.com/livecode/9_6_0/LiveCodeNotes-9_6_0.pdf
>>> 
>>> 
>>> Known issues
>>> 
>>> - The Browser widget's native layer is not shown in some Linux distros
>> with
>>> Cinnamon window manager.
>>> - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit
>> LTS
>>> yet.
>>> - The mergSettings external still uses the UIWebView API on iOS, so
>>> checking "mergSettings" in the Inclusions pane will cause an AppStore
>>> rejection, since Apple no longer accepts new apps that use UIWebView.
>>> 
>>> 
>>> Required Software
>>> =
>>> To build iOS apps with LiveCode you must have the appropriate versions of
>>> Xcode as follows:
>>> 
>>> - macOS 10.13.4: Xcode 10.1 - LiveCode builds i

Re: [ANN] Release 9.6.0

2020-06-01 Thread Graham Samuel via use-livecode
Panos, what does “LiveCodeIndy-9_6_0-M Resource Busy" mean? Basically I 
downloaded the dmg and got that. No other version of LC was open at the time, 
but the machine (an iMac running HIgh Sierra) has not been rebooted since the 
last use of LiveCode. I will restart now - but it shouldn’t happen, should it?

Graham

> On 1 Jun 2020, at 17:16, panagiotis merakos via use-livecode 
>  wrote:
> 
> Dear list members,
> 
> We are pleased to announce the release of LiveCode 9.6.0.
> 
> 
> Getting the Release
> ===
> You can get the release at https://downloads.livecode.com/livecode/ or via
> the automatic updater.
> 
> 
> Release Contents
> 
> LiveCode 9.6.0 comes with more than 120 changes since the last stable
> release (9.5.1) including:
> 
> New Features
>  - Support for Storyboard launch images and backgrounds on iOS
>  - Support for using the flash as a torch in the Android Barcode Scanner
>  - Support for building with Xcode 11.4, using the iOS 13.4 SDK
>  - New tsNet and mergExt builds, built with the iOS 13.4 SDK
>  - The mobile player control has been updated to use the AVKit framework
> on iOS. This fixes a lot of existing bugs, including some new issues on iOS
> 13+ devices.
>  - The mobile browser control has been updated to use the WebKit framework
> on iOS. This provides better performance on iOS devices.
>  - The "open printing to pdf ..." command can now be used to direct
> printing to a PDF output file on Android devices.
>  - New CEF build is included, which addresses rendering issues with the
> browser widget in some 32bit Windows devices.
>  - New "focusModes" and "focusMode" properties are implemented for the
> Android camera control.
>  - The ability to pass "detailed-utf8" to the files() and folders()
> function to preserve unicode filenames has been added.
>  - Support for merging activity attributes is added in the Android
> Manifest Merging mechanism
>  - New text to speech library for iOS, Android and MacOS (Indy/Business
> only)
>  - Improved text rendering on Android
>  - Objective-C block support in LCB
>  - Ability to detect dark mode on MacOS, iOS and Android
>  - Improvements on mobilePickPhoto on Android, including support for front
> camera
>  - Ability to highlight none of the icons in the navigation bar widget
> 
> Bug Fixes:
> 
>  - Significant performance improvement when saving stacks on Windows
>  - Improvements in the Windows FFI in LCB
>  - Fixes to drag-drop on macOS and Windows
>  - Windows camera control now produces much higher quality output
> 
> For the full list of all fixes, updates and enhancements please see the
> release notes:
> http://downloads.livecode.com/livecode/9_6_0/LiveCodeNotes-9_6_0.pdf
> 
> 
> Known issues
> 
> - The Browser widget's native layer is not shown in some Linux distros with
> Cinnamon window manager.
> - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS
> yet.
> - The mergSettings external still uses the UIWebView API on iOS, so
> checking "mergSettings" in the Inclusions pane will cause an AppStore
> rejection, since Apple no longer accepts new apps that use UIWebView.
> 
> 
> Required Software
> =
> To build iOS apps with LiveCode you must have the appropriate versions of
> Xcode as follows:
> 
>  - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1
> SDK
>  - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS
> 13.2 SDK
>  - macOS 10.15.2: Xcode 11.4.x - LiveCode builds iOS apps using the iOS
> 13.4 SDK
> 
> There is a full list of working LiveCode/macOS/Xcode combinations here:
> https://livecode.com/docs/9-5-0/faq/faq/
> 
> Note: Whilst we endeavour to release updated versions of LiveCode
> supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly
> recommend disabling automatic update of Xcode or downloading the specific
> version of Xcode required directly from the Apple developer portal and
> installing it separately.
> 
> Important: Since the end of April 2020, Apple is only accepting new apps
> built using iOS13 SDKs. Updates to existing apps can be built using iOS12
> SDKs until the end of June 2020. This means that, if you wish to submit new
> apps to the AppStore, you will have to be running at least macOS 10.14 in
> order to be able to install the necessary version of Xcode.
> 
> 
> Feedback
> 
> Please report any bugs encountered on our quality center at
> http://quality.livecode.com/
> 
> We have a forum available for discussing LiveCode Builder at
> http://forums.livecode.com/viewforum.php?f=93
> 
> 
> Have fun!
> The LiveCode Team
> 
> --
> ___
> 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

Re: Map Widget - how does it actually work?

2020-05-30 Thread Graham Samuel via use-livecode
Bill, thanks for all this. I will study it today (it’s breakfast time in France 
as I write this).

I did some internet searching to look at the underlying Apple Map system - 
which is used for the LC version of the Map widget for iOS - and its API. It’s 
rich and complex, so the widget just scratches the surface of the available 
functionality, 

This saddened my a bit, but then I reflected on the enormous simplification 
that LC represents for a developer compared with what you’d have to learn and 
apply before getting anywhere at all coding a mobile app ‘outside’ LC. It 
really is quite alarming. I was a geek once, and learned and applied some very 
obscure languages within very primitive and obscure systems, but I have zero 
taste for that sort of thing now. As a further example, take a quick look at 
what Apple say to attract you to their Swift language. They want to tell you 
it’s easy and fun - I think one can have a contrary opinion, especially if one 
has never coded in Objective-C or anything like it. [That was a pro-LiveCode 
rant, in case you didn’t notice.]

Graham

> On 30 May 2020, at 00:44, prothero--- via use-livecode 
>  wrote:
> 
> Graham:
> If that doesn’t have everything, I have a zip file at:
> http://earthlearningsolutions.org/google-static-maps-demo/ 
> <http://earthlearningsolutions.org/google-static-maps-demo/>
> William A. Prothero
> Santa Barbara, CA. 93105
> http://earthlearningsolutions.org/
> 
>> On May 29, 2020, at 3:42 PM, William Prothero via use-livecode 
>>  wrote:
>> 
>> Graham:
>> Here is a link to an example that I, with lots of help from Hermann created. 
>> Maybe it will be useful. All done in livecode, so it should work. Haven’t 
>> tried it since 2017, tho.
>> Bill
>> 
>> https://www.dropbox.com/s/kg5l80bi82u1sap/google-maps-demo.livecode?dl=0 
>> <https://www.dropbox.com/s/kg5l80bi82u1sap/google-maps-demo.livecode?dl=0>
>> 
>> William A. Prothero
>> https://earthlearningsolutions.org
>> 
>>> On May 25, 2020, at 1:57 PM, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> Back to my problems with inadequate documentation on widgets. The Map 
>>> widget is probably very powerful, but the Dictionary entry simple tells you 
>>> the names of the parameters. I can’t work out anything about the format of 
>>> the data you can feed in, or what it looks like when it comes out. There 
>>> isn’t even enough info to start a meaningful experiment, IMHO.
>>> 
>>> Does anyone know of a source of helpful documentation on this? I am as ever 
>>> interested in the iOS version.
>>> 
>>> Thanks for any info.
>>> 
>>> Graham
>>> ___
>>> 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: Map Widget - how does it actually work?

2020-05-26 Thread Graham Samuel via use-livecode
Thanks Bernard. I shall shelve my map utility until I notice the bug is fixed.

Graham

> On 26 May 2020, at 19:18, Niggemann, Bernd via use-livecode 
>  wrote:
> 
> Unfortunately polylines stoppt working in recent versions of LC
> 
> https://quality.livecode.com/show_bug.cgi?id=22377
> 
> 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: Map Widget - how does it actually work?

2020-05-26 Thread Graham Samuel via use-livecode
Thanks Alex - that’s solid gold! I might even be able to use the widget, though 
perhaps not for what I intended which was to draw a route consisting of a 
series of standard Lat-Lon coordinates, in other words a very large number of 
linked polylines. This is a tentative conclusion, so probably wrong.

This is the first time I’ve realised that the Guide you get when you click on 
‘Dictionary’ in the LC menu is different from the “User Guide” which you can 
access via the same menu. I haven’t got time to find out the differences, but I 
note that “Map Widget” appears in one and not the other. Or am I wrong? Try 
searching  the "LiveCode 9.6.0-rc-2 User Guide 5/19/20” and see what you get.

Graham


> On 26 May 2020, at 02:39, Alex Tweedly via use-livecode 
>  wrote:
> 
> However, in the dictionary under "Guide" you can find some more info / 
> example about the map widget. In particular, it defines the format used for  
> region, coordinates, span and markers - which is probably all that you need 
> (I think all the others parameters in the API are booleans).


___
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


Map Widget - how does it actually work?

2020-05-25 Thread Graham Samuel via use-livecode
Back to my problems with inadequate documentation on widgets. The Map widget is 
probably very powerful, but the Dictionary entry simple tells you the names of 
the parameters. I can’t work out anything about the format of the data you can 
feed in, or what it looks like when it comes out. There isn’t even enough info 
to start a meaningful experiment, IMHO.

Does anyone know of a source of helpful documentation on this? I am as ever 
interested in the iOS version.

Thanks for any info.

Graham
___
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


Test

2020-05-24 Thread Graham Samuel via use-livecode
This is a test. Please ignore.

Sent from my iPhone

___
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: LC 9.6.0 RC1 Splash/Launch Images

2020-05-23 Thread Graham Samuel via use-livecode
No I don’t, because you’re not given the opportunity to do so. I also don’t 
understand the storyboard idea at all - there are or were some very precise 
guidelines about splash screens in the Apple documentation (App Store Connect 
Help). There were certain key sizes and the system was willing to manufacture 
some intermediate sizes itself, so one ended up with an exact splash screen for 
every device. Now that’s disappeared, apparently in favour of a 
three-sizes-fits-all policy that doesn’t seem to be working too well. I suppose 
the documentation must have changed, so I’ll have to go back and see what they 
say now. By the way you would at least think that this simplification would 
make your standalone smaller, but mine’s got a lot bigger (more than twice as 
big - I can’t think of another reason, but I suppose there must be one).

The app I’m working on is portrait only, and I hadn’t really planned for it to 
be used on iPads, partly because I’ve never met anyone with a GPS-enabled iPad, 
and my app depends on GPS. This was a mistake really, as there are probably 
lots of GPS-enabled ones somewhere in the world. I’ll see what it looks like in 
the Simulator. If there’s any interesting news, I’ll report back.

Graham

> On 22 May 2020, at 22:51, scott--- via use-livecode 
>  wrote:
> 
> Hello Graham,
> 
> In the Standalone Applications Settings do you have it set to build for iPad 
> as well as iPhone?  I’m not at all experienced with the new splash options or 
> how the setting work together… just an idea.
> --
> Scott
> 
>> On May 22, 2020, at 1:25 PM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> My x3 splash is already smaller than the largest real requirement for an 
>> iPhone, 1242 x 2688. Mine is only 2048 x 2732. So you could argue that my x3 
>> splash should be even larger than I’ve supplied.
>> 
>> I don’t see why the system doesn’t pick the smallest size that will fit - so 
>> for my iPhone XS for example, which needs 1125x2436 for an exact fit, I have 
>> supplied my x2 splash at exactly the right size. 
>> 
>> I realise this is not desperately important, especially as I can adopt 
>> Andrew’s solution below, but there does seem to be something wrong here. It 
>> will be interesting to read the LC lesson on this when it comes out!
>> 
>> Graham
>> 
>>> On 22 May 2020, at 18:41, Andrew at MidWest Coast Media via use-livecode 
>>>  wrote:
>>> 
>>> I had the same problem when creating storyboards: the icon was too big. My 
>>> app was portrait so I could tell the dimensions were backwards, but when 
>>> using the the recommended sizes the logo ran off the edges. Placing the 1x 
>>> version in the 2x slot (and the 2x in the 3x slot) seemed to make things 
>>> look more like what I expected.
>>> 
>>> Making the first card of the stack have the same background color as the 
>>> Storyboard worked fine, then just...
>>> unlock screen for visual effect
>>> go next card
>>> unlock screen with visual effect “dissolve” very fast
>>> 
>>> —Andrew Bell
>> 
>> 
>>> On 22 May 2020, at 14:48, panagiotis merakos via use-livecode 
>>>  wrote:
>>> 
>>> *>>>>>LC 9.6.0 rc1 reported that I hadn’t provided a portrait splash screen
>>> for iPad*
>>> 
>>> Yes, this is a bug in LC 9.6 RC-1, which is fixed in LC 9.6 RC-2.
>>> 
>>> *>>>>>and the Simulator showed the splash screen too large for the screen
>>> of the device *
>>> 
>>> Hmm, then I would expect the splash to show too large in the physical
>>> device as well. In this case, I would try with a smaller splash.
>>> 
>>> Kind regards,
>>> Panos
>>> --
>>> 
>>> On Fri, 22 May 2020 at 15:25, Graham Samuel via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> I did that, so fine, but noticed two issues: when making the standalone LC
>>>> 9.6.0 rc1 reported that I hadn’t provided a portrait splash screen for
>>>> iPad, when in fact there is no way of doing so since the storyboard change;
>>>> and the Simulator showed the splash screen too large for the screen of the
>>>> device (an iPhone XS). (Not sure if the real app does that as I’m having
>>>> trouble uploading - that’s a different conversation.)
>>>> 
>>>> Graham
>>>> 
>>>>> On 22 May 2020, at 13:51, panagiotis merakos via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> Just realised th

Re: LC 9.6.0 RC1 Splash/Launch Images

2020-05-22 Thread Graham Samuel via use-livecode
My x3 splash is already smaller than the largest real requirement for an 
iPhone, 1242 x 2688. Mine is only 2048 x 2732. So you could argue that my x3 
splash should be even larger than I’ve supplied.

I don’t see why the system doesn’t pick the smallest size that will fit - so 
for my iPhone XS for example, which needs 1125x2436 for an exact fit, I have 
supplied my x2 splash at exactly the right size. 

I realise this is not desperately important, especially as I can adopt Andrew’s 
solution below, but there does seem to be something wrong here. It will be 
interesting to read the LC lesson on this when it comes out!

Graham

> On 22 May 2020, at 18:41, Andrew at MidWest Coast Media via use-livecode 
>  wrote:
> 
> I had the same problem when creating storyboards: the icon was too big. My 
> app was portrait so I could tell the dimensions were backwards, but when 
> using the the recommended sizes the logo ran off the edges. Placing the 1x 
> version in the 2x slot (and the 2x in the 3x slot) seemed to make things look 
> more like what I expected.
> 
> Making the first card of the stack have the same background color as the 
> Storyboard worked fine, then just...
> unlock screen for visual effect
> go next card
> unlock screen with visual effect “dissolve” very fast
> 
> —Andrew Bell


> On 22 May 2020, at 14:48, panagiotis merakos via use-livecode 
>  wrote:
> 
> *>>>>>LC 9.6.0 rc1 reported that I hadn’t provided a portrait splash screen
> for iPad*
> 
> Yes, this is a bug in LC 9.6 RC-1, which is fixed in LC 9.6 RC-2.
> 
> *>>>>>and the Simulator showed the splash screen too large for the screen
> of the device *
> 
> Hmm, then I would expect the splash to show too large in the physical
> device as well. In this case, I would try with a smaller splash.
> 
> Kind regards,
> Panos
> --
> 
> On Fri, 22 May 2020 at 15:25, Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I did that, so fine, but noticed two issues: when making the standalone LC
>> 9.6.0 rc1 reported that I hadn’t provided a portrait splash screen for
>> iPad, when in fact there is no way of doing so since the storyboard change;
>> and the Simulator showed the splash screen too large for the screen of the
>> device (an iPhone XS). (Not sure if the real app does that as I’m having
>> trouble uploading - that’s a different conversation.)
>> 
>> Graham
>> 
>>> On 22 May 2020, at 13:51, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Just realised that the image sizes I suggested are for landscape, so if
>>> your app uses portrait, just swap the width with the height.
>>> 
>>> 
>>> 
>>> On Sun, 17 May 2020 at 21:35, Colin Holgate via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> What I’ve done for a while is to use a flat color that is the average of
>>>> the colors in the actual title screen. The splash screen is not around
>> for
>>>> very long, and with there being lots of different sizes required, a
>>>> detailed splash screen could possibly take up 50 MB of app side, for the
>>>> sake of a fraction of a second.
>>>> 
>>>> In the best case it feels like the title screen faded into view. In
>> fact,
>>>> you could do that, quickly fade in from a matching flat background
>> color.
>>>> 
>>>> 
>>>>> On May 17, 2020, at 10:58 AM, panagiotis merakos via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> Hello Graham,
>>>>> 
>>>>> The new storyboard mechanism has some restrictions as it is (we might
>>>>> enhance it in the future)
>>>>> 
>>>>> For example it is no longer possible to have an exact (pixel) matching
>> of
>>>>> the splash screen and the first card of the stack as it appears on the
>>>>> device
>>>>> 
>>>>> So the best suggestion now is to use a splash image that has just a
>> logo
>>>> at
>>>>> the center and it is transparent, and also to set the background of the
>>>>> splash in the standalone settings.
>>>>> 
>>>>> In that way, in all devices (ipads/iphones) you will get a centered
>> logo
>>>>> with the background you set in the standalone settings (or you can
>> choose
>>>>> to not set the background - in this case the default background color
>&g

Re: iOS Provisioning Profile issue

2020-05-22 Thread Graham Samuel via use-livecode
Thanks Panos - I am truly sorry to have wasted your precious time. The fact is, 
I am trying to do all this iOS development while keeping to the absolute 
minimum of knowledge about Apple’s arcane, not to say Byzantine, systems of 
deployment, approval etc. Thus the terminology about profiles and the reason 
they come in different flavours has never really sunk in. Indeed I was hoping 
against hope to avoid it as much as possible. For me, life really is too short.

You have yet again got me out of the soup.

Cheers

Graham

> On 22 May 2020, at 21:31, panagiotis merakos via use-livecode 
>  wrote:
> 
> Oh, I see. If the provisioning profile is of type "AppStore", then it is a
> Distribution profile, so you will not be able to use this profile for
> installing the app directly to your device.
> 
> You need an iOS Development profile for being able to install the app on
> the device.
> 
> Regards,
> Panos
> 
> On Fri, May 22, 2020, 19:53 JeeJeeStudio via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> AS far as i know this profile lasts for 6 days for development.
>> 
>> Then you have to renew it in Xcode.
>> 
>> Op 22-5-2020 om 12:47 schreef Graham Samuel via use-livecode:
>>> Panos - thanks for asking
>>> 
>>> Yes it is - an iPhone XS which has been my key test device for weeks.
>> Should I try it on the very latest version of LC? I had a download glitch
>> last night so didn’t install it (the joys of rural broadband).
>>> 
>>> Graham
>>> 
>>> 
>>> Sent from my iPhone
>>> 
>>>> On 22 May 2020, at 11:00, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Hello Graham,
>>>> 
>>>> Is that the same iOS device you used when you could successfully
>>>> install the app?
>>>> 
>>>> Kind regards,
>>>> Panos
>>>> --
>>>> 
>>>>> On Fri, 22 May 2020 at 11:52, Graham Samuel via use-livecode <
>>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> I’ve been using XCode to load an app into my iPhone for some time now,
>> but
>>>>> today using LC 9.6.0 rc1, I got this refusal:
>>>>> 
>>>>>> A valid provisioning profile for this executable was not found.
>>>>> As far as I’m concerned, I’ve got the same provisioning profile as I
>> had a
>>>>> few days ago, and it’s  been in the Standalone Settings for the app for
>>>>> some time, when this version of LC did several successful updates.
>>>>> 
>>>>> Can anyone suggest what I’ve done wrong?
>>>>> 
>>>>> Graham
>>>>> ___
>>>>> 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
>> 
> ___
> 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: iOS Provisioning Profile issue

2020-05-22 Thread Graham Samuel via use-livecode
Panos, it is very strange: I looked up my provisioning profile in the 
developer.app.com site (I’ve only got the one provisioning profile, for iOS, 
type “App Store"), noted that the expiry date is 8 May 2021, re-downloade it, 
double-clicked it to bring it to the attention of XCode, and tried the upload 
of the app to the phone again. Exactly the same result. 

My next move is to revisit the Standalone Settings for the app - I am not quite 
sure  how LC knows which profiles I have or where they are, but I assume it’s 
looking in Keychain Access as I have had to supply a password for that, and 
where one can read that the certificate exists and is valid.

Graham


> On 22 May 2020, at 13:48, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Graham,
> 
> Hmm ok, that's strange. Could you make sure the provisioning profile has
> not expired, and it is still valid, as Matthias suggested?
> 
> There is no need to download 9.6 RC-2 for that, we have not changed
> anything that could cause this issue.
> 
> Kind regards,
> Panos
> --
> 
> On Fri, 22 May 2020 at 13:49, Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Panos - thanks for asking
>> 
>> Yes it is - an iPhone XS which has been my key test device for weeks.
>> Should I try it on the very latest version of LC? I had a download glitch
>> last night so didn’t install it (the joys of rural broadband).
>> 
>> Graham
>> 
>> 
>> Sent from my iPhone
>> 
>>> On 22 May 2020, at 11:00, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hello Graham,
>>> 
>>> Is that the same iOS device you used when you could successfully
>>> install the app?
>>> 
>>> Kind regards,
>>> Panos
>>> --
>>> 
>>>> On Fri, 22 May 2020 at 11:52, Graham Samuel via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> I’ve been using XCode to load an app into my iPhone for some time now,
>> but
>>>> today using LC 9.6.0 rc1, I got this refusal:
>>>> 
>>>>> A valid provisioning profile for this executable was not found.
>>>> 
>>>> As far as I’m concerned, I’ve got the same provisioning profile as I
>> had a
>>>> few days ago, and it’s  been in the Standalone Settings for the app for
>>>> some time, when this version of LC did several successful updates.
>>>> 
>>>> Can anyone suggest what I’ve done wrong?
>>>> 
>>>> Graham
>>>> ___
>>>> 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


___
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: Enabling "About MyApp"

2020-05-22 Thread Graham Samuel via use-livecode
Oops, I think this is a different conversation. My issue is with mobile apps.

Apologies

Graham

> On 22 May 2020, at 14:26, Graham Samuel via use-livecode 
>  wrote:
> 
> Sorry, how does this apply to a mobile app which hasn’t got a menu in an 
> explicit sense - of course I can provide a ‘menu’ item, i.e. some kind of 
> choice the user can make (I do in fact have a ’settings’ card in the app I’m 
> producing, so that could be somewhere to put it), but it’s not obligatory, is 
> it?
> 
> Graham
> 
>> On 22 May 2020, at 14:11, Andre Garzia via use-livecode 
>>  wrote:
>> 
>> This should be in the user guide...
>> 
>> On Tue, 12 May 2020 at 00:42, Richard Gaskin via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> GEORGE WOOD wrote:
>>> 
>>>> How can I activate the "About MyApp" under the Apple menu?
>>> 
>>> On other OSes the "About" item is usually the last item in the Help
>>> menu.  If you put your About item there, you'll find that when LC
>>> automatically translates its menu objects for the Mac menu bar it'll
>>> move your About item to the application menu.
>>> 
>>> In fact, a similar thing happens with "Preferences". On most platforms
>>> it's the last item in the Edit menu, and when you put a "Preferences"
>>> item there the automatic menu bar change that LC does will put it in the
>>> application menu as well, below About.
>>> 
>>> --
>>> 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
>>> 
>> 
>> 
>> -- 
>> http://www.andregarzia.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: Enabling "About MyApp"

2020-05-22 Thread Graham Samuel via use-livecode
Sorry, how does this apply to a mobile app which hasn’t got a menu in an 
explicit sense - of course I can provide a ‘menu’ item, i.e. some kind of 
choice the user can make (I do in fact have a ’settings’ card in the app I’m 
producing, so that could be somewhere to put it), but it’s not obligatory, is 
it?

Graham

> On 22 May 2020, at 14:11, Andre Garzia via use-livecode 
>  wrote:
> 
> This should be in the user guide...
> 
> On Tue, 12 May 2020 at 00:42, Richard Gaskin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> GEORGE WOOD wrote:
>> 
>>> How can I activate the "About MyApp" under the Apple menu?
>> 
>> On other OSes the "About" item is usually the last item in the Help
>> menu.  If you put your About item there, you'll find that when LC
>> automatically translates its menu objects for the Mac menu bar it'll
>> move your About item to the application menu.
>> 
>> In fact, a similar thing happens with "Preferences". On most platforms
>> it's the last item in the Edit menu, and when you put a "Preferences"
>> item there the automatic menu bar change that LC does will put it in the
>> application menu as well, below About.
>> 
>> --
>>  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
>> 
> 
> 
> -- 
> http://www.andregarzia.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: LC 9.6.0 RC1 Splash/Launch Images

2020-05-22 Thread Graham Samuel via use-livecode
I did that, so fine, but noticed two issues: when making the standalone LC 
9.6.0 rc1 reported that I hadn’t provided a portrait splash screen for iPad, 
when in fact there is no way of doing so since the storyboard change; and the 
Simulator showed the splash screen too large for the screen of the device (an 
iPhone XS). (Not sure if the real app does that as I’m having trouble uploading 
- that’s a different conversation.)

Graham

> On 22 May 2020, at 13:51, panagiotis merakos via use-livecode 
>  wrote:
> 
> Just realised that the image sizes I suggested are for landscape, so if
> your app uses portrait, just swap the width with the height.
> 
> 
> 
> On Sun, 17 May 2020 at 21:35, Colin Holgate via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> What I’ve done for a while is to use a flat color that is the average of
>> the colors in the actual title screen. The splash screen is not around for
>> very long, and with there being lots of different sizes required, a
>> detailed splash screen could possibly take up 50 MB of app side, for the
>> sake of a fraction of a second.
>> 
>> In the best case it feels like the title screen faded into view. In fact,
>> you could do that, quickly fade in from a matching flat background color.
>> 
>> 
>>> On May 17, 2020, at 10:58 AM, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hello Graham,
>>> 
>>> The new storyboard mechanism has some restrictions as it is (we might
>>> enhance it in the future)
>>> 
>>> For example it is no longer possible to have an exact (pixel) matching of
>>> the splash screen and the first card of the stack as it appears on the
>>> device
>>> 
>>> So the best suggestion now is to use a splash image that has just a logo
>> at
>>> the center and it is transparent, and also to set the background of the
>>> splash in the standalone settings.
>>> 
>>> In that way, in all devices (ipads/iphones) you will get a centered logo
>>> with the background you set in the standalone settings (or you can choose
>>> to not set the background - in this case the default background color
>> will
>>> be used depending on the device appearance: white if the device is on
>> light
>>> mode and black if the device is on dark mode)
>>> 
>>> Of course, if you do not wish to have a splash that shows just a logo,
>> you
>>> can choose a regular image (or 3 regular images, one for each 1x,2x,3x
>>> slots) and also set the background color to match the image background
>>> color. In this case, depending of the device, the app will use the one of
>>> the three images that is closer to the device screen size, and will
>> center
>>> this image to the screen.
>>> 
>>> This means that the image in some devices will either match exactly, or
>> it
>>> will be larger (in this case it will be cropped and the edges will not
>>> show), or it will be smaller (in this case it will be centered at the
>>> device screen, and the left/top/right/bottom areas will show the
>> background
>>> color that was set in the standalone settings.
>>> 
>>> One might ask, what size should the images be then? Well, it depends on
>> the
>>> images (i.e. how much content they have at the center, and if you are OK
>> if
>>> some of the content at the edges is cropped etc). A rule of thumb - as I
>>> understand it - is the following:
>>> 
>>> -use a "small", a "medium" and a "large" image for each of the 1x, 2x and
>>> 3x slots, where "small" is the smallest image you used before the
>>> storyboard, "large" is the largest you used before, and "medium" is
>>> something in-between.
>>> 
>>> For example, you could try images with these dimensions:
>>> 
>>> - 1334x750
>>> - 2208x1242 (x2)
>>> - 2732x2048 (x3)
>>> 
>>> Hope this helps.
>>> 
>>> We will write a lesson for this topic soon.
>>> 
>>> Kind regards,
>>> Panos
>>> --
>>> 
>>> On Sat, 16 May 2020 at 17:49, Graham Samuel via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>>> This is not to answer my own question, but to emphasise the apparent
>>>> difficulty of getting this aspect of creating an iOS app right just by
>>>> using just LC and a reasonable graphics editor on a Mac. 

Re: iOS Provisioning Profile issue

2020-05-22 Thread Graham Samuel via use-livecode
Panos - thanks for asking

Yes it is - an iPhone XS which has been my key test device for weeks. Should I 
try it on the very latest version of LC? I had a download glitch last night so 
didn’t install it (the joys of rural broadband). 

Graham 


Sent from my iPhone

> On 22 May 2020, at 11:00, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Graham,
> 
> Is that the same iOS device you used when you could successfully
> install the app?
> 
> Kind regards,
> Panos
> --
> 
>> On Fri, 22 May 2020 at 11:52, Graham Samuel via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> I’ve been using XCode to load an app into my iPhone for some time now, but
>> today using LC 9.6.0 rc1, I got this refusal:
>> 
>>> A valid provisioning profile for this executable was not found.
>> 
>> As far as I’m concerned, I’ve got the same provisioning profile as I had a
>> few days ago, and it’s  been in the Standalone Settings for the app for
>> some time, when this version of LC did several successful updates.
>> 
>> Can anyone suggest what I’ve done wrong?
>> 
>> Graham
>> ___
>> 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


About box equivalent for mobile apps?

2020-05-22 Thread Graham Samuel via use-livecode
In desktop apps, at least on the Mac, one has an “About” box where you can put 
acknowledgements of the use of copyright material and any other info like the 
version number of the app. There isn’t such a provision in a mobile app, is 
there? Is there any convention for this that I’ve missed, or should I just wing 
it somehow?

Graham
___
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


iOS Provisioning Profile issue

2020-05-22 Thread Graham Samuel via use-livecode
I’ve been using XCode to load an app into my iPhone for some time now, but 
today using LC 9.6.0 rc1, I got this refusal:

> A valid provisioning profile for this executable was not found.

As far as I’m concerned, I’ve got the same provisioning profile as I had a few 
days ago, and it’s  been in the Standalone Settings for the app for some time, 
when this version of LC did several successful updates.

Can anyone suggest what I’ve done wrong?

Graham
___
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: Changing text properties in a field via the IDE

2020-05-19 Thread Graham Samuel via use-livecode
Well, I am happy to be wrong, so I repeated exactly what you did, of course 
using my own bit of styled text. It didn’t work - partly because I can only 
select the text in the field itself in ‘run’ mode, but I can only see the 
Inspector in ‘edit’ mode. When I switch between the two modes, I can’t do your 
(5), because I can’t select the text in the pane as you suggest.

I am sorry to be dumb - I expect you’re right, but it really doesn’t work for 
me.

Graham


> On 19 May 2020, at 19:53, Richard Gaskin via use-livecode 
>  wrote:
> 
> Graham Samuel wrote:
> 
> > To an ordinary LC developer, if you can change the properties of the
> > initial text (to a different size for example) without overtly
> > selecting it, then the same behaviour can be expected from the IDE
> > when trying to change text you’ve pasted in. It may or may not be
> > styled, but the confusing part is that selecting the text in the
> > Object Inspector has no effect...
> 
> I just tried this recipe:
> 
> 1. Paste styled text into a field
> 2. Choose pointer tool
> 3. Double-click the field to open the Inspector
> 4. In the Inspector, navigate to the Text pane
> 5. In that pane, select text, then type Ctrl-B
> 
> RESULT: Both the styled text in the Inspector and the styled text in the 
> field being inspected updates the contents to show the portion I'd changed to 
> bold.
> 
> Is that not working there?
> 
> -- 
> 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


___
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: Changing text properties in a field via the IDE

2020-05-19 Thread Graham Samuel via use-livecode
Well, Tore, I think this is a rather purist view! To an ordinary LC developer, 
if you can change the properties of the initial text (to a different size for 
example) without overtly selecting it, then the same behaviour can be expected 
from the IDE when trying to change text you’ve pasted in. It may or may not be 
styled, but the confusing part is that selecting the text in the Object 
Inspector has no effect, therefore the assumption is that all the text you see 
should logically be changed when you change a text property. Otherwise what’s 
the point of these properties being available in the Object Inspector?

I wonder what the mother ship will say.

Graham

> On 19 May 2020, at 14:46, Tore Nilsen via use-livecode 
>  wrote:
> 
> I am not sure this is a bug. When you use the normal paste function you 
> actually paste in styled text. New text, following the text you pasted in 
> will inherit the styling of the last character of the text you pasted into 
> the field. This then would work the same way as if you selected some text in 
> the field and altered the styling of this selected text. All unselected text 
> would adhere to the properties set in the Inspector. In my opinion this is 
> what you would expect from any text editor. If you would like to paste in 
> some text without the styling you should use «Paste Unformatted» in the IDE.
> 
> Regards
> Tore Nilsen
> 
>> 19. mai 2020 kl. 14:37 skrev Graham Samuel via use-livecode 
>> :
>> 
>> Yep, that was it! I had pasted some text from elsewhere. The text **looks** 
>> perfectly normal (and the count of characters is the same as in the visual 
>> representation of them, so none apparently hidden), but in some way it must 
>> mess up the functioning of the Property Inspector. As Ralph confirms, the 
>> initial text (in a Label Field, it’s just “Label:”) can be changed via the 
>> Property Inspector without being specifically selected - in fact you can’t 
>> select the ‘contents’ text in the Property Inspector display. So IMHO it’s a 
>> bug, if a minor one. Will report it, but I don’t expect a quick solution. 
>> Odd, though.
>> 
>> Thanks to Ralph and Richard
>> 
>> Graham
>> 
>>> On 18 May 2020, at 22:59, Ralph DiMola via use-livecode 
>>>  wrote:
>>> 
>>> Works OK on Mac and PC here LC 9.6 rc1. I created new stack put in a label 
>>> field. I did not change the default text. Could it be the actual text you 
>>> put in the field causing the PI problem for you?
>>> 
>>> Ralph DiMola
>>> IT Director
>>> Evergreen Information Services
>>> rdim...@evergreeninfo.net
>>> 
>>> 
>>> -Original Message-
>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
>>> Of Graham Samuel via use-livecode
>>> Sent: Monday, May 18, 2020 4:45 PM
>>> To: How to use LiveCode
>>> Cc: Graham Samuel
>>> Subject: Changing text properties in a field via the IDE
>>> 
>>> I’m using LC 9.6.0 rc1 on a Mac. Just now I did something very simple that 
>>> didn’t work. I created a label field, opened the Property Inspector for the 
>>> field and changed its text - that worked. Then I attempted to change the 
>>> font size - that didn’t work. The appearance of the label in the stack 
>>> itself didn’t change, nor could I change the font, make the text bold etc. 
>>> I tried this again with a regular field - same result. I started a new 
>>> stack with just the one field - same result. 
>>> 
>>> All these values can be changed by script, in the Message Box or elsewhere, 
>>> but I can’t make them in the IDE by changing values in the Property 
>>> Inspector.
>>> 
>>> What am I doing wrong?
>>> 
>>> Graham
>>> ___
>>> 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


___
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: Changing text properties in a field via the IDE

2020-05-19 Thread Graham Samuel via use-livecode
Yep, that was it! I had pasted some text from elsewhere. The text **looks** 
perfectly normal (and the count of characters is the same as in the visual 
representation of them, so none apparently hidden), but in some way it must 
mess up the functioning of the Property Inspector. As Ralph confirms, the 
initial text (in a Label Field, it’s just “Label:”) can be changed via the 
Property Inspector without being specifically selected - in fact you can’t 
select the ‘contents’ text in the Property Inspector display. So IMHO it’s a 
bug, if a minor one. Will report it, but I don’t expect a quick solution. Odd, 
though.

Thanks to Ralph and Richard

Graham

> On 18 May 2020, at 22:59, Ralph DiMola via use-livecode 
>  wrote:
> 
> Works OK on Mac and PC here LC 9.6 rc1. I created new stack put in a label 
> field. I did not change the default text. Could it be the actual text you put 
> in the field causing the PI problem for you?
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Graham Samuel via use-livecode
> Sent: Monday, May 18, 2020 4:45 PM
> To: How to use LiveCode
> Cc: Graham Samuel
> Subject: Changing text properties in a field via the IDE
> 
> I’m using LC 9.6.0 rc1 on a Mac. Just now I did something very simple that 
> didn’t work. I created a label field, opened the Property Inspector for the 
> field and changed its text - that worked. Then I attempted to change the font 
> size - that didn’t work. The appearance of the label in the stack itself 
> didn’t change, nor could I change the font, make the text bold etc. I tried 
> this again with a regular field - same result. I started a new stack with 
> just the one field - same result. 
> 
> All these values can be changed by script, in the Message Box or elsewhere, 
> but I can’t make them in the IDE by changing values in the Property Inspector.
> 
> What am I doing wrong?
> 
> Graham
> ___
> 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


Changing text properties in a field via the IDE

2020-05-18 Thread Graham Samuel via use-livecode
I’m using LC 9.6.0 rc1 on a Mac. Just now I did something very simple that 
didn’t work. I created a label field, opened the Property Inspector for the 
field and changed its text - that worked. Then I attempted to change the font 
size - that didn’t work. The appearance of the label in the stack itself didn’t 
change, nor could I change the font, make the text bold etc. I tried this again 
with a regular field - same result. I started a new stack with just the one 
field - same result. 

All these values can be changed by script, in the Message Box or elsewhere, but 
I can’t make them in the IDE by changing values in the Property Inspector.

What am I doing wrong?

Graham
___
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: Sad truth about iOS apps

2020-05-17 Thread Graham Samuel via use-livecode
Thanks - I hope I have the same experience as you - just bit the bullet and 
ordered a new iMac. 

Graham

Sent from my iPhone

> On 17 May 2020, at 18:47, Dev via use-livecode 
>  wrote:
> 
> No problems on two machines here with Catalina and Mail. 
> 
> Sent from my iPhone
> 
>> On May 17, 2020, at 1:32 AM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> There is a consistent tale (more than a rumour, I think) that Catalina can 
>> mess up some people's mail messages, if you use Apple Mail. Did that affect 
>> you? It’s the thing about Catalina that scares me most - after all, we’ve 
>> had lots of warning about 32 bit apps.
>> 
>> Graham
>> 
>>>> On 17 May 2020, at 00:01, kee nethery via use-livecode 
>>>>  wrote:
>>> 
>>> Replaced or just deleted any 32 bit apps I had. Opened files in 32 bit apps 
>>> and converted them into something else, typically Text or PDF. Lots of 
>>> files I printed to PDF and stored the PDF versions. 
>>> 
>>> Bought some software to open MacDraw files and save them as PDF.
>>> 
>>> I had some WriteNow files that I had to move to a really old laptop, print 
>>> to PDF, and then move back. 
>>> 
>>> All in all, I’m pretty sure that every file I now have can be viewed under 
>>> Catalina. And thus, I have migrated to Catalina. It took a bunch of time, 
>>> but hey, have lots of time right now.
>>> 
>>> Kee
>>> 
>>>>> On May 16, 2020, at 6:40 AM, Rick Harrison via use-livecode 
>>>>>  wrote:
>>>> 
>>>> For those who upgrade to Catalina, remember you will lose any 32 bit apps
>>>> as Apple has forced everyone to move to 64 bit apps.
>>>> 
>>>> Good luck!
>>>> 
>>>> Rick
>>>> 
>>>>> On May 16, 2020, at 5:42 AM, Erik Beugelaar via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Update: You can direclty upgrade from High Sierra to Catalina using the 
>>>>> macOS Catalina Patcher.
>>>>> Be sure that High Sierra is up-to-date and using APFS (new Apple File 
>>>>> System) instead of HFS+.
>>>> 
>>>> ___
>>>> 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

___
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: Sad truth about iOS apps

2020-05-17 Thread Graham Samuel via use-livecode
There is a consistent tale (more than a rumour, I think) that Catalina can mess 
up some people's mail messages, if you use Apple Mail. Did that affect you? 
It’s the thing about Catalina that scares me most - after all, we’ve had lots 
of warning about 32 bit apps.

Graham

> On 17 May 2020, at 00:01, kee nethery via use-livecode 
>  wrote:
> 
> Replaced or just deleted any 32 bit apps I had. Opened files in 32 bit apps 
> and converted them into something else, typically Text or PDF. Lots of files 
> I printed to PDF and stored the PDF versions. 
> 
> Bought some software to open MacDraw files and save them as PDF.
> 
> I had some WriteNow files that I had to move to a really old laptop, print to 
> PDF, and then move back. 
> 
> All in all, I’m pretty sure that every file I now have can be viewed under 
> Catalina. And thus, I have migrated to Catalina. It took a bunch of time, but 
> hey, have lots of time right now.
> 
> Kee
> 
>> On May 16, 2020, at 6:40 AM, Rick Harrison via use-livecode 
>>  wrote:
>> 
>> For those who upgrade to Catalina, remember you will lose any 32 bit apps
>> as Apple has forced everyone to move to 64 bit apps.
>> 
>> Good luck!
>> 
>> Rick
>> 
>>> On May 16, 2020, at 5:42 AM, Erik Beugelaar via use-livecode 
>>>  wrote:
>>> 
>>> Update: You can direclty upgrade from High Sierra to Catalina using the 
>>> macOS Catalina Patcher.
>>> Be sure that High Sierra is up-to-date and using APFS (new Apple File 
>>> System) instead of HFS+.
>> 
>> ___
>> 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: LC 9.6.0 RC1 Splash/Launch Images

2020-05-16 Thread Graham Samuel via use-livecode
This is not to answer my own question, but to emphasise the apparent difficulty 
of getting this aspect of creating an iOS app right just by using just LC and a 
reasonable graphics editor on a Mac. It means to me that a lot of careful 
instructions need to be provided by somebody in the LC universe, since the 
policy (I sincerely hope!) is to get LC developers to avoid getting deep into 
XCode. I found this, which frankly scares me.

https://wiki.starling-framework.org/manual/ios_launch_images

 Can anyone help me to a less nerdy way of getting this right? I don’t even 
know what a storyboard is!

Graham

> On 16 May 2020, at 00:40, Graham Samuel via use-livecode 
>  wrote:
> 
> I see that the iOS Standalone Settings have changed in this version, no doubt 
> to accommodate Apple’s new rules. One is required to provide six images as 
> “Launch Images” under the “Splash” tab. It seems that there’s an image, a 2x 
> image and a 3x image, and then another three for dark mode.
> 
> There is no tooltip to suggest how large these images should be - in previous 
> versions they had to be tailored to different device screen sizes. Now it 
> seems anything goes, or does it?
> 
> Can anyone explain what the dimensions of these images are supposed to be? 
> Does “2x” just mean twice the original size in each direction or what? Can’t 
> see anything in the release notes, but maybe I wasn’t paying attention.
> 
> Graham
> ___
> 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


LC 9.6.0 RC1 Splash/Launch Images

2020-05-15 Thread Graham Samuel via use-livecode
I see that the iOS Standalone Settings have changed in this version, no doubt 
to accommodate Apple’s new rules. One is required to provide six images as 
“Launch Images” under the “Splash” tab. It seems that there’s an image, a 2x 
image and a 3x image, and then another three for dark mode.

There is no tooltip to suggest how large these images should be - in previous 
versions they had to be tailored to different device screen sizes. Now it seems 
anything goes, or does it?

Can anyone explain what the dimensions of these images are supposed to be? Does 
“2x” just mean twice the original size in each direction or what? Can’t see 
anything in the release notes, but maybe I wasn’t paying attention.

Graham
___
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: Sad truth about iOS apps

2020-05-15 Thread Graham Samuel via use-livecode
Very sincere thanks to all who replied - I will explore all your solutions and 
insights.

If I get that far (to make an acceptable version of my app bundle) I will also 
have to solve a number of errors that the Loader reported. For instance:

> The Key UIUUserInterfaceStyle … in the Payload/Myapp.appinfo.plist is invalid

Difficult, as I don’t know what that means.

I can cope with the requirement for different PNG files of certain precise 
sizes not mentioned in the LC Standalone Settings, e.g.

> The bundle does not contain an app icon for iPad of exactly '76x76' pixels, 
> in .png format for iOS versions >= 7.0. To support older operating systems, 
> the icon may be required in the bundle outside of an asset catalog. Make sure 
> the Info.plist file includes appropriate entries referencing the file.  


but the references to where they should be placed mean nothing to me. Here’s 
another one:

> ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an 
> app icon for iPad of exactly '152x152' pixels, in .png format for iOS 
> versions >= 7.0. To support older operating systems, the icon may be required 
> in the bundle outside of an asset catalog. Make sure the Info.plist file 
> includes appropriate entries referencing the file. 

I had hoped that LC would look after the positioning of all this stuff for me - 
I believe I supplied all the PNGs that the LC Settings asked for, but of course 
I will check.

The Xcode documentation of course assumes that one’s app is a project within 
the XCode universe,which AFAIK doesn’t apply to LC projects, so it’s not much 
help, at least not to me.

Is there a way out of this confusion?

Graham

> On 15 May 2020, at 18:02, I wrote:
> As many of you will know, I have been struggling to create an iPhone app - 
> very unfamiliar territory for  me. It’s been an education. Without help from 
> this list and the mother ship I would have been dead in the water long ago. 
> Finally I can see the (beta version of) the app running on my iPhones - 
> yipee! The next step is to get it out there via TestFlight so that a few 
> friends can mess with it.
> 
> I just went through all the hoops with the Apple App Store to reach the magic 
> TestFlight stage, using the XCode Application Loader. Things looked good 
> until this:
> 
>> ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 
>> SDK. New apps for iPhone or iPad must be built with the iOS 13 SDK or later.”
> 
> My iMac can only run High Sierra, and High Sierra can only run XCode 10.1, 
> and AFAIK that version of XCode only runs SDK 12.1. I think that means I get 
> a new Mac or give up.
> 
> Please tell me if I’m wrong.
> 
> Graham
> 
> PS I would really like a new Mac, but the budget is the problem!


___
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


Sad truth about iOS apps

2020-05-15 Thread Graham Samuel via use-livecode
As many of you will know, I have been struggling to create an iPhone app - very 
unfamiliar territory for  me. It’s been an education. Without help from this 
list and the mother ship I would have been dead in the water long ago. Finally 
I can see the (beta version of) the app running on my iPhones - yipee! The next 
step is to get it out there via TestFlight so that a few friends can mess with 
it.

I just went through all the hoops with the Apple App Store to reach the magic 
TestFlight stage, using the XCode Application Loader. Things looked good until 
this:

> ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 
> SDK. New apps for iPhone or iPad must be built with the iOS 13 SDK or later.”

My iMac can only run High Sierra, and High Sierra can only run XCode 10.1, and 
AFAIK that version of XCode only runs SDK 12.1. I think that means I get a new 
Mac or give up.

Please tell me if I’m wrong.

Graham

PS I would really like a new Mac, but the budget is the problem!
___
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: Again not quite OT - freeware licence agreement?

2020-05-14 Thread Graham Samuel via use-livecode
Thanks Randy, that’s really helpful. I am tempted to say I have now spent more 
time trying to get my Apple submission in shape than I did designing and coding 
my app in the first place - not really true when I consider the debugging 
problems I’ve had, but it was still a significant chunk. I guess it will be 
easier next time.

Graham

> On 14 May 2020, at 19:59, Randy Hengst via use-livecode 
>  wrote:
> 
> Hi Graham,
> 
> All of my iOS apps are free… all iOS apps on the Apple App Store fall under 
> at least the default end user agreement… found here:
> https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ 
> <https://www.apple.com/legal/internet-services/itunes/dev/stdeula/>
> 
> I listed this link on my website within the privacy statement.
> 
> be well,
> randy
> www.classroomFocusedSoftware.com
> 
> 
>> On May 14, 2020, at 12:47 PM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> I’ve built an iPhone app with LC which I intend to distribute without 
>> charge. Obviously I have to ban the user from reverse engineering, 
>> on-selling at a profit etc. This must be quite a common requirement, but my 
>> attempts to search for such a licence have proved rather confusing.
>> 
>> Has anyone got any recommendations? As usual, I’m having to provide this 
>> before Apple will even look at my app.
>> 
>> Graham
>> ___
>> 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


Again not quite OT - freeware licence agreement?

2020-05-14 Thread Graham Samuel via use-livecode
I’ve built an iPhone app with LC which I intend to distribute without charge. 
Obviously I have to ban the user from reverse engineering, on-selling at a 
profit etc. This must be quite a common requirement, but my attempts to search 
for such a licence have proved rather confusing.

Has anyone got any recommendations? As usual, I’m having to provide this before 
Apple will even look at my app.

Graham
___
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: Small and strange problem

2020-05-14 Thread Graham Samuel via use-livecode
Hi Paul

Sorry for the delay in replying but my house has just been inundated (it 
happened on Monday and we are still clearing up! Worst flood in more than 40 
years in my French village). Anyway, the bug is registered as 22730. The 
problem is acknowledged - as I said in my submission, I’m not claiming my 
coding is correct, I’m just trying to show that the IDE doesn’t behave 
consistently in this instance.

Graham

> On 11 May 2020, at 23:18, Paul Hibbert via use-livecode 
>  wrote:
> 
> Good point Ben, looks like that was my mistake. I don’t remember where I 
> learned to use "if tError then”, but what I forgot was that it should have 
> been testing for a false condition, so “if not tError then” does show the 
> error when one occurs and skips when no error occurs.
> 
> Fixing this returns the following error when tMins contains a non numeric 
> character;
> An Error Occurred; 375,5,1
> 239,5,1
> 465,5,1
> tMins = 31′
> 
> These are the corresponding LC Error Codes;
> 375   Operators /: error in left operand
> 239   Operators (): error in right operand
> 465   put: error in expression
> 
> So it seems the value passed to tMins may contain invalid character(s) as 
> Graham suspects. However, this doesn’t explain why the original script should 
> behave differently using the debugger and not.
> 
> @Graham, can you post the Bug Report Number please?
> 
> Paul
> 
> 
>> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>>  wrote:
>> 
>> And re this part:
>> 
 Interestingly this
 
 on mouseUp pMouseButton
  try
put (tMins/60) into tMins
  catch tError
if tError then answer "An Error Occurred;"  && tError & return & "tMins 
 =" && tMins
  end try
 end mouseUp
 
 does NOT through an error or a catch error message
>> 
>> You're not seeing that there was an error thrown because 'tError' would be 
>> set to the error message; the code above is testing for it being true, 
>> before deciding to display the message. But it won't be true it, it will be 
>> an expression of the error. If you removed "if tError then", so always 
>> execute the answer statement in the catch section, you should see the error 
>> message.
>> 
>> HTH,
>> 
>> Ben
>> 
>> 
>> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
>>> Hi Andy,
>>> Yes, tMins has to have a value or the statement makes no sense because LC 
>>> has no
>>> context for what you are trying to do.  LC doesn’t know if tMins is a 
>>> string or something else.
>>> Rick
 On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
  wrote:
 
 I seem to have my posts dropped at the moment hence this,
 
 I'm seeing the same error
 
 with
 
 on mouseUp pMouseButton
 put (tMins/60) into tMins
 answer tMins
 end mouseUp
 
 button "Button": execution error at line 2 (Operators /: error in left 
 operand), char 1
 
 Interestingly this
 
 on mouseUp pMouseButton
 try
   put (tMins/60) into tMins
 catch tError
   if tError then answer "An Error Occurred;"  && tError & return & "tMins 
 =" && tMins
 end try
 end mouseUp
 
 does NOT through an error or a catch error message
 
 
 If however tMins is initialized then all works as expected
 
 on mouseUp pMouseButton
 put 20 into tMins
 put (tMins/60) into tMins
 answer tMins
 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
> 
> 
> ___
> 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: Small and strange problem

2020-05-11 Thread Graham Samuel via use-livecode
I set this hare running initially. I really do think there is a bug, because 
the thing works when stepped through but not if it’s allowed to run without 
interruption. In the stepped-through activity it’s easy to see that tMins does 
have a value. In my example it’s 31, or maybe it’s a string of which the 
visible part is “31”. But the fact remains the script behaves in two different 
ways, at least on my computer.

As I tiny bit of background, the script tries to parse a string that represents 
a longitude, copied from a web site. It certainly has some weird characters in 
it, but I thought I’d got round then. FWIW, the string is 

004° 31′ 50″ W

I am going to report it to the mother ship

Graham

> On 11 May 2020, at 16:31, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Andy,
> 
> Yes, tMins has to have a value or the statement makes no sense because LC has 
> no
> context for what you are trying to do.  LC doesn’t know if tMins is a string 
> or something else.
> 
> Rick
> 
> 
>> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>>  wrote:
>> 
>> I seem to have my posts dropped at the moment hence this,
>> 
>> I'm seeing the same error
>> 
>> with 
>> 
>> on mouseUp pMouseButton
>> put (tMins/60) into tMins
>> answer tMins
>> end mouseUp
>> 
>> button "Button": execution error at line 2 (Operators /: error in left 
>> operand), char 1
>> 
>> Interestingly this
>> 
>> on mouseUp pMouseButton
>> try
>>   put (tMins/60) into tMins
>> catch tError
>>   if tError then answer "An Error Occurred;"  && tError & return & "tMins =" 
>> && tMins
>> end try
>> end mouseUp
>> 
>> does NOT through an error or a catch error message
>> 
>> 
>> If however tMins is initialized then all works as expected
>> 
>> on mouseUp pMouseButton
>> put 20 into tMins
>> put (tMins/60) into tMins
>> answer tMins
>> end mouseUp
>> 
>> ???
>> 
>> 
>> _
>> Sent from http://runtime-revolution.278305.n4.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
> 
> 
> ___
> 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: Not quite OT: Privacy Policy

2020-05-10 Thread Graham Samuel via use-livecode
Thanks Jacque and JB. Sound advice, which I will instantly take.

Graham

PS I was surprised on Googling all this that there are paid-for generators for 
this kind of thing, including Cookie policies etc. I suppose it makes sense to 
some, but I would personally not wish to go down that path even if my needs 
were more complex. Legal mumbo-jumbo indeed.

> On 10 May 2020, at 06:23, JB via use-livecode  
> wrote:
> 
> Even if Apple does read them you satisfied the reason
> for Apple to inform people on how your app is used.  It
> is not an intent of Apple to force you to use a lawyer or
> require you to explain your app in legal mumbo jumbo.
> 
> Most people would rather read your honest explanation
> than read the ones written by attorneys.
> 
> JB
> 
> 
>> On May 9, 2020, at 8:38 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> I wrote a very short paragraph saying the app had no internet connection and 
>> no special permissions, that no data was ever sent, and that information was 
>> only stored locally on the user's device. I think it was only two or three 
>> sentences. I stuck it on my web site and it was fine. I kind of doubt Apple 
>> ever reads those.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On May 9, 2020 5:04:01 PM Graham Samuel via use-livecode 
>>  wrote:
>> 
>>> I find that to publish an app on the Apple App Store, or even reach the 
>>> TestFlight stage, I need a Privacy Policy. This for an app that collects no 
>>> personal data and doesn’t use the internet. Frankly I’m thinking of copying 
>>> and adapting a PL from another app that is similarly simple, rather than 
>>> using an overly complex generated one. How do others cope with this?
>>> 
>>> Graham
>>> 
>>> Sent from my iPhone
>>> ___
>>> 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


Not quite OT: Privacy Policy

2020-05-09 Thread Graham Samuel via use-livecode
I find that to publish an app on the Apple App Store, or even reach the 
TestFlight stage, I need a Privacy Policy. This for an app that collects no 
personal data and doesn’t use the internet. Frankly I’m thinking of copying and 
adapting a PL from another app that is similarly simple, rather than using an 
overly complex generated one. How do others cope with this?

Graham

Sent from my iPhone
___
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


Small and strange problem

2020-05-09 Thread Graham Samuel via use-livecode
I’m using LC 9.6.0 dp4 and 9.5.1 - this issue is seen in both versions.

I have a script with a very simple statement:
  put (tMins/60) into tMins

tMins contains a number, and as expected I get a numeric result, for example if 
tMins is 31, I get 0.516667

but ONLY when I step through the script in the IDE. If I let the script run, 
the IDE reports an error:

> Execution error (operators /: error in left operand, char 1


Either there’s an error or there isn’t. What can be wrong? I suppose as usual 
it’s me, but I am foxed.

Graham
___
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: Has anyone experience of GPS on iPhone?

2020-05-08 Thread Graham Samuel via use-livecode
Thanks Richard

Your info is interesting and scary!

Please see my generalised reply, just published.

Graham

> On 6 May 2020, at 21:21, Hillen Richard via use-livecode 
>  wrote:
> 
> Hello Graham,
> 
> 20 years ago I started to use GPS-technique and found the same mysteries as 
> you do now.
> 
> I learned that there a two main reason for the variation of location data:
> 
> Atmosperic density variations cause short term runtime variations and
> Different relativ positions of satellites cause long term triangulation 
> errors.
> 
> So I sampled at a constant location over some days the position data 
> delivered from a gps-receiver taken every 10 seonds.
> 
> First I plotted the data and found that there were local shorttime-variations 
> around a center, which was wandering slowly over the plot-area. The 
> shorttime-fluctuations were most in a range of +-5m, the longtime-area showed 
> - if I remember right - a radius from +-20m.
> 
> After that I started to calculate time-series of mean-values over different 
> minute-intervalls and learned by plotting the result again, how to smooth my 
> data best.
> 
> Nowadays you will of course get smaller short-time variations using the more 
> intelligent gps-receiver of an iphone, but it probably gives you an 
> impression about what is going on there.
> 
> Richard.
> 
> 
> 
>> 
>> Message: 17
>> Date: Wed, 6 May 2020 15:09:16 +0200
>> From: Graham Samuel 
>> To: How to use LiveCode 
>> Subject: Re: Has anyone experience of GPS on iPhone?
>> Message-ID: <074980d0-f69d-45af-9891-5ceb351f3...@mac.com>
>> Content-Type: text/plain;charset=utf-8
>> 
>> Bill, I think you are confirming that there is some mystery here. There are 
>> a lot of apps that seem to get location, and measures derived from location, 
>> almost completely right, whereas I am having trouble doing so with what must 
>> be the same essential data.
>> 
>> Take the problem of measuring the length of a country walk (I mean a walk 
>> not in a straight line). My basic approach is to process locationChanged 
>> messages, which unsurprisingly are triggered every time the GPS-measured 
>> location changes. So as not to get overwhelmed with very small, frequent 
>> changes, I only process a locationChanged message every 3 seconds - I know 
>> at least one other app that does this. As a person probably walks up to two 
>> metres a second, this fits in with what we know about accuracy, I think. The 
>> method is very simple. Every time we respond to a locationChanged message, 
>> we work out the straight line distance delta as in
>> 
>> delta = (where we were 3 seconds ago) - (where we are now)
>> 
>> Ignoring the sign of the result, of course. This can be done by Haversine or 
>> similar algorithms for measuring short distances on the Earth?s surface - 
>> it?s essentially a Pythagoras calculation. Then we add up all the deltas and 
>> we know how far we walked on the trip with a fair if not complete degree of 
>> accuracy - easy! 
>> 
>> Only there are complications. Of course if any delta is zero, it doesn?t 
>> contribute to the trip; but what if it?s **nearly** zero - is it sensible to 
>> ignore very small deltas on the grounds that they are due to GPS wobble, or 
>> should we put them all in? 
>> 
>> Here?s what happened when I tried to do it: first I calculated the deltas to 
>> two decimal places, and I found that I was badly underestimating the 
>> distance walked; so then I pushed up the accuracy of the calculation to 5 
>> decimal places. Sure enough, the measured route got longer in kilometers, 
>> until I noticed that if I simply put the phone on the grass and left it, so 
>> it wasn?t moving at all, in about 45 minutes I?d accumulated a completely 
>> spurious half a kilometre of walking! The small variations in the GPS signal 
>> (what I call the wobble) must have been responsible, since there was no 
>> other source of data but the GPS reading.
>> 
>> How then to avoid either under- or over-estimating the trip distance? Plenty 
>> of apps have done it but I just can?t see how, although I keep tinkering 
>> with the parameters. Of course I can never forget that my scripting might 
>> just be plain wrong, but so far my incremental method hasn?t worked 
>> sufficiently well, in the sense that if run the app and choose to walk in an 
>> exact straight line, I can compare a single measure of distance from the 
>> starting point with my integral approach. So far the result is not even 
>> close. As you say, intensive Internet searches are called for.
>> 
>> I wish all this were easier.
>> 
>> Graham
>> 
> 
> 
> ___
> 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 

Re: Has anyone experience of GPS on iPhone?

2020-05-08 Thread Graham Samuel via use-livecode
Just to conclude the tale: I have consulted the developers of one of my 
favourite apps that tells you how far you’ve walked or cycled (maybe long 
journeys as on sees on car satnavs are a different proposition, and I am not so 
interested in these for my own purposes). I am not revealing any secrets when I 
say that the lead guy reports that they have dedicated "tens of thousands of 
lines of code” to the issue. True, they cope with elevation, which I was 
planning to ignore, but nevertheless their ways of handling changes in accuracy 
include several things like reasonableness checks, so not even just simple 
curve-fitting.

In my particular circumstances and with my own limited skills I have simply 
decided to give up on that part of my app. A user can run another app 
simultaneously to mine to find out how far they’ve travelled - that’s easy. So, 
a wiser and a sadder man, I will try to finish what I started but with limited 
functionality.

Thanks to everyone who chipped in with advice, facts etc.

Graham

> On 6 May 2020, at 18:24, Graham Samuel via use-livecode 
>  wrote:
> 
> Mark, thanks for that contribution. Looks like more maths is needed. I will 
> follow up on your approach, as mine really only works if all GPS readings are 
> nearly accurate. As I have seen accuracies (really inaccuracies!) as large as 
> 65 metres even after a settling-down period, a few of those will certainly 
> put the integral-style calculation way out.
> 
> Really for this part of my app I need to emulate the work done in dozens of 
> trekking apps available in lots of countries. I have one sneaky idea, which 
> is to approach the developers of one of my favourite apps, since I have had 
> some contact with them on other matters, and just see if they might tell me 
> their approach - I can easily show that I am not a competitor! But that’s not 
> an approach I can rely on, of course!
> 
> I will keep plugging away even though the initial motivation for my app 
> (local lockdown) is probably going away. Hard to give up now.
> 
> Thanks everyone for their input.
> 
> Graham
> 
>> On 6 May 2020, at 16:52, Mark Waddingham via use-livecode 
>>  wrote:
>> 
>> On 2020-05-06 14:09, Graham Samuel via use-livecode wrote:
>>> Bill, I think you are confirming that there is some mystery here.
>>> There are a lot of apps that seem to get location, and measures
>>> derived from location, almost completely right, whereas I am having
>>> trouble doing so with what must be the same essential data.
>>> How then to avoid either under- or over-estimating the trip distance?
>>> Plenty of apps have done it but I just can’t see how, although I keep
>>> tinkering with the parameters. Of course I can never forget that my
>>> scripting might just be plain wrong, but so far my incremental method
>>> hasn’t worked sufficiently well, in the sense that if run the app and
>>> choose to walk in an exact straight line, I can compare a single
>>> measure of distance from the starting point with my integral approach.
>>> So far the result is not even close. As you say, intensive Internet
>>> searches are called for.
>> 
>> I'm pretty sure that the data you are getting is precisely what all other 
>> apps will get - we are just returning the location data as provided by 
>> CoreLocation. The difference will be the analysis which these apps are doing 
>> on the data to derive an accurate assessment of the route taken I'd imagine. 
>> Indeed, it could be they also take into account other senses (compass and 
>> accelerometer) to help - but I don't know that for sure.
>> 
>> There are two functions which might help you with your endeavour:
>> 
>> mobileSetLocationHistoryLimit
>> mobileGetLocationHistory()
>> 
>> The details are in the docs, but basically the engine can collect and keep a 
>> list of locations which you can collect periodically.
>> 
>> I suspect the way to think about this is not to think about it as an 
>> incremental thing at all as any outliers will completely destroy the 
>> accuracy. Instead imagine it as a 'curve-fitting' exercise (piece-wise 
>> linear approximation is probably sufficient!) - i.e. taking sets of 
>> (slightly) overlapping samples and derive a 'best-guess' path which fits the 
>> data.
>> 
>> It is likely that some cleaning of the data would be needed first to 
>> eliminate outliers also. e.g. You can compute speed needed to get between 
>> individual points, if any given point is outside of a reasonable range of 
>> 'current' speed with approximated acceleration/deceleration taken into 
>> accoun

  1   2   3   4   >