From MikeKerner at roadrunner.com Sat May 1 11:30:48 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 1 May 2021 11:30:48 -0400 Subject: dg with native controls in template In-Reply-To: <4ADC1314-F0C6-4C0A-8F73-3AF0409AF6E9@milby7.com> References: <4ADC1314-F0C6-4C0A-8F73-3AF0409AF6E9@milby7.com> Message-ID: The layering was what I was concerned about, too. On Fri, Apr 30, 2021 at 1:24 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I?m going to say that with the way the DG manages controls it would be an > uphill battle to get something native to work. One of the native widgets > may work, but I have not purchased that set to test it out. The one > potential issue would be layers. Since native controls layer on top of LC > controls, if the control was supposed to be partially visible it may be > fully visible (not sure if the group would clip it properly). > > Sent from my iPhone > > > On Apr 30, 2021, at 9:47 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > ?not a terrible idea. > > We could probably also just set the hilite of a row. > > Something I've never tried: different hilite colors based on values in > the > > rows... > > > >> On Thu, Apr 29, 2021 at 3:48 PM Mark Smith via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> You can put an SVG Icon or a graphic image into a DG column, would > either > >> of those work? Then you just need to script the behaviour of the widget > or > >> graphic when it?s tapped on. I do something similar with check and > uncheck > >> SVG icons. > >> > >>> On Apr 29, 2021, at 8:23 PM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Let's say we want to have a scrolling area, like a DG, and we want one > of > >>> the columns in that thing to be a native radio button on mobile, which > we > >>> can activate with touch. > >>> I'm not aware of a way to do that in LC at present. > >>> Yes? > >>> No? > >>> Maybe so? > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From brahma at hindu.org Sat May 1 13:33:09 2021 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 1 May 2021 17:33:09 +0000 Subject: iOS Transporter - "embedded.mobileprovision" is missing a provision Message-ID: SivaSiva app is built. And embedded.mobileprovision is clearly there. Was does it say? ----- DELIVERY FAILED ON APR 30, 2021 AT 7:30 AM 1 ISSUE ERROR ITMS-90174: "Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision." In Requirements I have ?Background Audio? is checked in I have zero Splash Screen I can Test to my iphone through SivaSiva Development. But SivaSiva App Store doesn?t work. I can check the ?Beta version? or not. Still get the issue: ERROR ITMS-90174: "Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision." ?? BR From marksmithhfx at gmail.com Sun May 2 11:21:45 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 2 May 2021 16:21:45 +0100 Subject: Complete Crash or Engine Hang: which is better? In-Reply-To: <821850d3-9689-876e-42ab-0105e52fc15a@fourthworld.com> References: <6FDD5A12-55D5-4762-AD8B-61D59F4CCDF6@gmail.com> <821850d3-9689-876e-42ab-0105e52fc15a@fourthworld.com> Message-ID: Frightening and wonderful at the same time. When I did these exercises and then copy pasted a styledText string from LC into TextEdit, it was interesting to see what they agreed on, and what they didn't. For example, when colouring ?numbers? both fields ignored numbers followed by ?,? but not by a ?.? So they were in agreement there. However, words containing a ?y? were italicized in LC (that was the request) but interpreted as bold/underlined in TextEdit? More remarkably, I have no idea how they can stuff that much style info into a text string ? Mark > On Apr 29, 2021, at 7:23 PM, Richard Gaskin via use-livecode wrote: > > Mark Smith wrote: > > > Thanks Richard, that probably explains it. There are style runs in > > the TextEdit text (and not, say, in Atom or some other editor). It > > was just odd to me because I think (quite simplistically) of text > > being text and not expecting them to have style runs, but of course > > they can. > > Here's a fun exercise, well worth a few minutes of playing around: make a field, style some text in it, make a tree widget, and run this in the Message Box: > > set the arrayData of widget 1 to the styledText of fld 1 > > The styledText array is a great representation of field contents, much faster to work with than most HTML-parsing methods, and offering good insight into the internals of LC fields, being the closes match we have from a scripting interface to the underlying field structures. > > The v5.something engine added some super-awesome text properties, with paragraph-level formatting and more. Seeing them laid out in array format (the tree widget is great for that) really illuminates how things are laid out. > > > > This also began because not only could I not change my text, someone > > else previously had this problem and eventually fixed it by deleting > > the fields and starting over > > (https://forums.livecode.com/viewtopic.php?f=7&t=32727) > > Yeah, I posted pretty much the same comment there, but like much of what I used to write in the forums it was ignored in favor of doing a lot of unnecessary work. :) > > > > I now suspect it may have been style runs in their text as well. > > When things show up that look like extreme problems that would affect nearly every user, it's probably not a regression. Not that the team's automated testing can catch everything (though it catches a lot), but just that bugs that affect large numbers of people in ways that prevent core use of the product generally don't live long, if they live long enough to get past early beta at all. > > So if we truly had mysteriously immutable text styling, chances are good it would be caught in a Preview build, long before RC. Good enough to check style runs, anyway. :) > > > > I don?t tend to run into this sort of problem because I?m rarely > > concerned with the style of text, but in this particular case I > > actually did want to change the font size and color and couldn?t, > > and that had me puzzled. Ok good, I think you've solved this. > > Thanks for weighing in. > > Happy to help others avoid pitfalls I've run into myself. I hope that solves it for you. > > I had a head-scratching moment over exactly this many years ago. Just sharing what I've learned, so others don't have to replicate my mistakes. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Mon May 3 06:00:58 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Mon, 3 May 2021 12:00:58 +0200 Subject: where do I find the notarization log? Message-ID: <009d01d74003$38076fd0$a8164f70$@kestner.de> Hello, I successfully signed a dmg and wanted to notarize it via terminal with Matthias codesigning guidelines: xcrun altool -type osx --notarize-app --primary-bundle-id "de.kestner.dgslernupdate.dmg" --username "" --password "" --file "/Users/tiemohollmann/Desktop/DGSlern_Update_1.0.0.4.dmg" The file was accepted and uploaded, but I got an email from Apple, that the file was not notarized and I should review the notarization log with xCode or altool. I can't find these logs. Mac search doesn't find anything with "altool" Can anybody point me to the location, where I find this notarizing log? Thank you Tiemo From merakosp at gmail.com Mon May 3 06:24:38 2021 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 3 May 2021 13:24:38 +0300 Subject: where do I find the notarization log? In-Reply-To: <009d01d74003$38076fd0$a8164f70$@kestner.de> References: <009d01d74003$38076fd0$a8164f70$@kestner.de> Message-ID: Hello Tiemo, I think the email you got from Apple should have a link where you can view the log. Cheers, Panos -- On Mon, 3 May 2021 at 13:02, Tiemo via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello, > > > > I successfully signed a dmg and wanted to notarize it via terminal with > Matthias codesigning guidelines: > > xcrun altool -type osx --notarize-app --primary-bundle-id > "de.kestner.dgslernupdate.dmg" --username "" --password > "" --file > "/Users/tiemohollmann/Desktop/DGSlern_Update_1.0.0.4.dmg" > > The file was accepted and uploaded, but I got an email from Apple, that the > file was not notarized and I should review the notarization log with xCode > or altool. > > > > I can't find these logs. Mac search doesn't find anything with "altool" > > Can anybody point me to the location, where I find this notarizing log? > > Thank you > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Mon May 3 06:35:55 2021 From: merakosp at gmail.com (panagiotis merakos) Date: Mon, 3 May 2021 13:35:55 +0300 Subject: where do I find the notarization log? In-Reply-To: References: <009d01d74003$38076fd0$a8164f70$@kestner.de> Message-ID: Hello Tiemo, Sorry, it seems this is no longer the case (i.e. the email from Apple no longer contains the notarization log URL). In this case, you can use the command that is described in section 6.3. Check the status of analysis of Matthias' lesson ( https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore ). The output of this command will contain a URL, which you can visit to see the detailed logs. Kind regards, Panos -- On Mon, 3 May 2021 at 13:24, panagiotis merakos wrote: > Hello Tiemo, > > I think the email you got from Apple should have a link where you can view > the log. > > Cheers, > Panos > -- > > On Mon, 3 May 2021 at 13:02, Tiemo via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hello, >> >> >> >> I successfully signed a dmg and wanted to notarize it via terminal with >> Matthias codesigning guidelines: >> >> xcrun altool -type osx --notarize-app --primary-bundle-id >> "de.kestner.dgslernupdate.dmg" --username "" --password >> "" --file >> "/Users/tiemohollmann/Desktop/DGSlern_Update_1.0.0.4.dmg" >> >> The file was accepted and uploaded, but I got an email from Apple, that >> the >> file was not notarized and I should review the notarization log with xCode >> or altool. >> >> >> >> I can't find these logs. Mac search doesn't find anything with "altool" >> >> Can anybody point me to the location, where I find this notarizing log? >> >> Thank you >> >> Tiemo >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From toolbook at kestner.de Mon May 3 07:38:34 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Mon, 3 May 2021 13:38:34 +0200 Subject: AW: where do I find the notarization log? In-Reply-To: References: <009d01d74003$38076fd0$a8164f70$@kestner.de> Message-ID: <00b101d74010$da4924c0$8edb6e40$@kestner.de> Thank you Panos, found it Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von panagiotis merakos via use-livecode Gesendet: Montag, 3. Mai 2021 12:36 An: How to use LiveCode Cc: panagiotis merakos Betreff: Re: where do I find the notarization log? Hello Tiemo, Sorry, it seems this is no longer the case (i.e. the email from Apple no longer contains the notarization log URL). In this case, you can use the command that is described in section 6.3. Check the status of analysis of Matthias' lesson ( https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-you r-lc-standalone-for-distribution-outside-the-mac-appstore ). The output of this command will contain a URL, which you can visit to see the detailed logs. Kind regards, Panos -- On Mon, 3 May 2021 at 13:24, panagiotis merakos wrote: > Hello Tiemo, > > I think the email you got from Apple should have a link where you can > view the log. > > Cheers, > Panos > -- > > On Mon, 3 May 2021 at 13:02, Tiemo via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hello, >> >> >> >> I successfully signed a dmg and wanted to notarize it via terminal >> with Matthias codesigning guidelines: >> >> xcrun altool -type osx --notarize-app --primary-bundle-id >> "de.kestner.dgslernupdate.dmg" --username "" --password >> "" --file >> "/Users/tiemohollmann/Desktop/DGSlern_Update_1.0.0.4.dmg" >> >> The file was accepted and uploaded, but I got an email from Apple, >> that the file was not notarized and I should review the notarization >> log with xCode or altool. >> >> >> >> I can't find these logs. Mac search doesn't find anything with "altool" >> >> Can anybody point me to the location, where I find this notarizing log? >> >> Thank you >> >> Tiemo >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon May 3 13:07:48 2021 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 3 May 2021 10:07:48 -0700 Subject: Complete Crash or Engine Hang: which is better? In-Reply-To: References: Message-ID: Mark Smith wrote: > Frightening and wonderful at the same time. When I did these exercises > and then copy pasted a styledText string from LC into TextEdit, it was > interesting to see what they agreed on, and what they didn't. For > example, when colouring ?numbers? both fields ignored numbers followed > by ?,? but not by a ?.? So they were in agreement there. However, > words containing a ?y? were italicized in LC (that was the request) > but interpreted as bold/underlined in TextEdit? > > More remarkably, I have no idea how they can stuff that much style > info into a text string ? It might be interesting to see the htmlText from the source LC field to see how the style info is nested, if you're in a position to share it, or a sanitized version of it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From selander at tkf.att.ne.jp Tue May 4 00:30:56 2021 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 04 May 2021 13:30:56 +0900 Subject: Getting user's IP address in LC Server Message-ID: <6090CE00.3010306@tkf.att.ne.jp> Hi, I am trying to make a web page that changes content a bit based on the user's location. I am using my on-rev hosting account and am trying two different service's APIs: 1) put "My country is" && url "https://api.ipdata.co/country_name?api-key=my/key" 2) put "curl https://api.ipgeolocation.io/getip" into IPvariable But both of these return the info for Liquid Web LLC, the on-rev server company, not the info for me as I test the page in Tokyo. What is a reliable way to get the user's IP address and or geolocation info from LC Server? Any help appreciated! Thanks, Tim Selander Tokyo From toolbook at kestner.de Tue May 4 03:47:29 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Tue, 4 May 2021 09:47:29 +0200 Subject: notarizing DMG fails Message-ID: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> Hello, I have signed and notarized several apps with Matthias tool - successful Then I packaged theses apps with Packages and signed the package via terminal - successful Then I put the pkg into a dmg via DMG canvas and signed the dmg via terminal - successful Then I uploaded the dmg for notarization via terminal. The upload was successful, but the email from apple told me, that the upload was not notarized and the logfile tells me: Severity: Error Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" Message: The binary is not signed This is a bit irritating. Has anybody anytime encountered such conflicting messages? Any idea, where to look for? Thanks Tiemo From matthias_livecode_150811 at m-r-d.de Tue May 4 03:48:39 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 4 May 2021 09:48:39 +0200 Subject: Getting user's IP address in LC Server In-Reply-To: <6090CE00.3010306@tkf.att.ne.jp> References: <6090CE00.3010306@tkf.att.ne.jp> Message-ID: <371008D0-ADDB-417B-B570-A031F849D38C@m-r-d.de> Hi Tim, you can use the array variable $_SERVER for it. The variable contains the CGI interface related variables, along with any HTTP_* variables that are available. $_SERVER["REMOTE_ADDR] contains the remote ip address. Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 04.05.2021 um 06:30 schrieb Tim Selander via use-livecode : > > Hi, > > I am trying to make a web page that changes content a bit based on the user's location. I am using my on-rev hosting account and am trying two different service's APIs: > > 1) put "My country is" && url "https://api.ipdata.co/country_name?api-key=my/key" > > 2) put "curl https://api.ipgeolocation.io/getip" into IPvariable > > But both of these return the info for Liquid Web LLC, the on-rev server company, not the info for me as I test the page in Tokyo. > > What is a reliable way to get the user's IP address and or geolocation info from LC Server? > > Any help appreciated! > > Thanks, > > Tim Selander > Tokyo > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue May 4 04:34:08 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 4 May 2021 10:34:08 +0200 Subject: notarizing DMG fails In-Reply-To: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> Message-ID: Hi Tiemo, but you did not create a .pkg from the a notarized app, did you? You have to create and code sign a .pkg from the code signed, but not notarized, .app and then you have to notarize only the .pkg or the code signed .dmg, if you want to distribute as .dmg. So the steps are 1. code sign your .app - do not notarize it! 2. create a .pkg from the .app and code sign it 3. if you want to distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. notarize the .pkg (or the .dmg) The staple process then writes the needed information to the .dmg, to the containing .pkg and the .app. If these are the steps you've done already, then could you please try the following using the helper stack 1. code sign .app 2. notarize the .app using the '.zip method' Is this successful? Then the problem does not rely on your .app. In this case please repeat and code sign the .app using the helper stack and use the .dmg method Is this successful? If so, then also the .dmg is fine Repeat now manually, as .pkg is not supported by the helper stack. 1. code sign .app 2. create .pkg 3. code sign .pkg 4. notarize .pkg Is this successful? Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode : > > Hello, > > > > I have signed and notarized several apps with Matthias tool - successful > > Then I packaged theses apps with Packages and signed the package via > terminal - successful > > Then I put the pkg into a dmg via DMG canvas and signed the dmg via > terminal - successful > > Then I uploaded the dmg for notarization via terminal. The upload was > successful, but the email from apple told me, that the upload was not > notarized and the logfile tells me: > > > > Severity: Error > > Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" > > Message: The binary is not signed > > > > This is a bit irritating. Has anybody anytime encountered such conflicting > messages? > > Any idea, where to look for? > > Thanks > > Tiemo > > > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Tue May 4 04:41:25 2021 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 04 May 2021 17:41:25 +0900 Subject: Getting user's IP address in LC Server In-Reply-To: <371008D0-ADDB-417B-B570-A031F849D38C@m-r-d.de> References: <6090CE00.3010306@tkf.att.ne.jp> <371008D0-ADDB-417B-B570-A031F849D38C@m-r-d.de> Message-ID: <609108B5.2070701@tkf.att.ne.jp> Hi Matthias! Works like a charm -- didn't even occur to me to check the server variable for IP. (yeah, amateur!) Thank you. Tim Selander Tokyo On 2021.05.04 16:48, matthias rebbe via use-livecode wrote: > Hi Tim, > > you can use the array variable $_SERVER for it. The variable contains the CGI interface related variables, along with any HTTP_* variables that are available. > > > $_SERVER["REMOTE_ADDR] contains the remote ip address. > > > Matthias > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 04.05.2021 um 06:30 schrieb Tim Selander via use-livecode : >> >> Hi, >> >> I am trying to make a web page that changes content a bit based on the user's location. I am using my on-rev hosting account and am trying two different service's APIs: >> >> 1) put "My country is" && url "https://api.ipdata.co/country_name?api-key=my/key" >> >> 2) put "curl https://api.ipgeolocation.io/getip" into IPvariable >> >> But both of these return the info for Liquid Web LLC, the on-rev server company, not the info for me as I test the page in Tokyo. >> >> What is a reliable way to get the user's IP address and or geolocation info from LC Server? >> >> Any help appreciated! >> >> Thanks, >> >> Tim Selander >> Tokyo >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From toolbook at kestner.de Tue May 4 06:08:34 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Tue, 4 May 2021 12:08:34 +0200 Subject: AW: notarizing DMG fails In-Reply-To: References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> Message-ID: <005201d740cd$72450c00$56cf2400$@kestner.de> Hi Matthias, thank you for your ideas. I tried both. When using just signed, but not notarized apps, packing, signing the pkg, wrapping into dmg, signing the dmg, I get the same error when notarizing the dmg "The binary is not signed" When trying to notarize the signed pkg via terminal I get the error: "unable to notarize app" "Upload succeeded but did not receive a RequestedUUID. Unable to upload your app for notarization (-1018)" I also tried to use the "Installer" certificate instead of the "Application" certificate, but trying this with codesigning the package, I get the error "this identitiy cannot be used" (actually I don't know for what purposes you can use the Installer certificate) Codesigning and notarizing the apps works fine ... Perhaps I'll look for another packager and go testing with another packager. Any other ideas? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von matthias rebbe via use-livecode Gesendet: Dienstag, 4. Mai 2021 10:34 An: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Betreff: Re: notarizing DMG fails Hi Tiemo, but you did not create a .pkg from the a notarized app, did you? You have to create and code sign a .pkg from the code signed, but not notarized, .app and then you have to notarize only the .pkg or the code signed .dmg, if you want to distribute as .dmg. So the steps are 1. code sign your .app - do not notarize it! 2. create a .pkg from the .app and code sign it 3. if you want to distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. notarize the .pkg (or the .dmg) The staple process then writes the needed information to the .dmg, to the containing .pkg and the .app. If these are the steps you've done already, then could you please try the following using the helper stack 1. code sign .app 2. notarize the .app using the '.zip method' Is this successful? Then the problem does not rely on your .app. In this case please repeat and code sign the .app using the helper stack and use the .dmg method Is this successful? If so, then also the .dmg is fine Repeat now manually, as .pkg is not supported by the helper stack. 1. code sign .app 2. create .pkg 3. code sign .pkg 4. notarize .pkg Is this successful? Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode : > > Hello, > > > > I have signed and notarized several apps with Matthias tool - > successful > > Then I packaged theses apps with Packages and signed the package via > terminal - successful > > Then I put the pkg into a dmg via DMG canvas and signed the dmg via > terminal - successful > > Then I uploaded the dmg for notarization via terminal. The upload was > successful, but the email from apple told me, that the upload was not > notarized and the logfile tells me: > > > > Severity: Error > > Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" > > Message: The binary is not signed > > > > This is a bit irritating. Has anybody anytime encountered such > conflicting messages? > > Any idea, where to look for? > > Thanks > > Tiemo > > > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue May 4 07:49:15 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 4 May 2021 13:49:15 +0200 Subject: notarizing DMG fails In-Reply-To: <005201d740cd$72450c00$56cf2400$@kestner.de> References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> <005201d740cd$72450c00$56cf2400$@kestner.de> Message-ID: Tiemo, you can create 2 different installer certificates in you Apple developer account. One is called 'Mac Installer Distribution' and is used for code signing installers for the Mac App Store. The other one is called 'Developer ID Installer' and is used to code sign your Installer Package for distribution outside of the Mac App Store Which one did you use for signing the packager? And another question, how did you build the package? Did you use a 3rd party tool or did you use 'productbuild' in Terminal? If you used a 3rd party tool, then could you please try to create the package installer using terminal command? productbuild --sign --component /Applications example productbuild --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxxxxxxx)" --component "/users/matthias/LC/builts/test/test.app" /Applications "/users/matthias/downloads/MyPackager.pkg" But maybe it was just the wrong installer certificate Regards Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode : > > Hi Matthias, > > thank you for your ideas. I tried both. > > When using just signed, but not notarized apps, packing, signing the pkg, > wrapping into dmg, signing the dmg, I get the same error when notarizing the > dmg "The binary is not signed" > > When trying to notarize the signed pkg via terminal I get the error: > "unable to notarize app" > "Upload succeeded but did not receive a RequestedUUID. Unable to upload your > app for notarization (-1018)" > > I also tried to use the "Installer" certificate instead of the "Application" > certificate, but trying this with codesigning the package, I get the error > "this identitiy cannot be used" > (actually I don't know for what purposes you can use the Installer > certificate) > > > Codesigning and notarizing the apps works fine ... > > Perhaps I'll look for another packager and go testing with another packager. > > Any other ideas? > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag von > matthias rebbe via use-livecode > Gesendet: Dienstag, 4. Mai 2021 10:34 > An: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: notarizing DMG fails > > Hi Tiemo, > > but you did not create a .pkg from the a notarized app, did you? > > You have to create and code sign a .pkg from the code signed, but not > notarized, .app and then you have to notarize only the .pkg or the code > signed .dmg, if you want to distribute as .dmg. > So the steps are > > 1. code sign your .app - do not notarize it! > 2. create a .pkg from the .app and code sign it 3. if you want to distribute > as dmg, create .dmg with the .pkg and code sign the .dmg 4. notarize the > .pkg (or the .dmg) > > The staple process then writes the needed information to the .dmg, to the > containing .pkg and the .app. > > If these are the steps you've done already, then could you please try the > following using the helper stack > > 1. code sign .app > 2. notarize the .app using the '.zip method' > > Is this successful? Then the problem does not rely on your .app. > In this case please repeat and code sign the .app using the helper stack and > use the .dmg method > > Is this successful? If so, then also the .dmg is fine > > Repeat now manually, as .pkg is not supported by the helper stack. > > 1. code sign .app > 2. create .pkg > 3. code sign .pkg > 4. notarize .pkg > > Is this successful? > > Regards, > > Matthias > > > > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode > : >> >> Hello, >> >> >> >> I have signed and notarized several apps with Matthias tool - >> successful >> >> Then I packaged theses apps with Packages and signed the package via >> terminal - successful >> >> Then I put the pkg into a dmg via DMG canvas and signed the dmg via >> terminal - successful >> >> Then I uploaded the dmg for notarization via terminal. The upload was >> successful, but the email from apple told me, that the upload was not >> notarized and the logfile tells me: >> >> >> >> Severity: Error >> >> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" >> >> Message: The binary is not signed >> >> >> >> This is a bit irritating. Has anybody anytime encountered such >> conflicting messages? >> >> Any idea, where to look for? >> >> Thanks >> >> Tiemo >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bduck at mac.com Tue May 4 11:26:10 2021 From: bduck at mac.com (Brian K. Duck) Date: Tue, 4 May 2021 11:26:10 -0400 Subject: LiveCode DataGrid assistance requested Message-ID: <058A7DD9-F633-4174-99BE-83E3DAFB8E1C@mac.com> Hello listers... I?m working on an app that pulls data from a API which returns JSON and is converted to an array then displayed in a DataGrid. The data returned is complex JSON, there are a few rows that are name value pairs, but most of the highest level rows are arrays, and there are those that are arrays of arrays (of arrays). After adding ?Combine array using return,? I can display it as text in a field, but I only get the rows that aren?t array data on their own. So, most of the data is lost. There are challenges, so I have questions?. How best to convert nested arrays to text for displaying the data within a field? And, I?d like to display certain values from the DataGrid in a text field, like the name attribute, a URL?. The data may be in a different position, for different results, but the structures are consistant. Some data are attributes of a key value, some are the key values. What is the best way to traverse the data to find specific values? Also, should I be looking at the datagrid, array, or JSON for the source of these fields? The current goal is an MVP where I?m displaying data, but the larger goal is building an editor to start with the minimal data and allow editing, publising as files, and further down the road submission to and API service for posting. So, guidance on the design with evolution in mind is much appreciated. Also, there is a need to count elements in the array of arrays. The examples I see are oversimplified and don?t sow any details on finding data in array within an array. Is there an example, or reference, that I missed? Also, how can I tell if I?m working with a DataGrid or instance of DataGrid 2? Thanks for your bandwidth, Brian From toolbook at kestner.de Tue May 4 12:00:25 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Tue, 4 May 2021 18:00:25 +0200 Subject: AW: notarizing DMG fails In-Reply-To: References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> <005201d740cd$72450c00$56cf2400$@kestner.de> Message-ID: <009f01d740fe$999923a0$cccb6ae0$@kestner.de> Hi Matthias, still struggeling ... I have two developer certificates in my keychain: Developer ID Installer : Developer ID Application: Using the Application certificate on the app and pkg and dmg, all codesigning is fine, even when verifying it, but I get the "The binary is not signed" error in the notarization log, when notarizing the dmg ??? Using the Installer certificate on the pkg, I get already the error when codesigning the pkg "this identity cannot be used for signing code" ??? All errors are the same, either using the tool "Packages" or creating the package on command line by pkgbuild (productbuild is only for builing appStore apps, as far as I see it) I must be missing something obvious Any other ideas? Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von matthias rebbe via use-livecode Gesendet: Dienstag, 4. Mai 2021 13:49 An: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Betreff: Re: notarizing DMG fails Tiemo, you can create 2 different installer certificates in you Apple developer account. One is called 'Mac Installer Distribution' and is used for code signing installers for the Mac App Store. The other one is called 'Developer ID Installer' and is used to code sign your Installer Package for distribution outside of the Mac App Store Which one did you use for signing the packager? And another question, how did you build the package? Did you use a 3rd party tool or did you use 'productbuild' in Terminal? If you used a 3rd party tool, then could you please try to create the package installer using terminal command? productbuild --sign --component /Applications example productbuild --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxxxxxxx)" --component "/users/matthias/LC/builts/test/test.app" /Applications "/users/matthias/downloads/MyPackager.pkg" But maybe it was just the wrong installer certificate Regards Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode : > > Hi Matthias, > > thank you for your ideas. I tried both. > > When using just signed, but not notarized apps, packing, signing the > pkg, wrapping into dmg, signing the dmg, I get the same error when > notarizing the dmg "The binary is not signed" > > When trying to notarize the signed pkg via terminal I get the error: > "unable to notarize app" > "Upload succeeded but did not receive a RequestedUUID. Unable to > upload your app for notarization (-1018)" > > I also tried to use the "Installer" certificate instead of the "Application" > certificate, but trying this with codesigning the package, I get the > error "this identitiy cannot be used" > (actually I don't know for what purposes you can use the Installer > certificate) > > > Codesigning and notarizing the apps works fine ... > > Perhaps I'll look for another packager and go testing with another packager. > > Any other ideas? > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag > von matthias rebbe via use-livecode > Gesendet: Dienstag, 4. Mai 2021 10:34 > An: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: notarizing DMG fails > > Hi Tiemo, > > but you did not create a .pkg from the a notarized app, did you? > > You have to create and code sign a .pkg from the code signed, but not > notarized, .app and then you have to notarize only the .pkg or the > code signed .dmg, if you want to distribute as .dmg. > So the steps are > > 1. code sign your .app - do not notarize it! > 2. create a .pkg from the .app and code sign it 3. if you want to > distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. > notarize the .pkg (or the .dmg) > > The staple process then writes the needed information to the .dmg, to > the containing .pkg and the .app. > > If these are the steps you've done already, then could you please try > the following using the helper stack > > 1. code sign .app > 2. notarize the .app using the '.zip method' > > Is this successful? Then the problem does not rely on your .app. > In this case please repeat and code sign the .app using the helper > stack and use the .dmg method > > Is this successful? If so, then also the .dmg is fine > > Repeat now manually, as .pkg is not supported by the helper stack. > > 1. code sign .app > 2. create .pkg > 3. code sign .pkg > 4. notarize .pkg > > Is this successful? > > Regards, > > Matthias > > > > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode > : >> >> Hello, >> >> >> >> I have signed and notarized several apps with Matthias tool - >> successful >> >> Then I packaged theses apps with Packages and signed the package via >> terminal - successful >> >> Then I put the pkg into a dmg via DMG canvas and signed the dmg via >> terminal - successful >> >> Then I uploaded the dmg for notarization via terminal. The upload was >> successful, but the email from apple told me, that the upload was not >> notarized and the logfile tells me: >> >> >> >> Severity: Error >> >> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" >> >> Message: The binary is not signed >> >> >> >> This is a bit irritating. Has anybody anytime encountered such >> conflicting messages? >> >> Any idea, where to look for? >> >> Thanks >> >> Tiemo >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue May 4 12:19:29 2021 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 4 May 2021 19:19:29 +0300 Subject: notarizing DMG fails In-Reply-To: <009f01d740fe$999923a0$cccb6ae0$@kestner.de> References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> <005201d740cd$72450c00$56cf2400$@kestner.de> <009f01d740fe$999923a0$cccb6ae0$@kestner.de> Message-ID: Hello Tiemo, When did you create these certificates? And what is your MacOS version, and the Xcode version returned if you type "xcode-select -p" in a Terminal? I am wondering if you need to install the new Apple Worldwide Developer Relations Intermediate Certificate: https://developer.apple.com/support/wwdr-intermediate-certificate/ You can find it here: https://developer.apple.com/support/expiration/ Kind regards, Panos -- On Tue, 4 May 2021 at 19:02, Tiemo via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Matthias, > > still struggeling ... > > I have two developer certificates in my keychain: > Developer ID Installer : > Developer ID Application: > > Using the Application certificate on the app and pkg and dmg, all > codesigning is fine, even when verifying it, but I get the "The binary is > not signed" error in the notarization log, when notarizing the dmg ??? > Using the Installer certificate on the pkg, I get already the error when > codesigning the pkg "this identity cannot be used for signing code" ??? > > All errors are the same, either using the tool "Packages" or creating the > package on command line by pkgbuild > (productbuild is only for builing appStore apps, as far as I see it) > > I must be missing something obvious > > Any other ideas? > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag von > matthias rebbe via use-livecode > Gesendet: Dienstag, 4. Mai 2021 13:49 > An: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: notarizing DMG fails > > Tiemo, > > you can create 2 different installer certificates in you Apple developer > account. > One is called 'Mac Installer Distribution' and is used for code signing > installers for the Mac App Store. > The other one is called 'Developer ID Installer' and is used to code sign > your Installer Package for distribution outside of the Mac App Store > > Which one did you use for signing the packager? > > And another question, how did you build the package? Did you use a 3rd > party tool or did you use 'productbuild' in Terminal? > If you used a 3rd party tool, then could you please try to create the > package installer using terminal command? > > productbuild --sign --component > /Applications > > example > productbuild --sign "Developer ID Installer: Matthias Rebbe > (xxxxxxxxxxxxx)" --component "/users/matthias/LC/builts/test/test.app" > /Applications "/users/matthias/downloads/MyPackager.pkg" > > > But maybe it was just the wrong installer certificate > > Regards > Matthias > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi Matthias, > > > > thank you for your ideas. I tried both. > > > > When using just signed, but not notarized apps, packing, signing the > > pkg, wrapping into dmg, signing the dmg, I get the same error when > > notarizing the dmg "The binary is not signed" > > > > When trying to notarize the signed pkg via terminal I get the error: > > "unable to notarize app" > > "Upload succeeded but did not receive a RequestedUUID. Unable to > > upload your app for notarization (-1018)" > > > > I also tried to use the "Installer" certificate instead of the > "Application" > > certificate, but trying this with codesigning the package, I get the > > error "this identitiy cannot be used" > > (actually I don't know for what purposes you can use the Installer > > certificate) > > > > > > Codesigning and notarizing the apps works fine ... > > > > Perhaps I'll look for another packager and go testing with another > packager. > > > > Any other ideas? > > Tiemo > > > > > > -----Urspr?ngliche Nachricht----- > > Von: use-livecode Im Auftrag > > von matthias rebbe via use-livecode > > Gesendet: Dienstag, 4. Mai 2021 10:34 > > An: How to use LiveCode > > Cc: matthias_livecode_150811 at m-r-d.de > > Betreff: Re: notarizing DMG fails > > > > Hi Tiemo, > > > > but you did not create a .pkg from the a notarized app, did you? > > > > You have to create and code sign a .pkg from the code signed, but not > > notarized, .app and then you have to notarize only the .pkg or the > > code signed .dmg, if you want to distribute as .dmg. > > So the steps are > > > > 1. code sign your .app - do not notarize it! > > 2. create a .pkg from the .app and code sign it 3. if you want to > > distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. > > notarize the .pkg (or the .dmg) > > > > The staple process then writes the needed information to the .dmg, to > > the containing .pkg and the .app. > > > > If these are the steps you've done already, then could you please try > > the following using the helper stack > > > > 1. code sign .app > > 2. notarize the .app using the '.zip method' > > > > Is this successful? Then the problem does not rely on your .app. > > In this case please repeat and code sign the .app using the helper > > stack and use the .dmg method > > > > Is this successful? If so, then also the .dmg is fine > > > > Repeat now manually, as .pkg is not supported by the helper stack. > > > > 1. code sign .app > > 2. create .pkg > > 3. code sign .pkg > > 4. notarize .pkg > > > > Is this successful? > > > > Regards, > > > > Matthias > > > > > > > > > > > > > > - > > Matthias Rebbe > > Life Is Too Short For Boring Code > > > >> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode > > : > >> > >> Hello, > >> > >> > >> > >> I have signed and notarized several apps with Matthias tool - > >> successful > >> > >> Then I packaged theses apps with Packages and signed the package via > >> terminal - successful > >> > >> Then I put the pkg into a dmg via DMG canvas and signed the dmg via > >> terminal - successful > >> > >> Then I uploaded the dmg for notarization via terminal. The upload was > >> successful, but the email from apple told me, that the upload was not > >> notarized and the logfile tells me: > >> > >> > >> > >> Severity: Error > >> > >> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" > >> > >> Message: The binary is not signed > >> > >> > >> > >> This is a bit irritating. Has anybody anytime encountered such > >> conflicting messages? > >> > >> Any idea, where to look for? > >> > >> Thanks > >> > >> Tiemo > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jeejeestudio at gmail.com Tue May 4 15:21:28 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Tue, 4 May 2021 21:21:28 +0200 Subject: LiveCode DataGrid assistance requested In-Reply-To: <058A7DD9-F633-4174-99BE-83E3DAFB8E1C@mac.com> References: <058A7DD9-F633-4174-99BE-83E3DAFB8E1C@mac.com> Message-ID: <195bb30f-9dc6-dd12-4d70-8714ed7fe804@gmail.com> Hi Brian, if you are using LC9.x.x then it is an Datagrid2 automatically. I don't know the exact lc version as of. Make sure that you have the data item which you want to display in a variable first and put that in a test field or answer it, just to check if that is the data you need. There are lot's of examples on the forum on how to get the desired data into the DG, and perhaps it's easier to put a piece of your script over there so people can see what you doing. But you can also post here. So convert JSON to LC array, then get the item into a variable. Set the DGdata to the variable. In other words, test step by step what you have. Op 4-5-2021 om 17:26 schreef Brian K. Duck via use-livecode: > Hello listers... > > I?m working on an app that pulls data from a API which returns JSON and is converted to an array then displayed in a DataGrid. > > The data returned is complex JSON, there are a few rows that are name value pairs, but most of the highest level rows are arrays, and there are those that are arrays of arrays (of arrays). > > After adding ?Combine array using return,? I can display it as text in a field, but I only get the rows that aren?t array data on their own. So, most of the data is lost. > > There are challenges, so I have questions?. > How best to convert nested arrays to text for displaying the data within a field? > > And, I?d like to display certain values from the DataGrid in a text field, like the name attribute, a URL?. The data may be in a different position, for different results, but the structures are consistant. Some data are attributes of a key value, some are the key values. > What is the best way to traverse the data to find specific values? > > Also, should I be looking at the datagrid, array, or JSON for the source of these fields? > > The current goal is an MVP where I?m displaying data, but the larger goal is building an editor to start with the minimal data and allow editing, publising as files, and further down the road submission to and API service for posting. So, guidance on the design with evolution in mind is much appreciated. > > Also, there is a need to count elements in the array of arrays. The examples I see are oversimplified and don?t sow any details on finding data in array within an array. > > Is there an example, or reference, that I missed? > > Also, how can I tell if I?m working with a DataGrid or instance of DataGrid 2? > > Thanks for your bandwidth, > > Brian > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Tue May 4 15:38:14 2021 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 4 May 2021 12:38:14 -0700 Subject: LiveCode DataGrid assistance requested In-Reply-To: <058A7DD9-F633-4174-99BE-83E3DAFB8E1C@mac.com> References: <058A7DD9-F633-4174-99BE-83E3DAFB8E1C@mac.com> Message-ID: On 5/4/21 8:26 AM, Brian K. Duck via use-livecode wrote: > After adding ?Combine array using return,? I can display it as text in a field, but I only get the rows that aren?t array data on their own. So, most of the data is lost. > The combine and split commands were written in the dark ages before we had multidimensional arrays. I use recursive repeat loops to untangle multidimensional arrays into an editable text form (pseudocode): put the keys of tArray into tKeys repeat for each line tKey in tKeys if tKey is empty then # see if it's an array put the keys of tKey into tSubArray # recurse to process the array else # it's an actual empty element end if end repeat -- Mark Wieder ahsoftware at gmail.com From fmoyer at aol.com Tue May 4 17:32:10 2021 From: fmoyer at aol.com (Fred Moyer) Date: Tue, 4 May 2021 17:32:10 -0400 Subject: Problems with Multiple Monitors References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F.ref@aol.com> Message-ID: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. Any suggestions? Thanks. Fred From paul at researchware.com Tue May 4 17:46:53 2021 From: paul at researchware.com (Paul Dupuis) Date: Tue, 4 May 2021 17:46:53 -0400 Subject: Problems with Multiple Monitors In-Reply-To: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F.ref@aol.com> <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> Message-ID: <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> On 5/4/2021 5:32 PM, Fred Moyer via use-livecode wrote: > Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. > > Any suggestions? > Thanks. > > Fred > > With multiple monitor, zero vertical is the top of the top most monitor - regardless of whether it is the primary monitor or not. The on desktopChanged message may also be helpful as it is sent when the displays/monitors change From mkoob at rogers.com Tue May 4 18:17:08 2021 From: mkoob at rogers.com (Martin Koob) Date: Tue, 4 May 2021 18:17:08 -0400 Subject: Problems with Multiple Monitors In-Reply-To: <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F.ref@aol.com> <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> Message-ID: Hi I have found that when I arrange monitors on my MacBook Pro I can?t position the second monitor above the main monitor(the one with the menu bar). If I do odd things happen. Just so happens I that is the space that I have for a second monitor is on a stand above the screen of my MacBook Pro. So I had to position my second monitor to the left of my main monitor. I am then able to work on LiveCode in either monitor. The only thing I had to do was re-train my brain that moving my mouse left was actually moving it up to my second monitor. Now it is second nature. It is a really odd workaround and if the bug ever got fixed and I did in fact go back to to having the monitor arrangement with the second monitor above the main monitor I would probably develop carpal tunnel syndrome or maybe tennis elbow or some other musculoskeletal disorder from my mouse hand skidding off the mouse pad and hitting the laptop every time I want to go to the second monitor sitting above my laptop. Martin > On May 4, 2021, at 5:46 PM, Paul Dupuis via use-livecode wrote: > > On 5/4/2021 5:32 PM, Fred Moyer via use-livecode wrote: >> Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. >> >> Any suggestions? >> Thanks. >> >> Fred >> >> > > With multiple monitor, zero vertical is the top of the top most monitor - regardless of whether it is the primary monitor or not. The on desktopChanged message may also be helpful as it is sent when the displays/monitors change > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Tue May 4 20:17:30 2021 From: irog at mac.com (Roger Guay) Date: Tue, 4 May 2021 17:17:30 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F.ref@aol.com> <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> Message-ID: <755492AD-097A-42B6-9550-71007AFD8730@mac.com> Hi Martin, I have the same setup . . . second monitor on top of my MBP. I solved the problem by unchecking ?Displays have separate Spaces? in the Mission Control System Preferences. Roger > On May 4, 2021, at 3:17 PM, Martin Koob via use-livecode wrote: > > Hi > > I have found that when I arrange monitors on my MacBook Pro I can?t position the second monitor above the main monitor(the one with the menu bar). If I do odd things happen. Just so happens I that is the space that I have for a second monitor is on a stand above the screen of my MacBook Pro. So I had to position my second monitor to the left of my main monitor. I am then able to work on LiveCode in either monitor. The only thing I had to do was re-train my brain that moving my mouse left was actually moving it up to my second monitor. Now it is second nature. > > It is a really odd workaround and if the bug ever got fixed and I did in fact go back to to having the monitor arrangement with the second monitor above the main monitor I would probably develop carpal tunnel syndrome or maybe tennis elbow or some other musculoskeletal disorder from my mouse hand skidding off the mouse pad and hitting the laptop every time I want to go to the second monitor sitting above my laptop. > > Martin > > >> On May 4, 2021, at 5:46 PM, Paul Dupuis via use-livecode wrote: >> >> On 5/4/2021 5:32 PM, Fred Moyer via use-livecode wrote: >>> Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. >>> >>> Any suggestions? >>> Thanks. >>> >>> Fred >>> >>> >> >> With multiple monitor, zero vertical is the top of the top most monitor - regardless of whether it is the primary monitor or not. The on desktopChanged message may also be helpful as it is sent when the displays/monitors change >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue May 4 20:20:29 2021 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 4 May 2021 17:20:29 -0700 Subject: Problems with Multiple Monitors In-Reply-To: <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> References: <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> Message-ID: Paul Dupuis wrote: > With multiple monitor, zero vertical is the top of the top most > monitor - regardless of whether it is the primary monitor or not. If the screenRect is no longer based on the main monitor, what is the screenloc? In a multi-monitor setup, with metrics like that how can one be expected to center a window? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From irog at mac.com Tue May 4 22:00:03 2021 From: irog at mac.com (Roger Guay) Date: Tue, 4 May 2021 19:00:03 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> Message-ID: <4BAB9BF5-3697-4967-9225-35DD71FC1232@mac.com> Use the plural of Screenrect ? Screenrects. This returns a Screenrect for each monitor connected. Roger > On May 4, 2021, at 5:20 PM, Richard Gaskin via use-livecode wrote: > > Paul Dupuis wrote: > > > With multiple monitor, zero vertical is the top of the top most > > monitor - regardless of whether it is the primary monitor or not. > > If the screenRect is no longer based on the main monitor, what is the screenloc? > > In a multi-monitor setup, with metrics like that how can one be expected to center a window? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed May 5 02:56:36 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Wed, 5 May 2021 08:56:36 +0200 Subject: AW: notarizing DMG fails In-Reply-To: References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> <005201d740cd$72450c00$56cf2400$@kestner.de> <009f01d740fe$999923a0$cccb6ae0$@kestner.de> Message-ID: <001d01d7417b$cb4e5410$61eafc30$@kestner.de> Hi Panos, thanks for jumping in I am on macOS 11.2.3 and created the certificates pretty freshly two weeks ago. Xcode-select -p doesn't returns any version# at all, it just returns a path: "/Applications/Xcode.app/Content/Developer/ Xcodebuild -version shows Xcode 12.5 build 12E262 I now (re-?)installed the command line tools by xcode-select -- install But xcode-select -p still doesn't shows any version# ??? I now downloaded the Apple Worldwide Developer Relations Intermediate Certificate. Actually I am not sure, if it was there before (I didn't checked it before) I will later test again from the scratch But I am still unsure if I may use the " Developer ID Application" certificate also for the pkg and dmg or if I have to use the "Developer ID Installer" certificate for the pkg and dmg? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von panagiotis merakos via use-livecode Gesendet: Dienstag, 4. Mai 2021 18:19 An: How to use LiveCode Cc: panagiotis merakos Betreff: Re: notarizing DMG fails Hello Tiemo, When did you create these certificates? And what is your MacOS version, and the Xcode version returned if you type "xcode-select -p" in a Terminal? I am wondering if you need to install the new Apple Worldwide Developer Relations Intermediate Certificate: https://developer.apple.com/support/wwdr-intermediate-certificate/ You can find it here: https://developer.apple.com/support/expiration/ Kind regards, Panos -- On Tue, 4 May 2021 at 19:02, Tiemo via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Matthias, > > still struggeling ... > > I have two developer certificates in my keychain: > Developer ID Installer : > Developer ID Application: > > Using the Application certificate on the app and pkg and dmg, all > codesigning is fine, even when verifying it, but I get the "The binary > is not signed" error in the notarization log, when notarizing the dmg ??? > Using the Installer certificate on the pkg, I get already the error > when codesigning the pkg "this identity cannot be used for signing code" ??? > > All errors are the same, either using the tool "Packages" or creating > the package on command line by pkgbuild (productbuild is only for > builing appStore apps, as far as I see it) > > I must be missing something obvious > > Any other ideas? > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag > von matthias rebbe via use-livecode > Gesendet: Dienstag, 4. Mai 2021 13:49 > An: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: notarizing DMG fails > > Tiemo, > > you can create 2 different installer certificates in you Apple > developer account. > One is called 'Mac Installer Distribution' and is used for code > signing installers for the Mac App Store. > The other one is called 'Developer ID Installer' and is used to code > sign your Installer Package for distribution outside of the Mac App > Store > > Which one did you use for signing the packager? > > And another question, how did you build the package? Did you use a 3rd > party tool or did you use 'productbuild' in Terminal? > If you used a 3rd party tool, then could you please try to create the > package installer using terminal command? > > productbuild --sign > --component /Applications > > example > productbuild --sign "Developer ID Installer: Matthias Rebbe > (xxxxxxxxxxxxx)" --component "/users/matthias/LC/builts/test/test.app" > /Applications "/users/matthias/downloads/MyPackager.pkg" > > > But maybe it was just the wrong installer certificate > > Regards > Matthias > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi Matthias, > > > > thank you for your ideas. I tried both. > > > > When using just signed, but not notarized apps, packing, signing the > > pkg, wrapping into dmg, signing the dmg, I get the same error when > > notarizing the dmg "The binary is not signed" > > > > When trying to notarize the signed pkg via terminal I get the error: > > "unable to notarize app" > > "Upload succeeded but did not receive a RequestedUUID. Unable to > > upload your app for notarization (-1018)" > > > > I also tried to use the "Installer" certificate instead of the > "Application" > > certificate, but trying this with codesigning the package, I get the > > error "this identitiy cannot be used" > > (actually I don't know for what purposes you can use the Installer > > certificate) > > > > > > Codesigning and notarizing the apps works fine ... > > > > Perhaps I'll look for another packager and go testing with another > packager. > > > > Any other ideas? > > Tiemo > > > > > > -----Urspr?ngliche Nachricht----- > > Von: use-livecode Im Auftrag > > von matthias rebbe via use-livecode > > Gesendet: Dienstag, 4. Mai 2021 10:34 > > An: How to use LiveCode > > Cc: matthias_livecode_150811 at m-r-d.de > > Betreff: Re: notarizing DMG fails > > > > Hi Tiemo, > > > > but you did not create a .pkg from the a notarized app, did you? > > > > You have to create and code sign a .pkg from the code signed, but > > not notarized, .app and then you have to notarize only the .pkg or > > the code signed .dmg, if you want to distribute as .dmg. > > So the steps are > > > > 1. code sign your .app - do not notarize it! > > 2. create a .pkg from the .app and code sign it 3. if you want to > > distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. > > notarize the .pkg (or the .dmg) > > > > The staple process then writes the needed information to the .dmg, > > to the containing .pkg and the .app. > > > > If these are the steps you've done already, then could you please > > try the following using the helper stack > > > > 1. code sign .app > > 2. notarize the .app using the '.zip method' > > > > Is this successful? Then the problem does not rely on your .app. > > In this case please repeat and code sign the .app using the helper > > stack and use the .dmg method > > > > Is this successful? If so, then also the .dmg is fine > > > > Repeat now manually, as .pkg is not supported by the helper stack. > > > > 1. code sign .app > > 2. create .pkg > > 3. code sign .pkg > > 4. notarize .pkg > > > > Is this successful? > > > > Regards, > > > > Matthias > > > > > > > > > > > > > > - > > Matthias Rebbe > > Life Is Too Short For Boring Code > > > >> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode > > : > >> > >> Hello, > >> > >> > >> > >> I have signed and notarized several apps with Matthias tool - > >> successful > >> > >> Then I packaged theses apps with Packages and signed the package > >> via terminal - successful > >> > >> Then I put the pkg into a dmg via DMG canvas and signed the dmg > >> via terminal - successful > >> > >> Then I uploaded the dmg for notarization via terminal. The upload > >> was successful, but the email from apple told me, that the upload > >> was not notarized and the logfile tells me: > >> > >> > >> > >> Severity: Error > >> > >> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" > >> > >> Message: The binary is not signed > >> > >> > >> > >> This is a bit irritating. Has anybody anytime encountered such > >> conflicting messages? > >> > >> Any idea, where to look for? > >> > >> Thanks > >> > >> Tiemo > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed May 5 03:35:32 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 5 May 2021 09:35:32 +0200 Subject: notarizing DMG fails In-Reply-To: <001d01d7417b$cb4e5410$61eafc30$@kestner.de> References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> <005201d740cd$72450c00$56cf2400$@kestner.de> <009f01d740fe$999923a0$cccb6ae0$@kestner.de> <001d01d7417b$cb4e5410$61eafc30$@kestner.de> Message-ID: Timo, .app -> Developer ID Application .pkg -> Developer ID Installer .dmg -> Developer ID Application - Matthias Rebbe Life Is Too Short For Boring Code > Am 05.05.2021 um 08:56 schrieb Tiemo via use-livecode : > > Hi Panos, > thanks for jumping in > > I am on macOS 11.2.3 and created the certificates pretty freshly two weeks ago. > Xcode-select -p doesn't returns any version# at all, it just returns a path: "/Applications/Xcode.app/Content/Developer/ > Xcodebuild -version shows Xcode 12.5 build 12E262 > I now (re-?)installed the command line tools by xcode-select -- install > But xcode-select -p still doesn't shows any version# ??? > I now downloaded the Apple Worldwide Developer Relations Intermediate Certificate. Actually I am not sure, if it was there before (I didn't checked it before) > > I will later test again from the scratch > > But I am still unsure if I may use the " Developer ID Application" certificate also for the pkg and dmg or if I have to use the "Developer ID Installer" certificate for the pkg and dmg? > > Thanks > > Tiemo > > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag von panagiotis merakos via use-livecode > Gesendet: Dienstag, 4. Mai 2021 18:19 > An: How to use LiveCode > Cc: panagiotis merakos > Betreff: Re: notarizing DMG fails > > Hello Tiemo, > > When did you create these certificates? And what is your MacOS version, and the Xcode version returned if you type "xcode-select -p" in a Terminal? I am wondering if you need to install the new Apple Worldwide Developer Relations Intermediate Certificate: > > https://developer.apple.com/support/wwdr-intermediate-certificate/ > > You can find it here: > > https://developer.apple.com/support/expiration/ > > Kind regards, > Panos > -- > > On Tue, 4 May 2021 at 19:02, Tiemo via use-livecode < use-livecode at lists.runrev.com> wrote: > >> Hi Matthias, >> >> still struggeling ... >> >> I have two developer certificates in my keychain: >> Developer ID Installer : >> Developer ID Application: >> >> Using the Application certificate on the app and pkg and dmg, all >> codesigning is fine, even when verifying it, but I get the "The binary >> is not signed" error in the notarization log, when notarizing the dmg ??? >> Using the Installer certificate on the pkg, I get already the error >> when codesigning the pkg "this identity cannot be used for signing code" ??? >> >> All errors are the same, either using the tool "Packages" or creating >> the package on command line by pkgbuild (productbuild is only for >> builing appStore apps, as far as I see it) >> >> I must be missing something obvious >> >> Any other ideas? >> Tiemo >> >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode Im Auftrag >> von matthias rebbe via use-livecode >> Gesendet: Dienstag, 4. Mai 2021 13:49 >> An: How to use LiveCode >> Cc: matthias_livecode_150811 at m-r-d.de >> Betreff: Re: notarizing DMG fails >> >> Tiemo, >> >> you can create 2 different installer certificates in you Apple >> developer account. >> One is called 'Mac Installer Distribution' and is used for code >> signing installers for the Mac App Store. >> The other one is called 'Developer ID Installer' and is used to code >> sign your Installer Package for distribution outside of the Mac App >> Store >> >> Which one did you use for signing the packager? >> >> And another question, how did you build the package? Did you use a 3rd >> party tool or did you use 'productbuild' in Terminal? >> If you used a 3rd party tool, then could you please try to create the >> package installer using terminal command? >> >> productbuild --sign >> --component /Applications >> >> example >> productbuild --sign "Developer ID Installer: Matthias Rebbe >> (xxxxxxxxxxxxx)" --component "/users/matthias/LC/builts/test/test.app" >> /Applications "/users/matthias/downloads/MyPackager.pkg" >> >> >> But maybe it was just the wrong installer certificate >> >> Regards >> Matthias >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >>> Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> Hi Matthias, >>> >>> thank you for your ideas. I tried both. >>> >>> When using just signed, but not notarized apps, packing, signing the >>> pkg, wrapping into dmg, signing the dmg, I get the same error when >>> notarizing the dmg "The binary is not signed" >>> >>> When trying to notarize the signed pkg via terminal I get the error: >>> "unable to notarize app" >>> "Upload succeeded but did not receive a RequestedUUID. Unable to >>> upload your app for notarization (-1018)" >>> >>> I also tried to use the "Installer" certificate instead of the >> "Application" >>> certificate, but trying this with codesigning the package, I get the >>> error "this identitiy cannot be used" >>> (actually I don't know for what purposes you can use the Installer >>> certificate) >>> >>> >>> Codesigning and notarizing the apps works fine ... >>> >>> Perhaps I'll look for another packager and go testing with another >> packager. >>> >>> Any other ideas? >>> Tiemo >>> >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode Im Auftrag >>> von matthias rebbe via use-livecode >>> Gesendet: Dienstag, 4. Mai 2021 10:34 >>> An: How to use LiveCode >>> Cc: matthias_livecode_150811 at m-r-d.de >>> Betreff: Re: notarizing DMG fails >>> >>> Hi Tiemo, >>> >>> but you did not create a .pkg from the a notarized app, did you? >>> >>> You have to create and code sign a .pkg from the code signed, but >>> not notarized, .app and then you have to notarize only the .pkg or >>> the code signed .dmg, if you want to distribute as .dmg. >>> So the steps are >>> >>> 1. code sign your .app - do not notarize it! >>> 2. create a .pkg from the .app and code sign it 3. if you want to >>> distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. >>> notarize the .pkg (or the .dmg) >>> >>> The staple process then writes the needed information to the .dmg, >>> to the containing .pkg and the .app. >>> >>> If these are the steps you've done already, then could you please >>> try the following using the helper stack >>> >>> 1. code sign .app >>> 2. notarize the .app using the '.zip method' >>> >>> Is this successful? Then the problem does not rely on your .app. >>> In this case please repeat and code sign the .app using the helper >>> stack and use the .dmg method >>> >>> Is this successful? If so, then also the .dmg is fine >>> >>> Repeat now manually, as .pkg is not supported by the helper stack. >>> >>> 1. code sign .app >>> 2. create .pkg >>> 3. code sign .pkg >>> 4. notarize .pkg >>> >>> Is this successful? >>> >>> Regards, >>> >>> Matthias >>> >>> >>> >>> >>> >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >>> >>>> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode >>> : >>>> >>>> Hello, >>>> >>>> >>>> >>>> I have signed and notarized several apps with Matthias tool - >>>> successful >>>> >>>> Then I packaged theses apps with Packages and signed the package >>>> via terminal - successful >>>> >>>> Then I put the pkg into a dmg via DMG canvas and signed the dmg >>>> via terminal - successful >>>> >>>> Then I uploaded the dmg for notarization via terminal. The upload >>>> was successful, but the email from apple told me, that the upload >>>> was not notarized and the logfile tells me: >>>> >>>> >>>> >>>> Severity: Error >>>> >>>> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" >>>> >>>> Message: The binary is not signed >>>> >>>> >>>> >>>> This is a bit irritating. Has anybody anytime encountered such >>>> conflicting messages? >>>> >>>> Any idea, where to look for? >>>> >>>> Thanks >>>> >>>> Tiemo >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed May 5 04:31:26 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 5 May 2021 10:31:26 +0200 Subject: notarizing DMG fails In-Reply-To: References: <003301d740b9$bd5e99e0$381bcda0$@kestner.de> <005201d740cd$72450c00$56cf2400$@kestner.de> <009f01d740fe$999923a0$cccb6ae0$@kestner.de> <001d01d7417b$cb4e5410$61eafc30$@kestner.de> Message-ID: <6AED9A07-A2A4-4659-BF4D-21179A46AAC2@m-r-d.de> Tiemo, i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. According to Apple (see point 2) https://help.apple.com/xcode/mac/current/#/deve51ce7c3d you have to use the tool productsign to sign the package installer. So the syntax is like this productsign --sign Example productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" After successful signing i got this messages in Terminal productsign: using timestamp authority for signature productsign: signing product with identity "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" from keychain /Users/matthias/Library/Keychains/login.keychain-db productsign: adding certificate "Developer ID Certification Authority" productsign: adding certificate "Apple Root CA" productsign: Wrote signed product archive to /users/matthias/LC/builts/test/test_signed.pkg Regards - Matthias Rebbe Life Is Too Short For Boring Code > Am 05.05.2021 um 09:35 schrieb matthias rebbe via use-livecode : > > Timo, > > .app -> Developer ID Application > .pkg -> Developer ID Installer > .dmg -> Developer ID Application > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 05.05.2021 um 08:56 schrieb Tiemo via use-livecode : >> >> Hi Panos, >> thanks for jumping in >> >> I am on macOS 11.2.3 and created the certificates pretty freshly two weeks ago. >> Xcode-select -p doesn't returns any version# at all, it just returns a path: "/Applications/Xcode.app/Content/Developer/ >> Xcodebuild -version shows Xcode 12.5 build 12E262 >> I now (re-?)installed the command line tools by xcode-select -- install >> But xcode-select -p still doesn't shows any version# ??? >> I now downloaded the Apple Worldwide Developer Relations Intermediate Certificate. Actually I am not sure, if it was there before (I didn't checked it before) >> >> I will later test again from the scratch >> >> But I am still unsure if I may use the " Developer ID Application" certificate also for the pkg and dmg or if I have to use the "Developer ID Installer" certificate for the pkg and dmg? >> >> Thanks >> >> Tiemo >> >> >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode Im Auftrag von panagiotis merakos via use-livecode >> Gesendet: Dienstag, 4. Mai 2021 18:19 >> An: How to use LiveCode >> Cc: panagiotis merakos >> Betreff: Re: notarizing DMG fails >> >> Hello Tiemo, >> >> When did you create these certificates? And what is your MacOS version, and the Xcode version returned if you type "xcode-select -p" in a Terminal? I am wondering if you need to install the new Apple Worldwide Developer Relations Intermediate Certificate: >> >> https://developer.apple.com/support/wwdr-intermediate-certificate/ >> >> You can find it here: >> >> https://developer.apple.com/support/expiration/ >> >> Kind regards, >> Panos >> -- >> >> On Tue, 4 May 2021 at 19:02, Tiemo via use-livecode < use-livecode at lists.runrev.com> wrote: >> >>> Hi Matthias, >>> >>> still struggeling ... >>> >>> I have two developer certificates in my keychain: >>> Developer ID Installer : >>> Developer ID Application: >>> >>> Using the Application certificate on the app and pkg and dmg, all >>> codesigning is fine, even when verifying it, but I get the "The binary >>> is not signed" error in the notarization log, when notarizing the dmg ??? >>> Using the Installer certificate on the pkg, I get already the error >>> when codesigning the pkg "this identity cannot be used for signing code" ??? >>> >>> All errors are the same, either using the tool "Packages" or creating >>> the package on command line by pkgbuild (productbuild is only for >>> builing appStore apps, as far as I see it) >>> >>> I must be missing something obvious >>> >>> Any other ideas? >>> Tiemo >>> >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode Im Auftrag >>> von matthias rebbe via use-livecode >>> Gesendet: Dienstag, 4. Mai 2021 13:49 >>> An: How to use LiveCode >>> Cc: matthias_livecode_150811 at m-r-d.de >>> Betreff: Re: notarizing DMG fails >>> >>> Tiemo, >>> >>> you can create 2 different installer certificates in you Apple >>> developer account. >>> One is called 'Mac Installer Distribution' and is used for code >>> signing installers for the Mac App Store. >>> The other one is called 'Developer ID Installer' and is used to code >>> sign your Installer Package for distribution outside of the Mac App >>> Store >>> >>> Which one did you use for signing the packager? >>> >>> And another question, how did you build the package? Did you use a 3rd >>> party tool or did you use 'productbuild' in Terminal? >>> If you used a 3rd party tool, then could you please try to create the >>> package installer using terminal command? >>> >>> productbuild --sign >>> --component /Applications >>> >>> example >>> productbuild --sign "Developer ID Installer: Matthias Rebbe >>> (xxxxxxxxxxxxx)" --component "/users/matthias/LC/builts/test/test.app" >>> /Applications "/users/matthias/downloads/MyPackager.pkg" >>> >>> >>> But maybe it was just the wrong installer certificate >>> >>> Regards >>> Matthias >>> >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >>> >>>> Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode < >>> use-livecode at lists.runrev.com>: >>>> >>>> Hi Matthias, >>>> >>>> thank you for your ideas. I tried both. >>>> >>>> When using just signed, but not notarized apps, packing, signing the >>>> pkg, wrapping into dmg, signing the dmg, I get the same error when >>>> notarizing the dmg "The binary is not signed" >>>> >>>> When trying to notarize the signed pkg via terminal I get the error: >>>> "unable to notarize app" >>>> "Upload succeeded but did not receive a RequestedUUID. Unable to >>>> upload your app for notarization (-1018)" >>>> >>>> I also tried to use the "Installer" certificate instead of the >>> "Application" >>>> certificate, but trying this with codesigning the package, I get the >>>> error "this identitiy cannot be used" >>>> (actually I don't know for what purposes you can use the Installer >>>> certificate) >>>> >>>> >>>> Codesigning and notarizing the apps works fine ... >>>> >>>> Perhaps I'll look for another packager and go testing with another >>> packager. >>>> >>>> Any other ideas? >>>> Tiemo >>>> >>>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: use-livecode Im Auftrag >>>> von matthias rebbe via use-livecode >>>> Gesendet: Dienstag, 4. Mai 2021 10:34 >>>> An: How to use LiveCode >>>> Cc: matthias_livecode_150811 at m-r-d.de >>>> Betreff: Re: notarizing DMG fails >>>> >>>> Hi Tiemo, >>>> >>>> but you did not create a .pkg from the a notarized app, did you? >>>> >>>> You have to create and code sign a .pkg from the code signed, but >>>> not notarized, .app and then you have to notarize only the .pkg or >>>> the code signed .dmg, if you want to distribute as .dmg. >>>> So the steps are >>>> >>>> 1. code sign your .app - do not notarize it! >>>> 2. create a .pkg from the .app and code sign it 3. if you want to >>>> distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. >>>> notarize the .pkg (or the .dmg) >>>> >>>> The staple process then writes the needed information to the .dmg, >>>> to the containing .pkg and the .app. >>>> >>>> If these are the steps you've done already, then could you please >>>> try the following using the helper stack >>>> >>>> 1. code sign .app >>>> 2. notarize the .app using the '.zip method' >>>> >>>> Is this successful? Then the problem does not rely on your .app. >>>> In this case please repeat and code sign the .app using the helper >>>> stack and use the .dmg method >>>> >>>> Is this successful? If so, then also the .dmg is fine >>>> >>>> Repeat now manually, as .pkg is not supported by the helper stack. >>>> >>>> 1. code sign .app >>>> 2. create .pkg >>>> 3. code sign .pkg >>>> 4. notarize .pkg >>>> >>>> Is this successful? >>>> >>>> Regards, >>>> >>>> Matthias >>>> >>>> >>>> >>>> >>>> >>>> >>>> - >>>> Matthias Rebbe >>>> Life Is Too Short For Boring Code >>>> >>>>> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode >>>> : >>>>> >>>>> Hello, >>>>> >>>>> >>>>> >>>>> I have signed and notarized several apps with Matthias tool - >>>>> successful >>>>> >>>>> Then I packaged theses apps with Packages and signed the package >>>>> via terminal - successful >>>>> >>>>> Then I put the pkg into a dmg via DMG canvas and signed the dmg >>>>> via terminal - successful >>>>> >>>>> Then I uploaded the dmg for notarization via terminal. The upload >>>>> was successful, but the email from apple told me, that the upload >>>>> was not notarized and the logfile tells me: >>>>> >>>>> >>>>> >>>>> Severity: Error >>>>> >>>>> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" >>>>> >>>>> Message: The binary is not signed >>>>> >>>>> >>>>> >>>>> This is a bit irritating. Has anybody anytime encountered such >>>>> conflicting messages? >>>>> >>>>> Any idea, where to look for? >>>>> >>>>> Thanks >>>>> >>>>> Tiemo >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Wed May 5 05:10:04 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Wed, 5 May 2021 11:10:04 +0200 Subject: AW: notarizing DMG fails - solved Message-ID: <003501d7418e$717f0430$547d0c90$@kestner.de> exactly, that?s the culprit! to make matters worse you can use codesign also for packages and even verifying that codesign returns a valid codesign, but using codesign for packages ignores the content of the package and only looks for the envelope, what is useless. So two issues are vital when codesigning packages: Using the Developer Installer ID certificate And not using codesign, but productsign Thank you all for helping my lost soul in Apples notarizing nirvana Tiemo P.S. Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von matthias rebbe via use-livecode Gesendet: Mittwoch, 5. Mai 2021 10:31 An: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Betreff: Re: notarizing DMG fails Tiemo, i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. According to Apple (see point 2) https://help.apple.com/xcode/mac/current/#/deve51ce7c3d you have to use the tool productsign to sign the package installer. So the syntax is like this productsign --sign Example productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" After successful signing i got this messages in Terminal productsign: using timestamp authority for signature productsign: signing product with identity "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" from keychain /Users/matthias/Library/Keychains/login.keychain-db productsign: adding certificate "Developer ID Certification Authority" productsign: adding certificate "Apple Root CA" productsign: Wrote signed product archive to /users/matthias/LC/builts/test/test_signed.pkg Regards - Matthias Rebbe Life Is Too Short For Boring Code > Am 05.05.2021 um 09:35 schrieb matthias rebbe via use-livecode : > > Timo, > > .app -> Developer ID Application > .pkg -> Developer ID Installer > .dmg -> Developer ID Application > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 05.05.2021 um 08:56 schrieb Tiemo via use-livecode : >> >> Hi Panos, >> thanks for jumping in >> >> I am on macOS 11.2.3 and created the certificates pretty freshly two weeks ago. >> Xcode-select -p doesn't returns any version# at all, it just returns >> a path: "/Applications/Xcode.app/Content/Developer/ >> Xcodebuild -version shows Xcode 12.5 build 12E262 I now >> (re-?)installed the command line tools by xcode-select -- install But >> xcode-select -p still doesn't shows any version# ??? >> I now downloaded the Apple Worldwide Developer Relations Intermediate >> Certificate. Actually I am not sure, if it was there before (I didn't >> checked it before) >> >> I will later test again from the scratch >> >> But I am still unsure if I may use the " Developer ID Application" certificate also for the pkg and dmg or if I have to use the "Developer ID Installer" certificate for the pkg and dmg? >> >> Thanks >> >> Tiemo >> >> >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode Im Auftrag >> von panagiotis merakos via use-livecode >> Gesendet: Dienstag, 4. Mai 2021 18:19 >> An: How to use LiveCode >> Cc: panagiotis merakos >> Betreff: Re: notarizing DMG fails >> >> Hello Tiemo, >> >> When did you create these certificates? And what is your MacOS version, and the Xcode version returned if you type "xcode-select -p" in a Terminal? I am wondering if you need to install the new Apple Worldwide Developer Relations Intermediate Certificate: >> >> https://developer.apple.com/support/wwdr-intermediate-certificate/ >> >> You can find it here: >> >> https://developer.apple.com/support/expiration/ >> >> Kind regards, >> Panos >> -- >> >> On Tue, 4 May 2021 at 19:02, Tiemo via use-livecode < use-livecode at lists.runrev.com> wrote: >> >>> Hi Matthias, >>> >>> still struggeling ... >>> >>> I have two developer certificates in my keychain: >>> Developer ID Installer : >>> Developer ID Application: >>> >>> Using the Application certificate on the app and pkg and dmg, all >>> codesigning is fine, even when verifying it, but I get the "The >>> binary is not signed" error in the notarization log, when notarizing the dmg ??? >>> Using the Installer certificate on the pkg, I get already the error >>> when codesigning the pkg "this identity cannot be used for signing code" ??? >>> >>> All errors are the same, either using the tool "Packages" or >>> creating the package on command line by pkgbuild (productbuild is >>> only for builing appStore apps, as far as I see it) >>> >>> I must be missing something obvious >>> >>> Any other ideas? >>> Tiemo >>> >>> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode Im Auftrag >>> von matthias rebbe via use-livecode >>> Gesendet: Dienstag, 4. Mai 2021 13:49 >>> An: How to use LiveCode >>> Cc: matthias_livecode_150811 at m-r-d.de >>> Betreff: Re: notarizing DMG fails >>> >>> Tiemo, >>> >>> you can create 2 different installer certificates in you Apple >>> developer account. >>> One is called 'Mac Installer Distribution' and is used for code >>> signing installers for the Mac App Store. >>> The other one is called 'Developer ID Installer' and is used to code >>> sign your Installer Package for distribution outside of the Mac App >>> Store >>> >>> Which one did you use for signing the packager? >>> >>> And another question, how did you build the package? Did you use a >>> 3rd party tool or did you use 'productbuild' in Terminal? >>> If you used a 3rd party tool, then could you please try to create >>> the package installer using terminal command? >>> >>> productbuild --sign >>> --component /Applications >>> >>> example >>> productbuild --sign "Developer ID Installer: Matthias Rebbe >>> (xxxxxxxxxxxxx)" --component "/users/matthias/LC/builts/test/test.app" >>> /Applications "/users/matthias/downloads/MyPackager.pkg" >>> >>> >>> But maybe it was just the wrong installer certificate >>> >>> Regards >>> Matthias >>> >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >>> >>>> Am 04.05.2021 um 12:08 schrieb Tiemo via use-livecode < >>> use-livecode at lists.runrev.com>: >>>> >>>> Hi Matthias, >>>> >>>> thank you for your ideas. I tried both. >>>> >>>> When using just signed, but not notarized apps, packing, signing >>>> the pkg, wrapping into dmg, signing the dmg, I get the same error >>>> when notarizing the dmg "The binary is not signed" >>>> >>>> When trying to notarize the signed pkg via terminal I get the error: >>>> "unable to notarize app" >>>> "Upload succeeded but did not receive a RequestedUUID. Unable to >>>> upload your app for notarization (-1018)" >>>> >>>> I also tried to use the "Installer" certificate instead of the >>> "Application" >>>> certificate, but trying this with codesigning the package, I get >>>> the error "this identitiy cannot be used" >>>> (actually I don't know for what purposes you can use the Installer >>>> certificate) >>>> >>>> >>>> Codesigning and notarizing the apps works fine ... >>>> >>>> Perhaps I'll look for another packager and go testing with another >>> packager. >>>> >>>> Any other ideas? >>>> Tiemo >>>> >>>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: use-livecode Im >>>> Auftrag von matthias rebbe via use-livecode >>>> Gesendet: Dienstag, 4. Mai 2021 10:34 >>>> An: How to use LiveCode >>>> Cc: matthias_livecode_150811 at m-r-d.de >>>> Betreff: Re: notarizing DMG fails >>>> >>>> Hi Tiemo, >>>> >>>> but you did not create a .pkg from the a notarized app, did you? >>>> >>>> You have to create and code sign a .pkg from the code signed, but >>>> not notarized, .app and then you have to notarize only the .pkg or >>>> the code signed .dmg, if you want to distribute as .dmg. >>>> So the steps are >>>> >>>> 1. code sign your .app - do not notarize it! >>>> 2. create a .pkg from the .app and code sign it 3. if you want to >>>> distribute as dmg, create .dmg with the .pkg and code sign the .dmg 4. >>>> notarize the .pkg (or the .dmg) >>>> >>>> The staple process then writes the needed information to the .dmg, >>>> to the containing .pkg and the .app. >>>> >>>> If these are the steps you've done already, then could you please >>>> try the following using the helper stack >>>> >>>> 1. code sign .app >>>> 2. notarize the .app using the '.zip method' >>>> >>>> Is this successful? Then the problem does not rely on your .app. >>>> In this case please repeat and code sign the .app using the helper >>>> stack and use the .dmg method >>>> >>>> Is this successful? If so, then also the .dmg is fine >>>> >>>> Repeat now manually, as .pkg is not supported by the helper stack. >>>> >>>> 1. code sign .app >>>> 2. create .pkg >>>> 3. code sign .pkg >>>> 4. notarize .pkg >>>> >>>> Is this successful? >>>> >>>> Regards, >>>> >>>> Matthias >>>> >>>> >>>> >>>> >>>> >>>> >>>> - >>>> Matthias Rebbe >>>> Life Is Too Short For Boring Code >>>> >>>>> Am 04.05.2021 um 09:47 schrieb Tiemo via use-livecode >>>> : >>>>> >>>>> Hello, >>>>> >>>>> >>>>> >>>>> I have signed and notarized several apps with Matthias tool - >>>>> successful >>>>> >>>>> Then I packaged theses apps with Packages and signed the package >>>>> via terminal - successful >>>>> >>>>> Then I put the pkg into a dmg via DMG canvas and signed the dmg >>>>> via terminal - successful >>>>> >>>>> Then I uploaded the dmg for notarization via terminal. The upload >>>>> was successful, but the email from apple told me, that the upload >>>>> was not notarized and the logfile tells me: >>>>> >>>>> >>>>> >>>>> Severity: Error >>>>> >>>>> Path: "DGSlern_Update_1.0.0.4.dmg/DGS Lernprogramm 1.0.0.4 Update .pkg" >>>>> >>>>> Message: The binary is not signed >>>>> >>>>> >>>>> >>>>> This is a bit irritating. Has anybody anytime encountered such >>>>> conflicting messages? >>>>> >>>>> Any idea, where to look for? >>>>> >>>>> Thanks >>>>> >>>>> Tiemo >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed May 5 05:20:55 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 5 May 2021 11:20:55 +0200 Subject: notarizing DMG fails - solved In-Reply-To: <003501d7418e$717f0430$547d0c90$@kestner.de> References: <003501d7418e$717f0430$547d0c90$@kestner.de> Message-ID: > Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode : > > Thank you all for helping my lost soul in Apples notarizing nirvana > > Tiemo > > P.S. > Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! > I am currently working on it. ;) First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. The Helper Stack will also get an update to support package installers. But it takes some time. > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag von matthias rebbe via use-livecode > Gesendet: Mittwoch, 5. Mai 2021 10:31 > An: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: notarizing DMG fails > > Tiemo, > > i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. > According to Apple (see point 2) > https://help.apple.com/xcode/mac/current/#/deve51ce7c3d > > you have to use the tool productsign to sign the package installer. > > So the syntax is like this > > productsign --sign > > Example > productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" > > After successful signing i got this messages in Terminal > > productsign: using timestamp authority for signature > productsign: signing product with identity "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" from keychain /Users/matthias/Library/Keychains/login.keychain-db > productsign: adding certificate "Developer ID Certification Authority" > productsign: adding certificate "Apple Root CA" > productsign: Wrote signed product archive to /users/matthias/LC/builts/test/test_signed.pkg > > > Regards > > - > Matthias Rebbe > Life Is Too Short For Boring Code From mkoob at rogers.com Wed May 5 07:36:00 2021 From: mkoob at rogers.com (Martin Koob) Date: Wed, 5 May 2021 07:36:00 -0400 Subject: Problems with Multiple Monitors In-Reply-To: <755492AD-097A-42B6-9550-71007AFD8730@mac.com> References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F.ref@aol.com> <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> <755492AD-097A-42B6-9550-71007AFD8730@mac.com> Message-ID: Hi Roger Thanks, I?ll try that. However then I will have to deal with reprogramming the wetware and the muscle memory which at my age may be a much more difficult process. The ole wetware ain?t as moist and flexible as it once was ;-) Martin > On May 4, 2021, at 8:17 PM, Roger Guay via use-livecode wrote: > > Hi Martin, > > I have the same setup . . . second monitor on top of my MBP. I solved the problem by unchecking ?Displays have separate Spaces? in the Mission Control System Preferences. > > > Roger > >> On May 4, 2021, at 3:17 PM, Martin Koob via use-livecode wrote: >> >> Hi >> >> I have found that when I arrange monitors on my MacBook Pro I can?t position the second monitor above the main monitor(the one with the menu bar). If I do odd things happen. Just so happens I that is the space that I have for a second monitor is on a stand above the screen of my MacBook Pro. So I had to position my second monitor to the left of my main monitor. I am then able to work on LiveCode in either monitor. The only thing I had to do was re-train my brain that moving my mouse left was actually moving it up to my second monitor. Now it is second nature. >> >> It is a really odd workaround and if the bug ever got fixed and I did in fact go back to to having the monitor arrangement with the second monitor above the main monitor I would probably develop carpal tunnel syndrome or maybe tennis elbow or some other musculoskeletal disorder from my mouse hand skidding off the mouse pad and hitting the laptop every time I want to go to the second monitor sitting above my laptop. >> >> Martin >> >> >>> On May 4, 2021, at 5:46 PM, Paul Dupuis via use-livecode wrote: >>> >>> On 5/4/2021 5:32 PM, Fred Moyer via use-livecode wrote: >>>> Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. >>>> >>>> Any suggestions? >>>> Thanks. >>>> >>>> Fred >>>> >>>> >>> >>> With multiple monitor, zero vertical is the top of the top most monitor - regardless of whether it is the primary monitor or not. The on desktopChanged message may also be helpful as it is sent when the displays/monitors change >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Wed May 5 09:43:12 2021 From: irog at mac.com (Roger Guay) Date: Wed, 5 May 2021 06:43:12 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F.ref@aol.com> <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> <755492AD-097A-42B6-9550-71007AFD8730@mac.com> Message-ID: <0E322E80-71C1-416F-94FC-89CF2C5E0B82@mac.com> I hear ya, but with this list we Illegitimi non carborundum! Roger > On May 5, 2021, at 4:36 AM, Martin Koob via use-livecode wrote: > > I will have to deal with reprogramming the wetware and the muscle memory which at my age may be a much more difficult process. The ole wetware ain?t as moist and flexible as it once was ;-) From paul at researchware.com Wed May 5 11:17:04 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 5 May 2021 11:17:04 -0400 Subject: Problems with Multiple Monitors In-Reply-To: References: <59857688-4d17-8028-2598-c04ee1ff5761@researchware.com> Message-ID: <5459f732-0bdb-fce3-e10b-72e188efdf04@researchware.com> On 5/4/2021 8:20 PM, Richard Gaskin via use-livecode wrote: > Paul Dupuis wrote: > >> With multiple monitor, zero vertical is the top of the top most >> monitor? - regardless of whether it is the primary monitor or not. > > If the screenRect is no longer based on the main monitor, what is the > screenloc? > > In a multi-monitor setup, with metrics like that how can one be > expected to center a window? > screenRect still returns the rect of the main monitor and the first line of the screenRects is still the rect of the main or primary monitor (the one with the menubar/taskbar) however, you can not count on its left,top of the primary monitor being 0,0 in a multiple monitor configuration. It may be or it may not be depending of where the second (or more) monitors are in relation to the primary one. Took me a while to figure this one out based on a customer's reported symptoms! Also, if you think you may have customers with multiple monitors, the on desktopChanged message is your friend. I ran into a customer who would often leave HyperRESEARCH running, minimized or hidden, and then remove a external monitor from their laptop to go. LiveCode still thinks the monitor is attached and when they placed HR windows on that external monitor, those windows were no visible or accessible (unless they quit and restarted HR). Now I have a desktopChanged handler that gets the screenRects and checks to see if every open window is inside a current screenRect and moves the windows if needed. -- Paul From ambassador at fourthworld.com Wed May 5 11:42:47 2021 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 5 May 2021 08:42:47 -0700 Subject: Problems with Multiple Monitors In-Reply-To: <5459f732-0bdb-fce3-e10b-72e188efdf04@researchware.com> References: <5459f732-0bdb-fce3-e10b-72e188efdf04@researchware.com> Message-ID: <4a404ea1-2b58-fb5f-73ab-a1d64c448e39@fourthworld.com> Thanks, Paul, and the others who chimed in. I'm familiar with the documented features for screen metrics, just trying to determine if the rect of the main screen no longer being the reference point for metrics is a change/bug I need to be concerned about? And this got me thinking about screenLoc: if the main screen isn't the reference point, then is the screenLoc adjusted for the non-0,0 corner or is it based on the sum boundary of all connected monitors? And is any of this platform-specific? Or different from how it's been since the plural screenRects was introduced? -- Richard Gaskin Fourth World Systems Paul Dupuis wrote: > On 5/4/2021 8:20 PM, Richard Gaskin via use-livecode wrote: >> Paul Dupuis wrote: >> >>> With multiple monitor, zero vertical is the top of the top most >>> monitor - regardless of whether it is the primary monitor or not. >> >> If the screenRect is no longer based on the main monitor, what is the >> screenloc? >> >> In a multi-monitor setup, with metrics like that how can one be >> expected to center a window? >> > > screenRect still returns the rect of the main monitor > and > the first line of the screenRects is still the rect of the main or > primary monitor (the one with the menubar/taskbar) > > however, you can not count on its left,top of the primary monitor being > 0,0 in a multiple monitor configuration. It may be or it may not be > depending of where the second (or more) monitors are in relation to the > primary one. Took me a while to figure this one out based on a > customer's reported symptoms! > > Also, if you think you may have customers with multiple monitors, the on > desktopChanged message is your friend. I ran into a customer who would > often leave HyperRESEARCH running, minimized or hidden, and then remove > a external monitor from their laptop to go. LiveCode still thinks the > monitor is attached and when they placed HR windows on that external > monitor, those windows were no visible or accessible (unless they quit > and restarted HR). Now I have a desktopChanged handler that gets the > screenRects and checks to see if every open window is inside a current > screenRect and moves the windows if needed. From paul at researchware.com Wed May 5 11:53:27 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 5 May 2021 11:53:27 -0400 Subject: Problems with Multiple Monitors In-Reply-To: <4a404ea1-2b58-fb5f-73ab-a1d64c448e39@fourthworld.com> References: <5459f732-0bdb-fce3-e10b-72e188efdf04@researchware.com> <4a404ea1-2b58-fb5f-73ab-a1d64c448e39@fourthworld.com> Message-ID: On 5/5/2021 11:42 AM, Richard Gaskin via use-livecode wrote: > Thanks, Paul, and the others who chimed in. > > I'm familiar with the documented features for screen metrics, just > trying to determine if the rect of the main screen no longer being the > reference point for metrics is a change/bug I need to be concerned about? > > And this got me thinking about screenLoc: if the main screen isn't the > reference point, then is the screenLoc adjusted for the non-0,0 corner > or is it based on the sum boundary of all connected monitors? > > And is any of this platform-specific? > > Or different from how it's been since the plural screenRects was > introduced? > I'm afraid I can't help with this. A good while ago, I moved to my own centerWindow command that doesn't use screenLoc, but uses the stack's (window's the screen property 9for the line number of the screenRect the stack is on) and the screenRects to get the rect of the monitor the window is on. I then use that monitor's rect to get the center coordinates and then adjust for any menubar or taskbar, etc to get the effective center for that monitor to center a window (I think I actually now use the working screenRects or effective screenRects or maybe the effective working screenRects ;-) From ahsoftware at sonic.net Wed May 5 12:15:16 2021 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 5 May 2021 09:15:16 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <5459f732-0bdb-fce3-e10b-72e188efdf04@researchware.com> <4a404ea1-2b58-fb5f-73ab-a1d64c448e39@fourthworld.com> Message-ID: On 5/5/21 8:53 AM, Paul Dupuis via use-livecode wrote: > I'm afraid I can't help with this. A good while ago, I moved to my own > centerWindow command that doesn't use screenLoc, but uses the stack's > (window's the screen property 9for the line number of the screenRect the > stack is on) and the screenRects to get the rect of the monitor the > window is on. I then use that monitor's rect to get the center > coordinates and then adjust for any menubar or taskbar, etc to get the > effective center for that monitor to center a window (I think I actually > now use the working screenRects or effective screenRects or maybe the > effective working screenRects ;-) Yep - that's what I do as well. A couple of useful enhancements would be the screenLocs # return a list the screenLoc(2) # allow a parameter for the screen number -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Wed May 5 12:34:00 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 5 May 2021 12:34:00 -0400 Subject: Problems with Multiple Monitors In-Reply-To: References: <5459f732-0bdb-fce3-e10b-72e188efdf04@researchware.com> <4a404ea1-2b58-fb5f-73ab-a1d64c448e39@fourthworld.com> Message-ID: <43e99c31-64f7-a623-d698-d619a6fa93ff@researchware.com> On 5/5/2021 12:15 PM, Mark Wieder via use-livecode wrote: > On 5/5/21 8:53 AM, Paul Dupuis via use-livecode wrote: > >> I'm afraid I can't help with this. A good while ago, I moved to my >> own centerWindow command that doesn't use screenLoc, but uses the >> stack's (window's the screen property 9for the line number of the >> screenRect the stack is on) and the screenRects to get the rect of >> the monitor the window is on. I then use that monitor's rect to get >> the center coordinates and then adjust for any menubar or taskbar, >> etc to get the effective center for that monitor to center a window >> (I think I actually now use the working screenRects or effective >> screenRects or maybe the effective working screenRects ;-) > > Yep - that's what I do as well. > A couple of useful enhancements would be > > the screenLocs # return a list > the screenLoc(2) # allow a parameter for the screen number > +1 to both of those! From paul at researchware.com Wed May 5 12:35:24 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 5 May 2021 12:35:24 -0400 Subject: Problems with Multiple Monitors In-Reply-To: References: <5459f732-0bdb-fce3-e10b-72e188efdf04@researchware.com> <4a404ea1-2b58-fb5f-73ab-a1d64c448e39@fourthworld.com> Message-ID: <81b2b6a2-41d3-7281-3257-dff8d2216629@researchware.com> On 5/5/2021 12:15 PM, Mark Wieder via use-livecode wrote: > On 5/5/21 8:53 AM, Paul Dupuis via use-livecode wrote: > >> I'm afraid I can't help with this. A good while ago, I moved to my >> own centerWindow command that doesn't use screenLoc, but uses the >> stack's (window's the screen property 9for the line number of the >> screenRect the stack is on) and the screenRects to get the rect of >> the monitor the window is on. I then use that monitor's rect to get >> the center coordinates and then adjust for any menubar or taskbar, >> etc to get the effective center for that monitor to center a window >> (I think I actually now use the working screenRects or effective >> screenRects or maybe the effective working screenRects ;-) > > Yep - that's what I do as well. > A couple of useful enhancements would be > > the screenLocs # return a list > the screenLoc(2) # allow a parameter for the screen number > I'd also like to see 'effective' and 'working' applied to the screenRect and screenRects and screenRect(the screen of window X) From phil at pdslabs.net Wed May 5 13:49:10 2021 From: phil at pdslabs.net (Phil Davis) Date: Wed, 5 May 2021 10:49:10 -0700 Subject: notarizing DMG fails - solved In-Reply-To: References: <003501d7418e$717f0430$547d0c90$@kestner.de> Message-ID: <2aec2cca-de42-8060-cc29-c6ecbe6a25e8@pdslabs.net> Thank you Matthias! Your tools make my life SO much easier! You have done a great service for this community. Phil Davis On 5/5/21 2:20 AM, matthias rebbe via use-livecode wrote: >> Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode : >> >> Thank you all for helping my lost soul in Apples notarizing nirvana >> >> Tiemo >> >> P.S. >> Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! >> > I am currently working on it. ;) > First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. > > The Helper Stack will also get an update to support package installers. But it takes some time. > > > >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode Im Auftrag von matthias rebbe via use-livecode >> Gesendet: Mittwoch, 5. Mai 2021 10:31 >> An: How to use LiveCode >> Cc: matthias_livecode_150811 at m-r-d.de >> Betreff: Re: notarizing DMG fails >> >> Tiemo, >> >> i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. >> According to Apple (see point 2) >> https://help.apple.com/xcode/mac/current/#/deve51ce7c3d >> >> you have to use the tool productsign to sign the package installer. >> >> So the syntax is like this >> >> productsign --sign >> >> Example >> productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" >> >> After successful signing i got this messages in Terminal >> >> productsign: using timestamp authority for signature >> productsign: signing product with identity "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" from keychain /Users/matthias/Library/Keychains/login.keychain-db >> productsign: adding certificate "Developer ID Certification Authority" >> productsign: adding certificate "Apple Root CA" >> productsign: Wrote signed product archive to /users/matthias/LC/builts/test/test_signed.pkg >> >> >> Regards >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis 503-307-4363 From matthias_livecode_150811 at m-r-d.de Wed May 5 19:17:49 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 6 May 2021 01:17:49 +0200 Subject: notarizing DMG fails - solved In-Reply-To: <2aec2cca-de42-8060-cc29-c6ecbe6a25e8@pdslabs.net> References: <003501d7418e$717f0430$547d0c90$@kestner.de> <2aec2cca-de42-8060-cc29-c6ecbe6a25e8@pdslabs.net> Message-ID: <43739CB7-E40E-489F-B808-2EB977794357@m-r-d.de> Thanks Phil. @all I've updated the lesson at https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore now and added detailed information about package installers. So it now contains also information about how to create,sign and notarize package installers or package installers on dmg. It would be really awesome, if someone could check it. I needed to insert some additional steps and i really hope that i did not forget to adjust some references to internal steps. So please let me if you find any errors, typos or wrong information. Thanks. Matthias > Am 05.05.2021 um 19:49 schrieb Phil Davis via use-livecode : > > Thank you Matthias! Your tools make my life SO much easier! You have > done a great service for this community. > > Phil Davis > > > On 5/5/21 2:20 AM, matthias rebbe via use-livecode wrote: >>> Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode : >>> >>> Thank you all for helping my lost soul in Apples notarizing nirvana >>> >>> Tiemo >>> >>> P.S. >>> Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! >>> >> I am currently working on it. ;) >> First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. >> >> The Helper Stack will also get an update to support package installers. But it takes some time. >> >> >> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode Im Auftrag von matthias rebbe via use-livecode >>> Gesendet: Mittwoch, 5. Mai 2021 10:31 >>> An: How to use LiveCode >>> Cc: matthias_livecode_150811 at m-r-d.de >>> Betreff: Re: notarizing DMG fails >>> >>> Tiemo, >>> >>> i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. >>> According to Apple (see point 2) >>> https://help.apple.com/xcode/mac/current/#/deve51ce7c3d >>> >>> you have to use the tool productsign to sign the package installer. >>> >>> So the syntax is like this >>> >>> productsign --sign >>> >>> Example >>> productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" >>> >>> After successful signing i got this messages in Terminal >>> >>> productsign: using timestamp authority for signature >>> productsign: signing product with identity "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" from keychain /Users/matthias/Library/Keychains/login.keychain-db >>> productsign: adding certificate "Developer ID Certification Authority" >>> productsign: adding certificate "Apple Root CA" >>> productsign: Wrote signed product archive to /users/matthias/LC/builts/test/test_signed.pkg >>> >>> >>> Regards >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Phil Davis > 503-307-4363 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Thu May 6 04:28:12 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Thu, 6 May 2021 10:28:12 +0200 Subject: which entity has to be notarized/stapled? Message-ID: <004c01d74251$c1fee290$45fca7b0$@kestner.de> One question is left for me about notarization and stapling. If you have an app, which is packaged and the package is wrapped in a DMG, which instance should be notarized and which stapled? All three, each one after the other, before proceeding to the next step, or only the outer shell, in this case the DMG? Is the notarization/stapeling checked by the gatekeeper only once at installation time or at each start of the app? If I would only notarize and staple the outer DMG, is the notarization and stapling be automatically issued downwards to the content of the DMG down to the package and the app inside the package? Or on the other hand, would it interfere the process, if I would do notarization and stapling at each step? Thanks for getting some insight in gatekeepers behaviour. @Matthias: perhaps you want to add this information also in you doc in chapter 7 / 7.5 to clarify this question? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von matthias rebbe via use-livecode Gesendet: Donnerstag, 6. Mai 2021 01:18 An: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Betreff: Re: notarizing DMG fails - solved Thanks Phil. @all I've updated the lesson at https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore now and added detailed information about package installers. So it now contains also information about how to create,sign and notarize package installers or package installers on dmg. It would be really awesome, if someone could check it. I needed to insert some additional steps and i really hope that i did not forget to adjust some references to internal steps. So please let me if you find any errors, typos or wrong information. Thanks. Matthias > Am 05.05.2021 um 19:49 schrieb Phil Davis via use-livecode : > > Thank you Matthias! Your tools make my life SO much easier! You have > done a great service for this community. > > Phil Davis > > > On 5/5/21 2:20 AM, matthias rebbe via use-livecode wrote: >>> Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode : >>> >>> Thank you all for helping my lost soul in Apples notarizing nirvana >>> >>> Tiemo >>> >>> P.S. >>> Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! >>> >> I am currently working on it. ;) >> First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. >> >> The Helper Stack will also get an update to support package installers. But it takes some time. >> >> >> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode Im Auftrag >>> von matthias rebbe via use-livecode >>> Gesendet: Mittwoch, 5. Mai 2021 10:31 >>> An: How to use LiveCode >>> Cc: matthias_livecode_150811 at m-r-d.de >>> Betreff: Re: notarizing DMG fails >>> >>> Tiemo, >>> >>> i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. >>> According to Apple (see point 2) >>> https://help.apple.com/xcode/mac/current/#/deve51ce7c3d >>> >>> you have to use the tool productsign to sign the package installer. >>> >>> So the syntax is like this >>> >>> productsign --sign >>> >>> >>> Example >>> productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" >>> >>> After successful signing i got this messages in Terminal >>> >>> productsign: using timestamp authority for signature >>> productsign: signing product with identity "Developer ID Installer: >>> Matthias Rebbe (xxxxxxxx)" from keychain >>> /Users/matthias/Library/Keychains/login.keychain-db >>> productsign: adding certificate "Developer ID Certification Authority" >>> productsign: adding certificate "Apple Root CA" >>> productsign: Wrote signed product archive to >>> /users/matthias/LC/builts/test/test_signed.pkg >>> >>> >>> Regards >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Phil Davis > 503-307-4363 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From fmoyer at aol.com Thu May 6 04:41:58 2021 From: fmoyer at aol.com (Fred Moyer) Date: Thu, 6 May 2021 04:41:58 -0400 Subject: Problems with Multiple Monitors In-Reply-To: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> Message-ID: > On May 4, 2021, at 5:32 PM, Fred Moyer wrote: > > Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. > > Any suggestions? > Thanks. > > Fred > > Thanks everyone for the interesting replies. I learned a lot (?desktopChanged", "the working screenrects,? difference between "the screenrect" and "the screenrects," etc.) I have a hunch, though, my problem may relate to stack RevMenubar and some accommodation the IDE makes for ?the mouseV? depending on whether RevMenubar is showing or whether you have your own menubar or whether that screen has a menubar in it ? I dunno. I?ve never understood how this works. I notice sometimes, though, when I turn on Toolbar Text, it shows up about 100 or 200 pixels down. Fred From matthias_livecode_150811 at m-r-d.de Thu May 6 05:18:10 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 6 May 2021 11:18:10 +0200 Subject: which entity has to be notarized/stapled? In-Reply-To: <004c01d74251$c1fee290$45fca7b0$@kestner.de> References: <004c01d74251$c1fee290$45fca7b0$@kestner.de> Message-ID: <550074EF-A08C-4B21-AA89-541B0352B540@m-r-d.de> So... Stapling always staples the app, regardless if it is nested in one container or more. When you send your app as pkg, dmg or as pkg on dmg to apple, then you can staple those containers, because the stapling goes "through" and the stapling information is written to the .app inside the container. When you sent a .zip file to Apple, then you have to staple the .app itself. You do not need to extract the zip and staple that .app. You can staple the app from which you've created the .zip. The .zip file can be deleted, because it is not needed anymore. - Matthias Rebbe Life Is Too Short For Boring Code > Am 06.05.2021 um 10:28 schrieb Tiemo via use-livecode : > > One question is left for me about notarization and stapling. If you have an app, which is packaged and the package is wrapped in a DMG, which instance should be notarized and which stapled? All three, each one after the other, before proceeding to the next step, or only the outer shell, in this case the DMG? > > Is the notarization/stapeling checked by the gatekeeper only once at installation time or at each start of the app? > If I would only notarize and staple the outer DMG, is the notarization and stapling be automatically issued downwards to the content of the DMG down to the package and the app inside the package? Or on the other hand, would it interfere the process, if I would do notarization and stapling at each step? > > Thanks for getting some insight in gatekeepers behaviour. > > @Matthias: perhaps you want to add this information also in you doc in chapter 7 / 7.5 to clarify this question? > > Thanks > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag von matthias rebbe via use-livecode > Gesendet: Donnerstag, 6. Mai 2021 01:18 > An: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: notarizing DMG fails - solved > > Thanks Phil. > > > @all > I've updated the lesson at > > https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore > > now and added detailed information about package installers. > So it now contains also information about how to create,sign and notarize package installers or package installers on dmg. > > > It would be really awesome, if someone could check it. I needed to insert some additional steps and i really hope that i did not forget to adjust some references to internal steps. > > So please let me if you find any errors, typos or wrong information. > > Thanks. > > Matthias > > >> Am 05.05.2021 um 19:49 schrieb Phil Davis via use-livecode : >> >> Thank you Matthias! Your tools make my life SO much easier! You have >> done a great service for this community. >> >> Phil Davis >> >> >> On 5/5/21 2:20 AM, matthias rebbe via use-livecode wrote: >>>> Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode : >>>> >>>> Thank you all for helping my lost soul in Apples notarizing nirvana >>>> >>>> Tiemo >>>> >>>> P.S. >>>> Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! >>>> >>> I am currently working on it. ;) >>> First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. >>> >>> The Helper Stack will also get an update to support package installers. But it takes some time. >>> >>> >>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: use-livecode Im Auftrag >>>> von matthias rebbe via use-livecode >>>> Gesendet: Mittwoch, 5. Mai 2021 10:31 >>>> An: How to use LiveCode >>>> Cc: matthias_livecode_150811 at m-r-d.de >>>> Betreff: Re: notarizing DMG fails >>>> >>>> Tiemo, >>>> >>>> i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. >>>> According to Apple (see point 2) >>>> https://help.apple.com/xcode/mac/current/#/deve51ce7c3d >>>> >>>> you have to use the tool productsign to sign the package installer. >>>> >>>> So the syntax is like this >>>> >>>> productsign --sign >>>> >>>> >>>> Example >>>> productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" >>>> >>>> After successful signing i got this messages in Terminal >>>> >>>> productsign: using timestamp authority for signature >>>> productsign: signing product with identity "Developer ID Installer: >>>> Matthias Rebbe (xxxxxxxx)" from keychain >>>> /Users/matthias/Library/Keychains/login.keychain-db >>>> productsign: adding certificate "Developer ID Certification Authority" >>>> productsign: adding certificate "Apple Root CA" >>>> productsign: Wrote signed product archive to >>>> /users/matthias/LC/builts/test/test_signed.pkg >>>> >>>> >>>> Regards >>>> >>>> - >>>> Matthias Rebbe >>>> Life Is Too Short For Boring Code >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> -- >> Phil Davis >> 503-307-4363 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Thu May 6 05:19:01 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Thu, 6 May 2021 11:19:01 +0200 Subject: AW: which entity has to be notarized/stapled? In-Reply-To: <004c01d74251$c1fee290$45fca7b0$@kestner.de> References: <004c01d74251$c1fee290$45fca7b0$@kestner.de> Message-ID: <006001d74258$db3703d0$91a50b70$@kestner.de> I found an answer to my question here https://developer.apple.com/forums/thread/650288 : You will need to sign the .pkg installer with Developer ID and notarize it in order for it to install on macOS 10.14.5 and newer. The reason why it may have appeared to work locally was that the pkg wasn't quarantined. The recommended QA procedure for installation is to start with a fresh macOS VM instance and use Air Drop or a web browser to download the file into it. Then double click on it like a user would. If it installs and runs properly, you can ship it. DMGs are like zip files -- notarization is not required to open them. However, their contents must be notarized in order to run. You can do one of two approaches: Sign the app, put it in the DMG, sign the DMG, then upload the dmg to be notarized. Zip up the app and notarize the app separately, then put it in a DMG and distribute the DMG without notarizing it When you notarize a DMG, pkg, or bundle, everything inside is automatically unpacked and notarized as well. So you only need to upload the "top level" file for notarizing in a single pass, not the contents separately. You can read a lot more here: https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von Tiemo via use-livecode Gesendet: Donnerstag, 6. Mai 2021 10:28 An: 'How to use LiveCode' Cc: toolbook at kestner.de Betreff: which entity has to be notarized/stapled? One question is left for me about notarization and stapling. If you have an app, which is packaged and the package is wrapped in a DMG, which instance should be notarized and which stapled? All three, each one after the other, before proceeding to the next step, or only the outer shell, in this case the DMG? Is the notarization/stapeling checked by the gatekeeper only once at installation time or at each start of the app? If I would only notarize and staple the outer DMG, is the notarization and stapling be automatically issued downwards to the content of the DMG down to the package and the app inside the package? Or on the other hand, would it interfere the process, if I would do notarization and stapling at each step? Thanks for getting some insight in gatekeepers behaviour. @Matthias: perhaps you want to add this information also in you doc in chapter 7 / 7.5 to clarify this question? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von matthias rebbe via use-livecode Gesendet: Donnerstag, 6. Mai 2021 01:18 An: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Betreff: Re: notarizing DMG fails - solved Thanks Phil. @all I've updated the lesson at https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore now and added detailed information about package installers. So it now contains also information about how to create,sign and notarize package installers or package installers on dmg. It would be really awesome, if someone could check it. I needed to insert some additional steps and i really hope that i did not forget to adjust some references to internal steps. So please let me if you find any errors, typos or wrong information. Thanks. Matthias > Am 05.05.2021 um 19:49 schrieb Phil Davis via use-livecode : > > Thank you Matthias! Your tools make my life SO much easier! You have > done a great service for this community. > > Phil Davis > > > On 5/5/21 2:20 AM, matthias rebbe via use-livecode wrote: >>> Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode : >>> >>> Thank you all for helping my lost soul in Apples notarizing nirvana >>> >>> Tiemo >>> >>> P.S. >>> Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! >>> >> I am currently working on it. ;) >> First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. >> >> The Helper Stack will also get an update to support package installers. But it takes some time. >> >> >> >>> -----Urspr?ngliche Nachricht----- >>> Von: use-livecode Im Auftrag >>> von matthias rebbe via use-livecode >>> Gesendet: Mittwoch, 5. Mai 2021 10:31 >>> An: How to use LiveCode >>> Cc: matthias_livecode_150811 at m-r-d.de >>> Betreff: Re: notarizing DMG fails >>> >>> Tiemo, >>> >>> i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. >>> According to Apple (see point 2) >>> https://help.apple.com/xcode/mac/current/#/deve51ce7c3d >>> >>> you have to use the tool productsign to sign the package installer. >>> >>> So the syntax is like this >>> >>> productsign --sign >>> >>> >>> Example >>> productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" >>> >>> After successful signing i got this messages in Terminal >>> >>> productsign: using timestamp authority for signature >>> productsign: signing product with identity "Developer ID Installer: >>> Matthias Rebbe (xxxxxxxx)" from keychain >>> /Users/matthias/Library/Keychains/login.keychain-db >>> productsign: adding certificate "Developer ID Certification Authority" >>> productsign: adding certificate "Apple Root CA" >>> productsign: Wrote signed product archive to >>> /users/matthias/LC/builts/test/test_signed.pkg >>> >>> >>> Regards >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Phil Davis > 503-307-4363 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu May 6 05:41:43 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 6 May 2021 11:41:43 +0200 Subject: which entity has to be notarized/stapled? In-Reply-To: <006001d74258$db3703d0$91a50b70$@kestner.de> References: <004c01d74251$c1fee290$45fca7b0$@kestner.de> <006001d74258$db3703d0$91a50b70$@kestner.de> Message-ID: <2E9A6EBF-D6FD-4421-9DAF-AE68C74B3177@m-r-d.de> Tiemo, i am wondering, if my lesson is not clear enough about this. What do you think? I really thought, that it's clear that you just have to sent only the top level container to Apple and that the local stapling process goes through the container and writes the information to the app within the container. Or is the lesson just to complex and i should divide it in multiple parts to make it easier to understand? Matthias > Am 06.05.2021 um 11:19 schrieb Tiemo via use-livecode >: > > I found an answer to my question here https://developer.apple.com/forums/thread/650288 : > > You will need to sign the .pkg installer with Developer ID and notarize it in order for it to install on macOS 10.14.5 and newer. The reason why it may have appeared to work locally was that the pkg wasn't quarantined. > > The recommended QA procedure for installation is to start with a fresh macOS VM instance and use Air Drop or a web browser to download the file into it. Then double click on it like a user would. If it installs and runs properly, you can ship it. > > DMGs are like zip files -- notarization is not required to open them. However, their contents must be notarized in order to run. You can do one of two approaches: > > Sign the app, put it in the DMG, sign the DMG, then upload the dmg to be notarized. > > Zip up the app and notarize the app separately, then put it in a DMG and distribute the DMG without notarizing it > > When you notarize a DMG, pkg, or bundle, everything inside is automatically unpacked and notarized as well. So you only need to upload the "top level" file for notarizing in a single pass, not the contents separately. > > You can read a lot more here: https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution > > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode > Im Auftrag von Tiemo via use-livecode > Gesendet: Donnerstag, 6. Mai 2021 10:28 > An: 'How to use LiveCode' > > Cc: toolbook at kestner.de > Betreff: which entity has to be notarized/stapled? > > One question is left for me about notarization and stapling. If you have an app, which is packaged and the package is wrapped in a DMG, which instance should be notarized and which stapled? All three, each one after the other, before proceeding to the next step, or only the outer shell, in this case the DMG? > > Is the notarization/stapeling checked by the gatekeeper only once at installation time or at each start of the app? > If I would only notarize and staple the outer DMG, is the notarization and stapling be automatically issued downwards to the content of the DMG down to the package and the app inside the package? Or on the other hand, would it interfere the process, if I would do notarization and stapling at each step? > > Thanks for getting some insight in gatekeepers behaviour. > > @Matthias: perhaps you want to add this information also in you doc in chapter 7 / 7.5 to clarify this question? > > Thanks > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode > Im Auftrag von matthias rebbe via use-livecode > Gesendet: Donnerstag, 6. Mai 2021 01:18 > An: How to use LiveCode > > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: notarizing DMG fails - solved > > Thanks Phil. > > > @all > I've updated the lesson at > > https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore > > now and added detailed information about package installers. > So it now contains also information about how to create,sign and notarize package installers or package installers on dmg. > > > It would be really awesome, if someone could check it. I needed to insert some additional steps and i really hope that i did not forget to adjust some references to internal steps. > > So please let me if you find any errors, typos or wrong information. > > Thanks. > > Matthias > > >> Am 05.05.2021 um 19:49 schrieb Phil Davis via use-livecode >: >> >> Thank you Matthias! Your tools make my life SO much easier! You have >> done a great service for this community. >> >> Phil Davis >> >> >> On 5/5/21 2:20 AM, matthias rebbe via use-livecode wrote: >>>> Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode >: >>>> >>>> Thank you all for helping my lost soul in Apples notarizing nirvana >>>> >>>> Tiemo >>>> >>>> P.S. >>>> Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! >>>> >>> I am currently working on it. ;) >>> First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. >>> >>> The Helper Stack will also get an update to support package installers. But it takes some time. >>> >>> >>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: use-livecode > Im Auftrag >>>> von matthias rebbe via use-livecode >>>> Gesendet: Mittwoch, 5. Mai 2021 10:31 >>>> An: How to use LiveCode > >>>> Cc: matthias_livecode_150811 at m-r-d.de >>>> Betreff: Re: notarizing DMG fails >>>> >>>> Tiemo, >>>> >>>> i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. >>>> According to Apple (see point 2) >>>> https://help.apple.com/xcode/mac/current/#/deve51ce7c3d >>>> >>>> you have to use the tool productsign to sign the package installer. >>>> >>>> So the syntax is like this >>>> >>>> productsign --sign >>>> >>>> >>>> Example >>>> productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" >>>> >>>> After successful signing i got this messages in Terminal >>>> >>>> productsign: using timestamp authority for signature >>>> productsign: signing product with identity "Developer ID Installer: >>>> Matthias Rebbe (xxxxxxxx)" from keychain >>>> /Users/matthias/Library/Keychains/login.keychain-db >>>> productsign: adding certificate "Developer ID Certification Authority" >>>> productsign: adding certificate "Apple Root CA" >>>> productsign: Wrote signed product archive to >>>> /users/matthias/LC/builts/test/test_signed.pkg >>>> >>>> >>>> Regards >>>> >>>> - >>>> Matthias Rebbe >>>> Life Is Too Short For Boring Code >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> -- >> Phil Davis >> 503-307-4363 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode - Matthias Rebbe Life Is Too Short For Boring Code From toolbook at kestner.de Thu May 6 06:37:26 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Thu, 6 May 2021 12:37:26 +0200 Subject: AW: which entity has to be notarized/stapled? In-Reply-To: <2E9A6EBF-D6FD-4421-9DAF-AE68C74B3177@m-r-d.de> References: <004c01d74251$c1fee290$45fca7b0$@kestner.de> <006001d74258$db3703d0$91a50b70$@kestner.de> <2E9A6EBF-D6FD-4421-9DAF-AE68C74B3177@m-r-d.de> Message-ID: <006c01d74263$cfb04430$6f10cc90$@kestner.de> Hi Matthias, your doc is wonderful helpful! Just the matter is pretty complex for the first time, and there are quite a bunch of different approaches to go and I have to find the pieces for my approach. Therefore I wouldn't chop it into several docs. Sometimes I overread some implicit informations you gave, like in this sentence: "To get our DMG and the containing pkg or app notarized by Apple we need to upload it to Apple." For me it would be sometimes easier to read with some explicit informations, like: " When you notarize a DMG, pkg, or bundle, everything inside is automatically unpacked and notarized as well. So you only need to upload the "top level" file for notarizing in a single pass, not the contents separately. DMGs are like zip files -- notarization is not required to open them. However, their contents must be notarized in order to run. You can do one of two approaches: Sign the app, put it in the DMG, sign the DMG, then upload the dmg to be notarized. Zip up the app and notarize the app separately, then put it in a DMG and distribute the DMG without notarizing it" Which could be put at the beginning of chapter 7. Or your explanation from your last post: " Stapling always staples the app, regardless if it is nested in one container or more. When you send your app as pkg, dmg or as pkg on dmg to apple, then you can staple those containers, because the stapling goes "through" and the stapling information is written to the .app inside the container." Which could be added to chapter 7.5. Your guide is perfect to go thru step by step, but I also want to understand, whats going on behind the scenes to know why I am doing what and what not. But this is just my preference. My 2 cents Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von matthias rebbe via use-livecode Gesendet: Donnerstag, 6. Mai 2021 11:42 An: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Betreff: Re: which entity has to be notarized/stapled? Tiemo, i am wondering, if my lesson is not clear enough about this. What do you think? I really thought, that it's clear that you just have to sent only the top level container to Apple and that the local stapling process goes through the container and writes the information to the app within the container. Or is the lesson just to complex and i should divide it in multiple parts to make it easier to understand? Matthias > Am 06.05.2021 um 11:19 schrieb Tiemo via use-livecode >: > > I found an answer to my question here https://developer.apple.com/forums/thread/650288 : > > You will need to sign the .pkg installer with Developer ID and notarize it in order for it to install on macOS 10.14.5 and newer. The reason why it may have appeared to work locally was that the pkg wasn't quarantined. > > The recommended QA procedure for installation is to start with a fresh macOS VM instance and use Air Drop or a web browser to download the file into it. Then double click on it like a user would. If it installs and runs properly, you can ship it. > > DMGs are like zip files -- notarization is not required to open them. However, their contents must be notarized in order to run. You can do one of two approaches: > > Sign the app, put it in the DMG, sign the DMG, then upload the dmg to be notarized. > > Zip up the app and notarize the app separately, then put it in a > DMG and distribute the DMG without notarizing it > > When you notarize a DMG, pkg, or bundle, everything inside is automatically unpacked and notarized as well. So you only need to upload the "top level" file for notarizing in a single pass, not the contents separately. > > You can read a lot more here: > https://developer.apple.com/documentation/xcode/notarizing_macos_softw > are_before_distribution > ware_before_distribution> > > Tiemo > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode > Im Auftrag von Tiemo > via use-livecode > Gesendet: Donnerstag, 6. Mai 2021 10:28 > An: 'How to use LiveCode' > > Cc: toolbook at kestner.de > Betreff: which entity has to be notarized/stapled? > > One question is left for me about notarization and stapling. If you have an app, which is packaged and the package is wrapped in a DMG, which instance should be notarized and which stapled? All three, each one after the other, before proceeding to the next step, or only the outer shell, in this case the DMG? > > Is the notarization/stapeling checked by the gatekeeper only once at installation time or at each start of the app? > If I would only notarize and staple the outer DMG, is the notarization and stapling be automatically issued downwards to the content of the DMG down to the package and the app inside the package? Or on the other hand, would it interfere the process, if I would do notarization and stapling at each step? > > Thanks for getting some insight in gatekeepers behaviour. > > @Matthias: perhaps you want to add this information also in you doc in chapter 7 / 7.5 to clarify this question? > > Thanks > Tiemo > > -----Urspr?ngliche Nachricht----- > Von: use-livecode > Im Auftrag von > matthias rebbe via use-livecode > Gesendet: Donnerstag, 6. Mai 2021 01:18 > An: How to use LiveCode > > Cc: matthias_livecode_150811 at m-r-d.de > > Betreff: Re: notarizing DMG fails - solved > > Thanks Phil. > > > @all > I've updated the lesson at > > https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizi > ng-your-lc-standalone-for-distribution-outside-the-mac-appstore > ing-your-lc-standalone-for-distribution-outside-the-mac-appstore> > > now and added detailed information about package installers. > So it now contains also information about how to create,sign and notarize package installers or package installers on dmg. > > > It would be really awesome, if someone could check it. I needed to insert some additional steps and i really hope that i did not forget to adjust some references to internal steps. > > So please let me if you find any errors, typos or wrong information. > > Thanks. > > Matthias > > >> Am 05.05.2021 um 19:49 schrieb Phil Davis via use-livecode >: >> >> Thank you Matthias! Your tools make my life SO much easier! You have >> done a great service for this community. >> >> Phil Davis >> >> >> On 5/5/21 2:20 AM, matthias rebbe via use-livecode wrote: >>>> Am 05.05.2021 um 11:10 schrieb Tiemo via use-livecode >: >>>> >>>> Thank you all for helping my lost soul in Apples notarizing nirvana >>>> >>>> Tiemo >>>> >>>> P.S. >>>> Matthias, perhaps you want to add this in your great helpfile - without that it would have taken weeks for me! >>>> >>> I am currently working on it. ;) >>> First i will just add a note, but later, when i have more free time i will enhance it to describe all more detailed. >>> >>> The Helper Stack will also get an update to support package installers. But it takes some time. >>> >>> >>> >>>> -----Urspr?ngliche Nachricht----- >>>> Von: use-livecode >>> > Im Auftrag von >>>> matthias rebbe via use-livecode >>>> Gesendet: Mittwoch, 5. Mai 2021 10:31 >>>> An: How to use LiveCode >>> > >>>> Cc: matthias_livecode_150811 at m-r-d.de >>>> >>>> Betreff: Re: notarizing DMG fails >>>> >>>> Tiemo, >>>> >>>> i think i found the solution. I tried here myself and did als get the error "this identity cannot be used for signing code" when using the Developer ID Installer certificate for signing the .pkg. >>>> According to Apple (see point 2) >>>> https://help.apple.com/xcode/mac/current/#/deve51ce7c3d >>>> >>>> >>>> you have to use the tool productsign to sign the package installer. >>>> >>>> So the syntax is like this >>>> >>>> productsign --sign >>>> >>>> >>>> Example >>>> productsign --sign "Developer ID Installer: Matthias Rebbe (xxxxxxxx)" "/users/matthias/LC/builts/test/test.pkg" "/users/matthias/LC/builts/test/test_signed.pkg" >>>> >>>> After successful signing i got this messages in Terminal >>>> >>>> productsign: using timestamp authority for signature >>>> productsign: signing product with identity "Developer ID Installer: >>>> Matthias Rebbe (xxxxxxxx)" from keychain >>>> /Users/matthias/Library/Keychains/login.keychain-db >>>> productsign: adding certificate "Developer ID Certification Authority" >>>> productsign: adding certificate "Apple Root CA" >>>> productsign: Wrote signed product archive to >>>> /users/matthias/LC/builts/test/test_signed.pkg >>>> >>>> >>>> Regards >>>> >>>> - >>>> Matthias Rebbe >>>> Life Is Too Short For Boring Code >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> -- >> Phil Davis >> 503-307-4363 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode - Matthias Rebbe Life Is Too Short For Boring Code _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu May 6 10:18:06 2021 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 May 2021 10:18:06 -0400 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> Message-ID: On 5/6/2021 4:41 AM, Fred Moyer via use-livecode wrote: > >> On May 4, 2021, at 5:32 PM, Fred Moyer wrote: >> >> Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. >> >> Any suggestions? >> Thanks. >> >> Fred >> >> > Thanks everyone for the interesting replies. I learned a lot (?desktopChanged", "the working screenrects,? difference between "the screenrect" and "the screenrects," etc.) I have a hunch, though, my problem may relate to stack RevMenubar and some accommodation the IDE makes for ?the mouseV? depending on whether RevMenubar is showing or whether you have your own menubar or whether that screen has a menubar in it ? I dunno. I?ve never understood how this works. I notice sometimes, though, when I turn on Toolbar Text, it shows up about 100 or 200 pixels down. > > Fred > _______________________________________________ > You might also look in the dictionary at the windowBoundingRect property - I think it only controls that are that windows van be maximized to, but I forget the details. It is yet another screen area related property. I am also not sure that windowBoundingRect is multipel monitor aware as there is no "windowBoundingRects" (plural) version. From irog at mac.com Thu May 6 10:56:55 2021 From: irog at mac.com (Roger Guay) Date: Thu, 6 May 2021 07:56:55 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> Message-ID: <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> Hi Fred et al, I use the following script to switch the monitor I wish to use for the revmenubar and revTools and then position pallets like my own rTools and tmAlign3. It is working quite nicely for me with my external monitor positioned above my MBP and ?Displays have separate spaces? unchecked. on mouseUp put the screenrects into tsr if the number of lines of tsr = 2 then if the left of stack revmenubar = item 1 of tsr then set the left of stack revmenubar to item 1 of line 2 of tsr set the top of stack revmenubar to item 2 of line 2 of tsr + 25 else set the left of stack revmenubar to item 1 of tsr set the top of stack revmenubar to item 2 of tsr + 25 end if end if positionPalletes pass mouseUp end mouseUp on positionPalletes set the top of stack revtools to the bottom of stack revMenuBar + 20 set the left of stack revTools to the left of stack revmenubar set the top of stack rtools to the bottom of stack revMenuBar + 20 set the left of stack rTools to the right of stack revtools set the left of stack tmAlign3 to the right of stack revMenubar set the top of stack tmAlign3 to the top of stack revMenubar end positionPalletes HTH, Roger > On May 6, 2021, at 1:41 AM, Fred Moyer via use-livecode wrote: > > > >> On May 4, 2021, at 5:32 PM, Fred Moyer wrote: >> >> Anyone having problems with multiple monitors and LC? I?m running 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets confused.) But now LC is doing crazy things ? even when no external monitors are connected. I?ll move the mouse to the top of a stack window, and ask for the Mouseloc and it will return something like "100,-60?. If I click a button in the middle of the stack, the click will register in an object the 60 pixels above that. It?s not always 60 ? the wrongness changed as I move the stack around. Other times it works fine. I can?t find a pattern to set it off. >> >> Any suggestions? >> Thanks. >> >> Fred >> >> > > Thanks everyone for the interesting replies. I learned a lot (?desktopChanged", "the working screenrects,? difference between "the screenrect" and "the screenrects," etc.) I have a hunch, though, my problem may relate to stack RevMenubar and some accommodation the IDE makes for ?the mouseV? depending on whether RevMenubar is showing or whether you have your own menubar or whether that screen has a menubar in it ? I dunno. I?ve never understood how this works. I notice sometimes, though, when I turn on Toolbar Text, it shows up about 100 or 200 pixels down. > > Fred > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Thu May 6 12:21:01 2021 From: jiml at netrin.com (Jim Lambert) Date: Thu, 6 May 2021 09:21:01 -0700 Subject: notarizing DMG fails - solved In-Reply-To: References: Message-ID: <9B2D82D3-BDB1-44C4-B858-4F2414F189D0@netrin.com> > > Thank you Matthias! Your tools make my life SO much easier! You have > done a great service for this community. +100 From gwjapp at gmail.com Thu May 6 12:52:37 2021 From: gwjapp at gmail.com (Gabe J) Date: Thu, 6 May 2021 11:52:37 -0500 Subject: Problems with Multiple Monitors In-Reply-To: <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> Message-ID: I've discovered that LiveCode (at least LC 9.6.1) seems to force the reported top of a manually-moved stack to be the bottom of stack "revMenubar" + 20, if the stack is overlapping revMenubar (even if revMenubar is not visible), even if the visual top of the stack is higher than that. All mouse clicks will be vertically off by whatever offset there is between the bottom of stack "revMenubar" + 20 and the visual top of the overlapping, manually-moved stack. For example, if you were to run this: set the bottom of stack "revMenubar" to 200 And then move a stack so that it overlaps revMenubar (manually moving the stack seems to possibly be a necessary step), if you run "put the top of ..." for that overlapping stack, it will be 220, even if it is visually above 220, and mouse clicks in the stack will also be vertically off. If I set the position of stack "revMenubar" so that its bottom is above the highest working screenRect's top + 20 (or whatever the height of the window's title bars are?), this issue can be avoided. I have made a handler which does this when the screenRects change. I ran into another potential bug where the bottom of a stack couldn't be positioned in a certain area without it also reporting the top/mouseclicks incorrectly on a second screen above my laptop's screen, but I haven't figured out why that is, yet. Gabe On Thu, May 6, 2021 at 9:58 AM Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Fred et al, > > I use the following script to switch the monitor I wish to use for the > revmenubar and revTools and then position pallets like my own rTools and > tmAlign3. It is working quite nicely for me with my external monitor > positioned above my MBP and ?Displays have separate spaces? unchecked. > > > on mouseUp > > put the screenrects into tsr > > if the number of lines of tsr = 2 then > > if the left of stack revmenubar = item 1 of tsr then > > set the left of stack revmenubar to item 1 of line > 2 of tsr > > set the top of stack revmenubar to item 2 of line > 2 of tsr + 25 > > else > > set the left of stack revmenubar to item 1 of tsr > > set the top of stack revmenubar to item 2 of tsr + > 25 > > end if > > end if > > positionPalletes > > pass mouseUp > > end mouseUp > > > on positionPalletes > > set the top of stack revtools to the bottom of stack revMenuBar + > 20 > > set the left of stack revTools to the left of stack revmenubar > > set the top of stack rtools to the bottom of stack revMenuBar + 20 > > set the left of stack rTools to the right of stack revtools > > set the left of stack tmAlign3 to the right of stack revMenubar > > set the top of stack tmAlign3 to the top of stack revMenubar > > end positionPalletes > > > > HTH, > Roger > > > > > On May 6, 2021, at 1:41 AM, Fred Moyer via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > > > >> On May 4, 2021, at 5:32 PM, Fred Moyer wrote: > >> > >> Anyone having problems with multiple monitors and LC? I?m running 9.6.1 > - Mac. I have a feeling LC is confused because I like to connect and > disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets > confused.) But now LC is doing crazy things ? even when no external > monitors are connected. I?ll move the mouse to the top of a stack window, > and ask for the Mouseloc and it will return something like "100,-60?. If I > click a button in the middle of the stack, the click will register in an > object the 60 pixels above that. It?s not always 60 ? the wrongness changed > as I move the stack around. Other times it works fine. I can?t find a > pattern to set it off. > >> > >> Any suggestions? > >> Thanks. > >> > >> Fred > >> > >> > > > > Thanks everyone for the interesting replies. I learned a lot > (?desktopChanged", "the working screenrects,? difference between "the > screenrect" and "the screenrects," etc.) I have a hunch, though, my problem > may relate to stack RevMenubar and some accommodation the IDE makes for > ?the mouseV? depending on whether RevMenubar is showing or whether you have > your own menubar or whether that screen has a menubar in it ? I dunno. > I?ve never understood how this works. I notice sometimes, though, when I > turn on Toolbar Text, it shows up about 100 or 200 pixels down. > > > > Fred > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gwjapp at gmail.com Thu May 6 12:56:37 2021 From: gwjapp at gmail.com (Gabe J) Date: Thu, 6 May 2021 11:56:37 -0500 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> Message-ID: Also, the point of my previous email is that stack "revMenubar" seems to move around sometimes when you change multi-monitor configurations on Mac, which sets up the conditions for this issue. Gabe On Thu, May 6, 2021 at 11:52 AM Gabe J wrote: > I've discovered that LiveCode (at least LC 9.6.1) seems to force the > reported top of a manually-moved stack to be the bottom of stack > "revMenubar" + 20, if the stack is overlapping revMenubar (even if > revMenubar is not visible), even if the visual top of the stack is higher > than that. All mouse clicks will be vertically off by whatever offset there > is between the bottom of stack "revMenubar" + 20 and the visual top of the > overlapping, manually-moved stack. > > For example, if you were to run this: > > set the bottom of stack "revMenubar" to 200 > > And then move a stack so that it overlaps revMenubar (manually moving the > stack seems to possibly be a necessary step), if you run "put the top of > ..." for that overlapping stack, it will be 220, even if it is visually > above 220, and mouse clicks in the stack will also be vertically off. > > If I set the position of stack "revMenubar" so that its bottom is above > the highest working screenRect's top + 20 (or whatever the height of the > window's title bars are?), this issue can be avoided. I have made a handler > which does this when the screenRects change. > > I ran into another potential bug where the bottom of a stack couldn't be > positioned in a certain area without it also reporting the top/mouseclicks > incorrectly on a second screen above my laptop's screen, but I haven't > figured out why that is, yet. > > Gabe > > > On Thu, May 6, 2021 at 9:58 AM Roger Guay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Fred et al, >> >> I use the following script to switch the monitor I wish to use for the >> revmenubar and revTools and then position pallets like my own rTools and >> tmAlign3. It is working quite nicely for me with my external monitor >> positioned above my MBP and ?Displays have separate spaces? unchecked. >> >> >> on mouseUp >> >> put the screenrects into tsr >> >> if the number of lines of tsr = 2 then >> >> if the left of stack revmenubar = item 1 of tsr then >> >> set the left of stack revmenubar to item 1 of >> line 2 of tsr >> >> set the top of stack revmenubar to item 2 of line >> 2 of tsr + 25 >> >> else >> >> set the left of stack revmenubar to item 1 of tsr >> >> set the top of stack revmenubar to item 2 of tsr >> + 25 >> >> end if >> >> end if >> >> positionPalletes >> >> pass mouseUp >> >> end mouseUp >> >> >> on positionPalletes >> >> set the top of stack revtools to the bottom of stack revMenuBar + >> 20 >> >> set the left of stack revTools to the left of stack revmenubar >> >> set the top of stack rtools to the bottom of stack revMenuBar + 20 >> >> set the left of stack rTools to the right of stack revtools >> >> set the left of stack tmAlign3 to the right of stack revMenubar >> >> set the top of stack tmAlign3 to the top of stack revMenubar >> >> end positionPalletes >> >> >> >> HTH, >> Roger >> >> >> >> > On May 6, 2021, at 1:41 AM, Fred Moyer via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > >> > >> >> On May 4, 2021, at 5:32 PM, Fred Moyer wrote: >> >> >> >> Anyone having problems with multiple monitors and LC? I?m running >> 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and >> disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets >> confused.) But now LC is doing crazy things ? even when no external >> monitors are connected. I?ll move the mouse to the top of a stack window, >> and ask for the Mouseloc and it will return something like "100,-60?. If I >> click a button in the middle of the stack, the click will register in an >> object the 60 pixels above that. It?s not always 60 ? the wrongness changed >> as I move the stack around. Other times it works fine. I can?t find a >> pattern to set it off. >> >> >> >> Any suggestions? >> >> Thanks. >> >> >> >> Fred >> >> >> >> >> > >> > Thanks everyone for the interesting replies. I learned a lot >> (?desktopChanged", "the working screenrects,? difference between "the >> screenrect" and "the screenrects," etc.) I have a hunch, though, my problem >> may relate to stack RevMenubar and some accommodation the IDE makes for >> ?the mouseV? depending on whether RevMenubar is showing or whether you have >> your own menubar or whether that screen has a menubar in it ? I dunno. >> I?ve never understood how this works. I notice sometimes, though, when I >> turn on Toolbar Text, it shows up about 100 or 200 pixels down. >> > >> > Fred >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From irog at mac.com Thu May 6 14:14:15 2021 From: irog at mac.com (Roger Guay) Date: Thu, 6 May 2021 11:14:15 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> Message-ID: <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> Gabe, before delving deeply into your message, are you saying that my script does not work for you? Roger > On May 6, 2021, at 9:56 AM, Gabe J via use-livecode wrote: > > Also, the point of my previous email is that stack "revMenubar" seems to > move around sometimes when you change multi-monitor configurations on Mac, > which sets up the conditions for this issue. > > Gabe > > On Thu, May 6, 2021 at 11:52 AM Gabe J wrote: > >> I've discovered that LiveCode (at least LC 9.6.1) seems to force the >> reported top of a manually-moved stack to be the bottom of stack >> "revMenubar" + 20, if the stack is overlapping revMenubar (even if >> revMenubar is not visible), even if the visual top of the stack is higher >> than that. All mouse clicks will be vertically off by whatever offset there >> is between the bottom of stack "revMenubar" + 20 and the visual top of the >> overlapping, manually-moved stack. >> >> For example, if you were to run this: >> >> set the bottom of stack "revMenubar" to 200 >> >> And then move a stack so that it overlaps revMenubar (manually moving the >> stack seems to possibly be a necessary step), if you run "put the top of >> ..." for that overlapping stack, it will be 220, even if it is visually >> above 220, and mouse clicks in the stack will also be vertically off. >> >> If I set the position of stack "revMenubar" so that its bottom is above >> the highest working screenRect's top + 20 (or whatever the height of the >> window's title bars are?), this issue can be avoided. I have made a handler >> which does this when the screenRects change. >> >> I ran into another potential bug where the bottom of a stack couldn't be >> positioned in a certain area without it also reporting the top/mouseclicks >> incorrectly on a second screen above my laptop's screen, but I haven't >> figured out why that is, yet. >> >> Gabe >> >> >> On Thu, May 6, 2021 at 9:58 AM Roger Guay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Fred et al, >>> >>> I use the following script to switch the monitor I wish to use for the >>> revmenubar and revTools and then position pallets like my own rTools and >>> tmAlign3. It is working quite nicely for me with my external monitor >>> positioned above my MBP and ?Displays have separate spaces? unchecked. >>> >>> >>> on mouseUp >>> >>> put the screenrects into tsr >>> >>> if the number of lines of tsr = 2 then >>> >>> if the left of stack revmenubar = item 1 of tsr then >>> >>> set the left of stack revmenubar to item 1 of >>> line 2 of tsr >>> >>> set the top of stack revmenubar to item 2 of line >>> 2 of tsr + 25 >>> >>> else >>> >>> set the left of stack revmenubar to item 1 of tsr >>> >>> set the top of stack revmenubar to item 2 of tsr >>> + 25 >>> >>> end if >>> >>> end if >>> >>> positionPalletes >>> >>> pass mouseUp >>> >>> end mouseUp >>> >>> >>> on positionPalletes >>> >>> set the top of stack revtools to the bottom of stack revMenuBar + >>> 20 >>> >>> set the left of stack revTools to the left of stack revmenubar >>> >>> set the top of stack rtools to the bottom of stack revMenuBar + 20 >>> >>> set the left of stack rTools to the right of stack revtools >>> >>> set the left of stack tmAlign3 to the right of stack revMenubar >>> >>> set the top of stack tmAlign3 to the top of stack revMenubar >>> >>> end positionPalletes >>> >>> >>> >>> HTH, >>> Roger >>> >>> >>> >>>> On May 6, 2021, at 1:41 AM, Fred Moyer via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> >>>> >>>>> On May 4, 2021, at 5:32 PM, Fred Moyer wrote: >>>>> >>>>> Anyone having problems with multiple monitors and LC? I?m running >>> 9.6.1 - Mac. I have a feeling LC is confused because I like to connect and >>> disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets >>> confused.) But now LC is doing crazy things ? even when no external >>> monitors are connected. I?ll move the mouse to the top of a stack window, >>> and ask for the Mouseloc and it will return something like "100,-60?. If I >>> click a button in the middle of the stack, the click will register in an >>> object the 60 pixels above that. It?s not always 60 ? the wrongness changed >>> as I move the stack around. Other times it works fine. I can?t find a >>> pattern to set it off. >>>>> >>>>> Any suggestions? >>>>> Thanks. >>>>> >>>>> Fred >>>>> >>>>> >>>> >>>> Thanks everyone for the interesting replies. I learned a lot >>> (?desktopChanged", "the working screenrects,? difference between "the >>> screenrect" and "the screenrects," etc.) I have a hunch, though, my problem >>> may relate to stack RevMenubar and some accommodation the IDE makes for >>> ?the mouseV? depending on whether RevMenubar is showing or whether you have >>> your own menubar or whether that screen has a menubar in it ? I dunno. >>> I?ve never understood how this works. I notice sometimes, though, when I >>> turn on Toolbar Text, it shows up about 100 or 200 pixels down. >>>> >>>> Fred >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gwjapp at gmail.com Thu May 6 14:39:25 2021 From: gwjapp at gmail.com (Gabe J) Date: Thu, 6 May 2021 13:39:25 -0500 Subject: Problems with Multiple Monitors In-Reply-To: <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> Message-ID: Sorry Roger, I was replying to the email thread--- I clicked reply on your message because it was the last one in my list here. However, I just tried your script and it looks like it isn't working. I have an external screen positioned above my laptop and it ran into the same problem: Since stack "revMenubar" is positioned lower than some of the stacks (when those stacks are on the top screen), the stacks will report as being below their visual position (when manually moved), or they just jump down to the bottom screen to be under stack "revMenubar" when I try to position them on the top screen. I'm using LC 9.6.1. Gabe On Thu, May 6, 2021 at 1:15 PM Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > Gabe, before delving deeply into your message, are you saying that my > script does not work for you? > > Roger > > > On May 6, 2021, at 9:56 AM, Gabe J via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Also, the point of my previous email is that stack "revMenubar" seems to > > move around sometimes when you change multi-monitor configurations on > Mac, > > which sets up the conditions for this issue. > > > > Gabe > > > > On Thu, May 6, 2021 at 11:52 AM Gabe J wrote: > > > >> I've discovered that LiveCode (at least LC 9.6.1) seems to force the > >> reported top of a manually-moved stack to be the bottom of stack > >> "revMenubar" + 20, if the stack is overlapping revMenubar (even if > >> revMenubar is not visible), even if the visual top of the stack is > higher > >> than that. All mouse clicks will be vertically off by whatever offset > there > >> is between the bottom of stack "revMenubar" + 20 and the visual top of > the > >> overlapping, manually-moved stack. > >> > >> For example, if you were to run this: > >> > >> set the bottom of stack "revMenubar" to 200 > >> > >> And then move a stack so that it overlaps revMenubar (manually moving > the > >> stack seems to possibly be a necessary step), if you run "put the top of > >> ..." for that overlapping stack, it will be 220, even if it is visually > >> above 220, and mouse clicks in the stack will also be vertically off. > >> > >> If I set the position of stack "revMenubar" so that its bottom is above > >> the highest working screenRect's top + 20 (or whatever the height of the > >> window's title bars are?), this issue can be avoided. I have made a > handler > >> which does this when the screenRects change. > >> > >> I ran into another potential bug where the bottom of a stack couldn't be > >> positioned in a certain area without it also reporting the > top/mouseclicks > >> incorrectly on a second screen above my laptop's screen, but I haven't > >> figured out why that is, yet. > >> > >> Gabe > >> > >> > >> On Thu, May 6, 2021 at 9:58 AM Roger Guay via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> Hi Fred et al, > >>> > >>> I use the following script to switch the monitor I wish to use for the > >>> revmenubar and revTools and then position pallets like my own rTools > and > >>> tmAlign3. It is working quite nicely for me with my external monitor > >>> positioned above my MBP and ?Displays have separate spaces? unchecked. > >>> > >>> > >>> on mouseUp > >>> > >>> put the screenrects into tsr > >>> > >>> if the number of lines of tsr = 2 then > >>> > >>> if the left of stack revmenubar = item 1 of tsr then > >>> > >>> set the left of stack revmenubar to item 1 of > >>> line 2 of tsr > >>> > >>> set the top of stack revmenubar to item 2 of > line > >>> 2 of tsr + 25 > >>> > >>> else > >>> > >>> set the left of stack revmenubar to item 1 of > tsr > >>> > >>> set the top of stack revmenubar to item 2 of tsr > >>> + 25 > >>> > >>> end if > >>> > >>> end if > >>> > >>> positionPalletes > >>> > >>> pass mouseUp > >>> > >>> end mouseUp > >>> > >>> > >>> on positionPalletes > >>> > >>> set the top of stack revtools to the bottom of stack revMenuBar > + > >>> 20 > >>> > >>> set the left of stack revTools to the left of stack revmenubar > >>> > >>> set the top of stack rtools to the bottom of stack revMenuBar + > 20 > >>> > >>> set the left of stack rTools to the right of stack revtools > >>> > >>> set the left of stack tmAlign3 to the right of stack revMenubar > >>> > >>> set the top of stack tmAlign3 to the top of stack revMenubar > >>> > >>> end positionPalletes > >>> > >>> > >>> > >>> HTH, > >>> Roger > >>> > >>> > >>> > >>>> On May 6, 2021, at 1:41 AM, Fred Moyer via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> > >>>> > >>>>> On May 4, 2021, at 5:32 PM, Fred Moyer wrote: > >>>>> > >>>>> Anyone having problems with multiple monitors and LC? I?m running > >>> 9.6.1 - Mac. I have a feeling LC is confused because I like to connect > and > >>> disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets > >>> confused.) But now LC is doing crazy things ? even when no external > >>> monitors are connected. I?ll move the mouse to the top of a stack > window, > >>> and ask for the Mouseloc and it will return something like "100,-60?. > If I > >>> click a button in the middle of the stack, the click will register in > an > >>> object the 60 pixels above that. It?s not always 60 ? the wrongness > changed > >>> as I move the stack around. Other times it works fine. I can?t find a > >>> pattern to set it off. > >>>>> > >>>>> Any suggestions? > >>>>> Thanks. > >>>>> > >>>>> Fred > >>>>> > >>>>> > >>>> > >>>> Thanks everyone for the interesting replies. I learned a lot > >>> (?desktopChanged", "the working screenrects,? difference between "the > >>> screenrect" and "the screenrects," etc.) I have a hunch, though, my > problem > >>> may relate to stack RevMenubar and some accommodation the IDE makes for > >>> ?the mouseV? depending on whether RevMenubar is showing or whether you > have > >>> your own menubar or whether that screen has a menubar in it ? I > dunno. > >>> I?ve never understood how this works. I notice sometimes, though, when > I > >>> turn on Toolbar Text, it shows up about 100 or 200 pixels down. > >>>> > >>>> Fred > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gwjapp at gmail.com Thu May 6 14:46:01 2021 From: gwjapp at gmail.com (Gabe J) Date: Thu, 6 May 2021 13:46:01 -0500 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> Message-ID: If I were to do everything on the bottom screen, it would work. But to use stacks on the top screen, stack "revMenubar" needs to go to the top of the top screen, it appears. (At least in LC 9.6.1) Gabe On Thu, May 6, 2021 at 1:39 PM Gabe J wrote: > Sorry Roger, > > I was replying to the email thread--- I clicked reply on your message > because it was the last one in my list here. > > However, I just tried your script and it looks like it isn't working. I > have an external screen positioned above my laptop and it ran into the same > problem: Since stack "revMenubar" is positioned lower than some of the > stacks (when those stacks are on the top screen), the stacks will report as > being below their visual position (when manually moved), or they just jump > down to the bottom screen to be under stack "revMenubar" when I try to > position them on the top screen. I'm using LC 9.6.1. > > Gabe > > > On Thu, May 6, 2021 at 1:15 PM Roger Guay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Gabe, before delving deeply into your message, are you saying that my >> script does not work for you? >> >> Roger >> >> > On May 6, 2021, at 9:56 AM, Gabe J via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Also, the point of my previous email is that stack "revMenubar" seems to >> > move around sometimes when you change multi-monitor configurations on >> Mac, >> > which sets up the conditions for this issue. >> > >> > Gabe >> > >> > On Thu, May 6, 2021 at 11:52 AM Gabe J wrote: >> > >> >> I've discovered that LiveCode (at least LC 9.6.1) seems to force the >> >> reported top of a manually-moved stack to be the bottom of stack >> >> "revMenubar" + 20, if the stack is overlapping revMenubar (even if >> >> revMenubar is not visible), even if the visual top of the stack is >> higher >> >> than that. All mouse clicks will be vertically off by whatever offset >> there >> >> is between the bottom of stack "revMenubar" + 20 and the visual top of >> the >> >> overlapping, manually-moved stack. >> >> >> >> For example, if you were to run this: >> >> >> >> set the bottom of stack "revMenubar" to 200 >> >> >> >> And then move a stack so that it overlaps revMenubar (manually moving >> the >> >> stack seems to possibly be a necessary step), if you run "put the top >> of >> >> ..." for that overlapping stack, it will be 220, even if it is visually >> >> above 220, and mouse clicks in the stack will also be vertically off. >> >> >> >> If I set the position of stack "revMenubar" so that its bottom is above >> >> the highest working screenRect's top + 20 (or whatever the height of >> the >> >> window's title bars are?), this issue can be avoided. I have made a >> handler >> >> which does this when the screenRects change. >> >> >> >> I ran into another potential bug where the bottom of a stack couldn't >> be >> >> positioned in a certain area without it also reporting the >> top/mouseclicks >> >> incorrectly on a second screen above my laptop's screen, but I haven't >> >> figured out why that is, yet. >> >> >> >> Gabe >> >> >> >> >> >> On Thu, May 6, 2021 at 9:58 AM Roger Guay via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >>> Hi Fred et al, >> >>> >> >>> I use the following script to switch the monitor I wish to use for the >> >>> revmenubar and revTools and then position pallets like my own rTools >> and >> >>> tmAlign3. It is working quite nicely for me with my external monitor >> >>> positioned above my MBP and ?Displays have separate spaces? unchecked. >> >>> >> >>> >> >>> on mouseUp >> >>> >> >>> put the screenrects into tsr >> >>> >> >>> if the number of lines of tsr = 2 then >> >>> >> >>> if the left of stack revmenubar = item 1 of tsr then >> >>> >> >>> set the left of stack revmenubar to item 1 of >> >>> line 2 of tsr >> >>> >> >>> set the top of stack revmenubar to item 2 of >> line >> >>> 2 of tsr + 25 >> >>> >> >>> else >> >>> >> >>> set the left of stack revmenubar to item 1 of >> tsr >> >>> >> >>> set the top of stack revmenubar to item 2 of >> tsr >> >>> + 25 >> >>> >> >>> end if >> >>> >> >>> end if >> >>> >> >>> positionPalletes >> >>> >> >>> pass mouseUp >> >>> >> >>> end mouseUp >> >>> >> >>> >> >>> on positionPalletes >> >>> >> >>> set the top of stack revtools to the bottom of stack >> revMenuBar + >> >>> 20 >> >>> >> >>> set the left of stack revTools to the left of stack revmenubar >> >>> >> >>> set the top of stack rtools to the bottom of stack revMenuBar >> + 20 >> >>> >> >>> set the left of stack rTools to the right of stack revtools >> >>> >> >>> set the left of stack tmAlign3 to the right of stack revMenubar >> >>> >> >>> set the top of stack tmAlign3 to the top of stack revMenubar >> >>> >> >>> end positionPalletes >> >>> >> >>> >> >>> >> >>> HTH, >> >>> Roger >> >>> >> >>> >> >>> >> >>>> On May 6, 2021, at 1:41 AM, Fred Moyer via use-livecode < >> >>> use-livecode at lists.runrev.com> wrote: >> >>>> >> >>>> >> >>>> >> >>>>> On May 4, 2021, at 5:32 PM, Fred Moyer wrote: >> >>>>> >> >>>>> Anyone having problems with multiple monitors and LC? I?m running >> >>> 9.6.1 - Mac. I have a feeling LC is confused because I like to >> connect and >> >>> disconnect monitors from my MacBook Pro. (Even the MacOS sometimes >> gets >> >>> confused.) But now LC is doing crazy things ? even when no external >> >>> monitors are connected. I?ll move the mouse to the top of a stack >> window, >> >>> and ask for the Mouseloc and it will return something like "100,-60?. >> If I >> >>> click a button in the middle of the stack, the click will register in >> an >> >>> object the 60 pixels above that. It?s not always 60 ? the wrongness >> changed >> >>> as I move the stack around. Other times it works fine. I can?t find a >> >>> pattern to set it off. >> >>>>> >> >>>>> Any suggestions? >> >>>>> Thanks. >> >>>>> >> >>>>> Fred >> >>>>> >> >>>>> >> >>>> >> >>>> Thanks everyone for the interesting replies. I learned a lot >> >>> (?desktopChanged", "the working screenrects,? difference between "the >> >>> screenrect" and "the screenrects," etc.) I have a hunch, though, my >> problem >> >>> may relate to stack RevMenubar and some accommodation the IDE makes >> for >> >>> ?the mouseV? depending on whether RevMenubar is showing or whether >> you have >> >>> your own menubar or whether that screen has a menubar in it ? I >> dunno. >> >>> I?ve never understood how this works. I notice sometimes, though, >> when I >> >>> turn on Toolbar Text, it shows up about 100 or 200 pixels down. >> >>>> >> >>>> Fred >> >>>> _______________________________________________ >> >>>> use-livecode mailing list >> >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From irog at mac.com Thu May 6 14:51:07 2021 From: irog at mac.com (Roger Guay) Date: Thu, 6 May 2021 11:51:07 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> Message-ID: Huh . . . this is hard to understand since the script toggles revMenubar precisely to the top of one monitor or the other based on returned screenRects. And, you unchecked the ?Displays have separate Spaces? in the Mission Control System Prefs? Roger > On May 6, 2021, at 11:39 AM, Gabe J via use-livecode wrote: > > However, I just tried your script and it looks like it isn't working. I > have an external screen positioned above my laptop and it ran into the same > problem: Since stack "revMenubar" is positioned lower than some of the > stacks (when those stacks are on the top screen), the stacks will report as > being below their visual position (when manually moved), or they just jump > down to the bottom screen to be under stack "revMenubar" when I try to > position them on the top screen. I'm using LC 9.6.1. From gwjapp at gmail.com Thu May 6 15:01:27 2021 From: gwjapp at gmail.com (Gabe J) Date: Thu, 6 May 2021 14:01:27 -0500 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> Message-ID: Yeah, "Displays have separate Spaces" is unchecked. Yes, your script is moving stack "revMenubar" to near the top of the bottom screen when the top and bottom screen are left-aligned, but since it is on the bottom screen (below stacks on the top screen) the stacks above it on the top screen do not work properly when manually moved. (LC 9.6.1 and macOS Catalina). The solution is to just always move stack "revMenubar" to near the top of the top screen. Gabe On Thu, May 6, 2021 at 1:52 PM Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > Huh . . . this is hard to understand since the script toggles revMenubar > precisely to the top of one monitor or the other based on returned > screenRects. > > And, you unchecked the ?Displays have separate Spaces? in the Mission > Control System Prefs? > > Roger > > > On May 6, 2021, at 11:39 AM, Gabe J via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > However, I just tried your script and it looks like it isn't working. I > > have an external screen positioned above my laptop and it ran into the > same > > problem: Since stack "revMenubar" is positioned lower than some of the > > stacks (when those stacks are on the top screen), the stacks will report > as > > being below their visual position (when manually moved), or they just > jump > > down to the bottom screen to be under stack "revMenubar" when I try to > > position them on the top screen. I'm using LC 9.6.1. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gwjapp at gmail.com Thu May 6 15:10:58 2021 From: gwjapp at gmail.com (Gabe J) Date: Thu, 6 May 2021 14:10:58 -0500 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> Message-ID: Oh, I think I see what the difference is: The screenRects will be in a different order depending on which screen the menubar is set to. So, when the menubar is set to the top screen, your script sends stack "revMenubar" to the bottom screen. I was running with the menubar set to be on the top screen. The solution would be to cycle through the working screenRects looking for the highest top. Gabe On Thu, May 6, 2021 at 2:01 PM Gabe J wrote: > Yeah, "Displays have separate Spaces" is unchecked. Yes, your script is > moving stack "revMenubar" to near the top of the bottom screen when the top > and bottom screen are left-aligned, but since it is on the bottom screen > (below stacks on the top screen) the stacks above it on the top screen do > not work properly when manually moved. (LC 9.6.1 and macOS Catalina). The > solution is to just always move stack "revMenubar" to near the top of the > top screen. > > Gabe > > > On Thu, May 6, 2021 at 1:52 PM Roger Guay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Huh . . . this is hard to understand since the script toggles revMenubar >> precisely to the top of one monitor or the other based on returned >> screenRects. >> >> And, you unchecked the ?Displays have separate Spaces? in the Mission >> Control System Prefs? >> >> Roger >> >> > On May 6, 2021, at 11:39 AM, Gabe J via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > However, I just tried your script and it looks like it isn't working. I >> > have an external screen positioned above my laptop and it ran into the >> same >> > problem: Since stack "revMenubar" is positioned lower than some of the >> > stacks (when those stacks are on the top screen), the stacks will >> report as >> > being below their visual position (when manually moved), or they just >> jump >> > down to the bottom screen to be under stack "revMenubar" when I try to >> > position them on the top screen. I'm using LC 9.6.1. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From irog at mac.com Thu May 6 16:55:50 2021 From: irog at mac.com (Roger Guay) Date: Thu, 6 May 2021 13:55:50 -0700 Subject: Problems with Multiple Monitors In-Reply-To: References: <08086ECF-43B2-4E8C-948A-FBE9C7AD323F@aol.com> <6E1AF1CB-0392-4B01-80E0-AC58C28741C5@mac.com> <9618E2D2-FB07-4AAC-805B-FC5E8297B1B6@mac.com> Message-ID: Good catch, Gabe. my menubar is set to the bottom MBP display, and didn?t think to mess with the menubar in the top display. Thanks, Roger > On May 6, 2021, at 12:10 PM, Gabe J via use-livecode wrote: > > Oh, I think I see what the difference is: The screenRects will be in a > different order depending on which screen the menubar is set to. So, when > the menubar is set to the top screen, your script sends stack "revMenubar" > to the bottom screen. I was running with the menubar set to be on the top > screen. The solution would be to cycle through the working screenRects > looking for the highest top. > > Gabe > > > On Thu, May 6, 2021 at 2:01 PM Gabe J wrote: > >> Yeah, "Displays have separate Spaces" is unchecked. Yes, your script is >> moving stack "revMenubar" to near the top of the bottom screen when the top >> and bottom screen are left-aligned, but since it is on the bottom screen >> (below stacks on the top screen) the stacks above it on the top screen do >> not work properly when manually moved. (LC 9.6.1 and macOS Catalina). The >> solution is to just always move stack "revMenubar" to near the top of the >> top screen. >> >> Gabe >> >> >> On Thu, May 6, 2021 at 1:52 PM Roger Guay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Huh . . . this is hard to understand since the script toggles revMenubar >>> precisely to the top of one monitor or the other based on returned >>> screenRects. >>> >>> And, you unchecked the ?Displays have separate Spaces? in the Mission >>> Control System Prefs? >>> >>> Roger >>> >>>> On May 6, 2021, at 11:39 AM, Gabe J via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> However, I just tried your script and it looks like it isn't working. I >>>> have an external screen positioned above my laptop and it ran into the >>> same >>>> problem: Since stack "revMenubar" is positioned lower than some of the >>>> stacks (when those stacks are on the top screen), the stacks will >>> report as >>>> being below their visual position (when manually moved), or they just >>> jump >>>> down to the bottom screen to be under stack "revMenubar" when I try to >>>> position them on the top screen. I'm using LC 9.6.1. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toolbook at kestner.de Fri May 7 05:04:03 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Fri, 7 May 2021 11:04:03 +0200 Subject: Close & remove from memory - Engine hang Message-ID: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> Hello, LC 9.6.1 macOS 11.2.3 when trying to close and remove a file from memory I get the known window "really remove the stack file stack?" with the options "cancel" & "OK" Both options are non responsible, nothing happens. I still can navigate thru the file menu (with the above dialog still open) and close that stack (without removing from memory) But even then I can't close the IDE - nothing happens when trying to quit the engine. Only a hard close via task manager is the only option to quit the engine When selecting just "close" from the file menu, everything works fine. There is one additional strange issue. In that dialog "really remove the stack file stack? The text really says "stack file stack" and not "stack file" Is it something about my stack what makes the engine hang, or do you also experience this behaviour? Tiemo From toolbook at kestner.de Fri May 7 08:00:57 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Fri, 7 May 2021 14:00:57 +0200 Subject: the systemversion shows wrong version # on Mac Message-ID: <005e01d74338$a43e39d0$ecbaad70$@kestner.de> Hello, I am on macOS 11.2.3 and the systemversion shows 10.16.0? It shows the same at least going back to 8.1.7 Do I have to multiply the systemversion by 1.1053 to get the real one? Tiemo From andre at andregarzia.com Fri May 7 10:25:05 2021 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 7 May 2021 15:25:05 +0100 Subject: the systemversion shows wrong version # on Mac In-Reply-To: <005e01d74338$a43e39d0$ecbaad70$@kestner.de> References: <005e01d74338$a43e39d0$ecbaad70$@kestner.de> Message-ID: Tiemo, This is not a bug. MacOS Big Sur will identify itself as both 10.16.0 and 11.x. This is by design so that scripts checking for version compatibility can see Big Sur as just a minor version of 10.x The version seen depends on both which SDK was used to compile the app, and also on the value of the environment variable called SYSTEM_VERSION_COMPAT. Best Andre > On 7 May 2021, at 13:00, Tiemo via use-livecode wrote: > > Hello, > > > > I am on macOS 11.2.3 and the systemversion shows 10.16.0? > > It shows the same at least going back to 8.1.7 > > > > Do I have to multiply the systemversion by 1.1053 to get the real one? > > > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Fri May 7 10:40:58 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 7 May 2021 10:40:58 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> References: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> Message-ID: <6C521337-B577-4278-ACC3-AFF5DB1B8786@all-auctions.com> Hi Tiemo, I have also seen this weirdness, I don?t think it?s just your computer. Rick > On May 7, 2021, at 5:04 AM, Tiemo via use-livecode wrote: > > Hello, > > > > LC 9.6.1 macOS 11.2.3 > > > > when trying to close and remove a file from memory I get the known window > "really remove the stack file stack?" with the options "cancel" & "OK" > > Both options are non responsible, nothing happens. > > I still can navigate thru the file menu (with the above dialog still open) > and close that stack (without removing from memory) > > But even then I can't close the IDE - nothing happens when trying to quit > the engine. > > Only a hard close via task manager is the only option to quit the engine > > When selecting just "close" from the file menu, everything works fine. > > There is one additional strange issue. In that dialog "really remove the > stack file stack? The text really says "stack file stack" and not "stack > file" > > > > Is it something about my stack what makes the engine hang, or do you also > experience this behaviour? > > > > Tiemo From jacque at hyperactivesw.com Fri May 7 11:51:25 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 07 May 2021 10:51:25 -0500 Subject: Close & remove from memory - Engine hang In-Reply-To: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> References: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> Message-ID: <1794786c448.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Are you trying to remove a substack? I'm not sure you can do that. Substacks are always in memory until the mainstack is closed. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 7, 2021 4:08:19 AM Tiemo via use-livecode wrote: > Hello, > > > > LC 9.6.1 macOS 11.2.3 > > > > when trying to close and remove a file from memory I get the known window > "really remove the stack file stack?" with the options "cancel" & "OK" > > Both options are non responsible, nothing happens. > > I still can navigate thru the file menu (with the above dialog still open) > and close that stack (without removing from memory) > > But even then I can't close the IDE - nothing happens when trying to quit > the engine. > > Only a hard close via task manager is the only option to quit the engine > > When selecting just "close" from the file menu, everything works fine. > > There is one additional strange issue. In that dialog "really remove the > stack file stack? The text really says "stack file stack" and not "stack > file" > > > > Is it something about my stack what makes the engine hang, or do you also > experience this behaviour? > > > > Tiemo > > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Fri May 7 11:54:12 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 11:54:12 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> References: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> Message-ID: <55f3d074-2bec-ccf8-3c19-90c9fdb45440@pair.com> Tiemo: > Only a hard close via task manager > is the only option to quit the engine That has become a defining feature of the LC experience. Hangs are quite common on both Mac and PC in various situations. > Is it something about my stack what makes > the engine hang, or do you also > experience this behaviour? Something you do might "trigger" the Hang, but not cause it. Because by definition, a Crash or Hang is LC's fault. (If our own code were at fault, we could interrupt the loop.) Rick: > I have also seen this weirdness, > I don?t think it?s just your computer. Correct. Using LC = Risking a Hang. Launching LC = Starting countdown to a Hang. Tiemo: > The text really says "stack file stack" > and not "stack file" That could be important - be sure to mention it.* BTW, could you go ahead and report this bug? I'll definitely sign on as CC to support it. But I don't have time to file it myself right now. *Clarification: that's an important detail for triggering it. Yet I suspect that the ultimate trouble could be deeper in LC. So the LC Team needs to avoid assuming this is one small affected area. There seem to be lots of Hangs - or perhaps one Hang with many triggers. LC has some kind of defect that makes it very Hang-prone these days. So it would really help to bug report this. BTW, which is better, Hang or Crash? In the end I prefer Crash. :) (Which is to say: LC should be stable, and Crash/Hang should be rare.) Thanks for noting this particular Hang trigger. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From merakosp at gmail.com Fri May 7 11:56:16 2021 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 7 May 2021 18:56:16 +0300 Subject: Close & remove from memory - Engine hang In-Reply-To: <1794786c448.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <003901d7431f$ee0aa080$ca1fe180$@kestner.de> <1794786c448.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hello all, If I remember correctly, this happened on Big Sur only, and it is fixed in LC 9.6.2 rc-X Cheers, Panos On Fri, 7 May 2021, 18:52 J. Landman Gay via use-livecode, < use-livecode at lists.runrev.com> wrote: > Are you trying to remove a substack? I'm not sure you can do that. > Substacks are always in memory until the mainstack is closed. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On May 7, 2021 4:08:19 AM Tiemo via use-livecode > wrote: > > > Hello, > > > > > > > > LC 9.6.1 macOS 11.2.3 > > > > > > > > when trying to close and remove a file from memory I get the known window > > "really remove the stack file stack?" with the options "cancel" & "OK" > > > > Both options are non responsible, nothing happens. > > > > I still can navigate thru the file menu (with the above dialog still > open) > > and close that stack (without removing from memory) > > > > But even then I can't close the IDE - nothing happens when trying to quit > > the engine. > > > > Only a hard close via task manager is the only option to quit the engine > > > > When selecting just "close" from the file menu, everything works fine. > > > > There is one additional strange issue. In that dialog "really remove the > > stack file stack? The text really says "stack file stack" and not "stack > > file" > > > > > > > > Is it something about my stack what makes the engine hang, or do you also > > experience this behaviour? > > > > > > > > Tiemo > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From curry at pair.com Fri May 7 12:17:34 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 12:17:34 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: References: Message-ID: Panos: > If I remember correctly, this happened on Big Sur only, > and it is fixed in LC 9.6.2 rc-X No way. Hangs have become a defining feature of the LC experience. They are quite common on both Mac and PC in various situations. I'm not disputing that you fixed "something" recently. Perhaps a specific Hang, or specific Hang trigger. But there are plenty more waiting to be fixed. Big Sur only? Not at all. I've had many LC hangs, and please note: I don't even have Big Sur yet. Windows and Mac both have hangs. Nor have they completely disappeared as of LC 9.6.2 rc-X. (AFAIK.) Yeah, I know: it's always a verify specific bug. "File another report." And we will! But face facts - this is not affecting one single LC area. That means the Hang (or Hangs) may not be only local or specific. It's more like a general or systemic flaw throughout LC. Either a deeper flaw, or else a bad coding habit being repeated. So that means LC needs to look at the bigger picture. Thus, you can make the entire "LC experience" less about Hangs. Thanks! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From phil at pdslabs.net Fri May 7 12:42:03 2021 From: phil at pdslabs.net (Phil Davis) Date: Fri, 7 May 2021 09:42:03 -0700 Subject: the systemversion shows wrong version # on Mac In-Reply-To: References: <005e01d74338$a43e39d0$ecbaad70$@kestner.de> Message-ID: If you want the actual macOS system version, you can use the 'sw_vers' shell command. phils-macbook-pro:~ pdslabs2$ sw_vers -productVersion 10.15.7 or phils-macbook-pro:~ pdslabs2$ sw_vers ProductName:??? Mac OS X ProductVersion:??? 10.15.7 BuildVersion:??? 19H1030 Phil Davis On 5/7/21 7:25 AM, Andre Garzia via use-livecode wrote: > Tiemo, > > This is not a bug. > > MacOS Big Sur will identify itself as both 10.16.0 and 11.x. This is by design so that scripts checking for version compatibility can see Big Sur as just a minor version of 10.x > > The version seen depends on both which SDK was used to compile the app, and also on the value of the environment variable called SYSTEM_VERSION_COMPAT. > > Best > Andre > >> On 7 May 2021, at 13:00, Tiemo via use-livecode wrote: >> >> Hello, >> >> >> >> I am on macOS 11.2.3 and the systemversion shows 10.16.0? >> >> It shows the same at least going back to 8.1.7 >> >> >> >> Do I have to multiply the systemversion by 1.1053 to get the real one? >> >> >> >> Tiemo >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis 503-307-4363 From MikeKerner at roadrunner.com Fri May 7 13:04:45 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 7 May 2021 13:04:45 -0400 Subject: 9.6.2 rc5/xcode 12.1 ipad simulator Message-ID: I'm getting an error when trying to fire up the simulator: "Booting available device failed with error: Boot a device" In case I was missing a simulator, I fired up XC and then made sure that the ios simulator for 14.0 was installed, but no joy. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From merakosp at gmail.com Fri May 7 13:07:02 2021 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 7 May 2021 20:07:02 +0300 Subject: the systemversion shows wrong version # on Mac In-Reply-To: References: <005e01d74338$a43e39d0$ecbaad70$@kestner.de> Message-ID: Hello all, Yeap, what Phil said: function mySystemVersion get shell("sw_vers -productVersion") return it end mySystemVersion This will return 11.2.3 on a Mac running Big Sur 11.2.3 See https://quality.livecode.com/show_bug.cgi?id=22887 Cheers, Panos -- On Fri, 7 May 2021 at 19:43, Phil Davis via use-livecode < use-livecode at lists.runrev.com> wrote: > If you want the actual macOS system version, you can use the 'sw_vers' > shell command. > > phils-macbook-pro:~ pdslabs2$ sw_vers -productVersion > 10.15.7 > > or > > phils-macbook-pro:~ pdslabs2$ sw_vers > ProductName: Mac OS X > ProductVersion: 10.15.7 > BuildVersion: 19H1030 > > Phil Davis > > > > On 5/7/21 7:25 AM, Andre Garzia via use-livecode wrote: > > Tiemo, > > > > This is not a bug. > > > > MacOS Big Sur will identify itself as both 10.16.0 and 11.x. This is by > design so that scripts checking for version compatibility can see Big Sur > as just a minor version of 10.x > > > > The version seen depends on both which SDK was used to compile the app, > and also on the value of the environment variable called > SYSTEM_VERSION_COMPAT. > > > > Best > > Andre > > > >> On 7 May 2021, at 13:00, Tiemo via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hello, > >> > >> > >> > >> I am on macOS 11.2.3 and the systemversion shows 10.16.0? > >> > >> It shows the same at least going back to 8.1.7 > >> > >> > >> > >> Do I have to multiply the systemversion by 1.1053 to get the real one? > >> > >> > >> > >> Tiemo > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > -- > Phil Davis > 503-307-4363 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Fri May 7 13:09:20 2021 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 7 May 2021 20:09:20 +0300 Subject: Close & remove from memory - Engine hang In-Reply-To: References: Message-ID: Hello Curry, What Tiemo described sounded like this issue https://quality.livecode.com/show_bug.cgi?id=22896 - so if this is the case, this bug is very specific to Big Sur, and it is fixed in LC 9.6.2 RC-1+. Kind regards, Panos -- On Fri, 7 May 2021 at 19:19, Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > > Panos: > > > If I remember correctly, this happened on Big Sur only, > > and it is fixed in LC 9.6.2 rc-X > > No way. > > Hangs have become a defining feature of the LC experience. > They are quite common on both Mac and PC in various situations. > > I'm not disputing that you fixed "something" recently. > Perhaps a specific Hang, or specific Hang trigger. > But there are plenty more waiting to be fixed. > > Big Sur only? Not at all. I've had many LC hangs, and please note: > I don't even have Big Sur yet. Windows and Mac both have hangs. > Nor have they completely disappeared as of LC 9.6.2 rc-X. (AFAIK.) > > Yeah, I know: it's always a verify specific bug. "File another report." > And we will! But face facts - this is not affecting one single LC area. > > That means the Hang (or Hangs) may not be only local or specific. > It's more like a general or systemic flaw throughout LC. > Either a deeper flaw, or else a bad coding habit being repeated. > > So that means LC needs to look at the bigger picture. > Thus, you can make the entire "LC experience" less about Hangs. Thanks! > > Best wishes, > > Curry Kenworthy > > Custom Software Development > "Better Methods, Better Results" > LiveCode Training and Consulting > http://livecodeconsulting.com/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From curry at pair.com Fri May 7 13:40:11 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 13:40:11 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: References: Message-ID: <9b28f7a4-6669-1fe7-fd76-66ad30c1de39@pair.com> Panos: > What Tiemo described sounded like this issue > https://quality.livecode.com/show_bug.cgi?id=22896 > - so if this is the > case, this bug is very specific to Big Sur, > and it is fixed in LC 9.6.2 RC-1+. Hi Panos, I'm not disputing that you recently addressed a specific Hang. But you are staring at a tiny sapling, and not seeing the mighty forest: Hangs have become a defining feature of the LC experience. They are quite common on both Mac and PC in various situations. Not limited to Big Sur. Not limited to Mac. Not limited to Windows. Not limited to sheets. Not limited to dialogs. See where I'm going with this? LC Experience = Hangs. Using LC = Risking a Hang. Launching LC = Starting countdown to a Hang. I've seen similar hangs when closing stacks. And it sure as heck wasn't Big Sur or even Mac. It was on Windows. And it ain't fixed as of LC 9.6.2 RC-1+. Completely different bug? Maybe. Same LC Experience? Yes! LC has a "Hang Problem." If you don't realize that, you're part of the problem. Likewise I've seen many hangs for other reasons: Other triggers. Other recipes to write. Other bug reports I will file AFTER I finish deadlines. (If you can wave a wand to extend my deadlines, I'll do reports first!) So the problem is not one small specific Big Sur sheet dialog bug. That's the tiny sapling. It's cute, but there's a big forest behind it. And that forest is: LC frequently hangs. It's Hang-prone. "Hang-ey." If LC IDE had a mascot character right now, he'd be frozen in a pose. Maybe the Ice Man - Frozen Stiff, but still Warming Up your Laptop. :) That's not a great image for the LC Experience. Please improve it. I need to file a couple of bug reports after I finish my deadlines. Still need to create reliable recipes; had to create workarounds first. But you need to make LC less buggy (especially, fewer Hangs) in general. Because it's not merely the couple of Hangs that I can report myself! You have many Hangs in LC. Why? They are quite common on both Mac and PC in various situations. Hangs have become a defining feature of the "LC experience." Let's change that. Thanks! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From MikeKerner at roadrunner.com Fri May 7 14:28:52 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 7 May 2021 14:28:52 -0400 Subject: 9.6.0 simulator issue Message-ID: Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. That is giving me "Unable to start simulator: 634,0,0,unknown C++ exception 573,263,1,revPhoneSetSimulatorSDK" -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From marksmithhfx at gmail.com Fri May 7 14:37:58 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 7 May 2021 19:37:58 +0100 Subject: 9.6.0 simulator issue In-Reply-To: References: Message-ID: Hi Mike, I have seen this problem as well, rebooted, reloaded everything and it worked. You might want to try that. Simulator first, then load the app and try the Test button. Mark > On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode wrote: > > Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. > That is giving me > "Unable to start simulator: 634,0,0,unknown > C++ exception > 573,263,1,revPhoneSetSimulatorSDK" > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri May 7 14:41:36 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 7 May 2021 14:41:36 -0400 Subject: 9.6.0 simulator issue In-Reply-To: References: Message-ID: what do you mean - reloaded as in reinstalled xcode or just restarted LC? On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mike, > > I have seen this problem as well, rebooted, reloaded everything and it > worked. You might want to try that. Simulator first, then load the app and > try the Test button. > > Mark > > > On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. > > That is giving me > > "Unable to start simulator: 634,0,0,unknown > > C++ exception > > 573,263,1,revPhoneSetSimulatorSDK" > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From matthias_livecode_150811 at m-r-d.de Fri May 7 14:42:30 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 7 May 2021 20:42:30 +0200 Subject: Close & remove from memory - Engine hang In-Reply-To: <9b28f7a4-6669-1fe7-fd76-66ad30c1de39@pair.com> References: <9b28f7a4-6669-1fe7-fd76-66ad30c1de39@pair.com> Message-ID: Curry, i am working on macOS 10.14.6 and i cannot remember that i had any "unspecified" hangs/freezes in LC the last weeks or months. I had 2 or 3 hangs when i tested some code that used tsNET, but those hangs were caused more by my code and not by LC. ;) But no hangs when i was just coding or creating/building stacks. The last 2 days i've worked with LC 9.6.2 rc5. Each day i had LC running/opened for about 12 hours, although i was working in total about 8 hours each day with LC. Most of the time i was in the editor. But I ran a ton of shell commands using shell() function while testing my stack. I did not had any hang/freeze. On what OS are you and did you do anything special in LC when the hangs appeared? Currently i really cannot confirm such hangs, but of course I don't want to rule out the possibility that they exist. So if you have a recipe i would be really happy to test here. Btw: The only thing i experienced 3 times with RC5 yesterday was, that for whatever reason all objects, which i had setup in geometry manager to scale or move when the stack is resized, were automatically resized to very large value (width and height) without resizing the stack. Suddenly they were resized. Even resizing them manuall, did not get geometry manager scaling/moving the obejcts again. I had to restart the LC, reload the stack and de- and reactivate the geometry manager settings for each object. After that it worked until the next "resize". I really have no clue what was causing this. Today i did not have this problem. All the best. - Matthias Rebbe Life Is Too Short For Boring Code > Am 07.05.2021 um 19:40 schrieb Curry Kenworthy via use-livecode : > > > Panos: > > > What Tiemo described sounded like this issue > > https://quality.livecode.com/show_bug.cgi?id=22896 > > - so if this is the > > case, this bug is very specific to Big Sur, > > and it is fixed in LC 9.6.2 RC-1+. > > Hi Panos, > > I'm not disputing that you recently addressed a specific Hang. > But you are staring at a tiny sapling, and not seeing the mighty forest: > > Hangs have become a defining feature of the LC experience. > They are quite common on both Mac and PC in various situations. > > Not limited to Big Sur. > Not limited to Mac. > Not limited to Windows. > Not limited to sheets. > Not limited to dialogs. > See where I'm going with this? > > LC Experience = Hangs. > > Using LC = Risking a Hang. > Launching LC = Starting countdown to a Hang. > > I've seen similar hangs when closing stacks. > And it sure as heck wasn't Big Sur or even Mac. > It was on Windows. > And it ain't fixed as of LC 9.6.2 RC-1+. > > Completely different bug? Maybe. > Same LC Experience? Yes! > > LC has a "Hang Problem." > If you don't realize that, you're part of the problem. > > Likewise I've seen many hangs for other reasons: > Other triggers. Other recipes to write. > Other bug reports I will file AFTER I finish deadlines. > > (If you can wave a wand to extend my deadlines, I'll do reports first!) > > So the problem is not one small specific Big Sur sheet dialog bug. > That's the tiny sapling. It's cute, but there's a big forest behind it. > And that forest is: LC frequently hangs. It's Hang-prone. "Hang-ey." > > If LC IDE had a mascot character right now, he'd be frozen in a pose. > Maybe the Ice Man - Frozen Stiff, but still Warming Up your Laptop. :) > That's not a great image for the LC Experience. Please improve it. > > I need to file a couple of bug reports after I finish my deadlines. > Still need to create reliable recipes; had to create workarounds first. > > But you need to make LC less buggy (especially, fewer Hangs) in general. > Because it's not merely the couple of Hangs that I can report myself! > > You have many Hangs in LC. Why? > > They are quite common on both Mac and PC in various situations. > Hangs have become a defining feature of the "LC experience." > Let's change that. Thanks! > > Best wishes, > > Curry Kenworthy > > Custom Software Development > "Better Methods, Better Results" > LiveCode Training and Consulting > http://livecodeconsulting.com/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri May 7 14:53:46 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 7 May 2021 14:53:46 -0400 Subject: 9.6.0 simulator issue In-Reply-To: References: Message-ID: otay, let's see: quitting LC and restarting seems to get it over the hump. On Fri, May 7, 2021 at 2:41 PM Mike Kerner wrote: > what do you mean - reloaded as in reinstalled xcode or just restarted LC? > > On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Mike, >> >> I have seen this problem as well, rebooted, reloaded everything and it >> worked. You might want to try that. Simulator first, then load the app and >> try the Test button. >> >> Mark >> >> > On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Since 9.6.2 is giving me issues, I decided to try the simulator in >> 9.6.0. >> > That is giving me >> > "Unable to start simulator: 634,0,0,unknown >> > C++ exception >> > 573,263,1,revPhoneSetSimulatorSDK" >> > >> > -- >> > On the first day, God created the heavens and the Earth >> > On the second day, God created the oceans. >> > On the third day, God put the animals on hold for a few hours, >> > and did a little diving. >> > And God said, "This is good." >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From curry at pair.com Fri May 7 15:18:49 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 15:18:49 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: References: Message-ID: <5fb71a30-3a40-89f2-8573-41e59855106a@pair.com> Matthias: > I did not had any hang/freeze. Hi Matthias, Good for you! Perhaps you work with fewer projects, or fewer LC areas. Anyway, you and I are obviously not doing the exact same work, right? So count your blessings. Every hang does have a trigger and a cause. No trigger = no hang. That's something to keep in mind. > On what OS are you and did you do anything special > in LC when the hangs appeared? Hmm, I think I already stated: "both Mac and PC in various situations." (Funny how it takes several repetitions to convey a non-clique message.) Nor do I want to claim all the credit. I've had plenty of hangs myself. But I've seen others when screen-sharing with other people. Thus: "it's not merely the couple of Hangs that I can report myself!" I believe I can recipe two of the hangs, but there are others. > So if you have a recipe i would be really happy to test here. Funny, I thought I already said that too: "Other bug reports I will file AFTER I finish deadlines. (If you can wave a wand to extend my deadlines, I'll do reports first!)" And yet again, answered before it was asked: "I need to file a couple of bug reports after I finish my deadlines. Still need to create reliable recipes; had to create workarounds first." So when I do file a report, please do test the recipe as you've offered. I would appreciate that! And thank you for your response here. > of course I don't want to rule out the possibility that they exist. That's good to hear! I have a similar approach to unconfirmed data: I've never seen Matthias, but I don't rule out his existence either. :) I am skeptical, but I admit there's a chance of you being real. On the other hand, no such doubts about the LC Hangs; I've seen many. (BTW thanks for your offlist inquiry recently on one of the addons. And thanks for writing again to let me know you had a workaround. I will get back to you on that, also, after these deadlines.) Back to work! Take care.... Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From matthias_livecode_150811 at m-r-d.de Fri May 7 15:20:18 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 7 May 2021 21:20:18 +0200 Subject: Updated version of the SignNotarizeHelper stack available Message-ID: <546DB9E9-4D41-43EE-A2E6-CA5E5D1E37B8@m-r-d.de> Dear all, i have uploaded an updated version of my SignNotarizeHelper stack. I've added package installer support. So it's now also possible to create, sign and notarize a .pkg So now all combinations should be possible: - Sign & Notarize App - Sign & Notarize App&DMG - Sign & Notarize App&PKG - Sign & Notarize app&PKG&DMG And the following options are also available - Check a signed app for entitlements - Check if .app, .pkg or .dmg is signed - Check if .app, .pkg or .dmg is notarized - Get a list of all past notarization requests + the possiblity to get detailed log information of a notarization request. Here's the download link https://dl.qck.nu/?dl=mrSignNotarizeHelperV3.livecode I will also update the stack in the lesson at https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore with the updated one. But i need to update the "stack" part in the lesson first. If you find anything, please let me know. Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code From matthias_livecode_150811 at m-r-d.de Fri May 7 15:51:58 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 7 May 2021 21:51:58 +0200 Subject: Close & remove from memory - Engine hang In-Reply-To: <5fb71a30-3a40-89f2-8573-41e59855106a@pair.com> References: <5fb71a30-3a40-89f2-8573-41e59855106a@pair.com> Message-ID: > Am 07.05.2021 um 21:18 schrieb Curry Kenworthy via use-livecode : > > > Matthias: > > > I did not had any hang/freeze. > > > That's good to hear! I have a similar approach to unconfirmed data: > I've never seen Matthias, but I don't rule out his existence either. :) > Believe me i am real. I purchased every library you've created in the past, so i must be real. If not, give me my money back. ;) Please post the bug report id, when you've posted. Matthias > > Curry Kenworthy > > Custom Software Development > "Better Methods, Better Results" > LiveCode Training and Consulting > http://livecodeconsulting.com/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Fri May 7 16:31:35 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 16:31:35 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: References: Message-ID: Matthias: > Believe me i am real. I purchased every library > you've created in the past, so i must be real. Not necessarily! You could be a "bot" with a Paypal account. But I am not prejudiced; human or not, you're a valued customer. :) And so hopefully you see, and understand, what I'm doing in this thread. LC indeed has several hangs, and is "Pretty Darn Buggy" in general. When you cast doubt on my observations, you're not helping the cause. I'm not doing it for myself; LC being "Pretty Darn Buggy" hurts people. I can always workaround, but other people may not be able to do that. And there's a Catch-22, because LC being Pretty Darn Buggy slows me up. Making workarounds on features that should be solid/stable wastes time. Until I finish a couple of deadlines, I can't even report the recipes! I would have finished this work long ago if LC had fewer bugs. Which, I know, further compounds the problem. But it's a bigger problem. I estimate that I've had 4 types of Hangs, of which I can recipe 2. The other 2 are less common or harder to pin down; no imminent recipes. And (as I've emphasized) I've seen and heard about even more Hangs. And if you decide to "oppose the effort" that's an additional delay. I'm having to repeat things for you that I already stated. That's fine; if it helps the effort, it's worth it. But it takes time. And guess what - addon work comes after the deadlines and bug reports. So, if you'd like to cooperate more, rather than casting blind doubt... ...maybe we'd both benefit, huh? When LC is less buggy, it helps us all. Anyway, thanks for being a customer. I admit...you seem pretty real. If you're a bot, the AI is getting pretty good already. :) The LC "Cliques" are also real, but I do have a Communication degree, in addition to my Computer Science education, and that helps. I clearly see memes, messages, insinuations as if they were neon signs. Sometimes I use my Communication skills here, again to help all of us. Take care! I do truly appreciate your thoughts on this. Hopefully we can talk more after my deadlines, and yes ... > Please post the bug report id, when you've posted. Absolutely I'll paste the bug report links here when I file them. But as I've said many times now, I expect to file TWO Hang reports. There are other Hang bugs which I am not able to report. (See above.) Including this one of Tiemo's, if it's NOT the one Panos fixed. That's why (yep, there's always a reason) I'm talking about it here. Because there are more Hangs, and more people need to file reports. Otherwise LC will remain "Pretty Darn Buggy" and that's not good. I estimate there are perhaps 6 Hang bugs total, but I can recipe 2. File those bug reports, people! Take care, all.... Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From dochawk at gmail.com Fri May 7 16:51:47 2021 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 7 May 2021 13:51:47 -0700 Subject: making transparent pdf output Message-ID: <170A456B-11EF-431C-ABFE-1D877F87F76F@gmail.com> I?m finally getting back to work on this project. The first thing I need to do is figure out how to make livecode pdf output transparent. A page of one will be mostly fields with transparent backgrounds. But when I pint to pdf, the background of the card, supposedly transparent, renders as grey when merged on top of another pdf (much as a card with no background color). Is there a way to make livecode produce a pdf with a transparent background? Or failing that, a way to edit its pdf output to make its background transparent? I?m *trying* to find a forum for working with raw pdf, but the noise is so heavy from all the pdf software that I can?t find anything.. I?m stuck working from the adobe reference document at the moment, which is kind of like trying multivariate calculus without understanding algebra . . . ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From scott at elementarysoftware.com Fri May 7 18:00:48 2021 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 7 May 2021 15:00:48 -0700 Subject: Close & remove from memory - Engine hang In-Reply-To: References: Message-ID: <80A0767E-75E3-4F70-952E-A4C1CFDD6515@elementarysoftware.com> Paypal account or not, if Matthias is a bot we need to figure out how to spawn more instances. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On May 7, 2021, at 1:31 PM, Curry Kenworthy via use-livecode wrote: > > Matthias: > > > Believe me i am real. I purchased every library > > you've created in the past, so i must be real. > > Not necessarily! You could be a "bot" with a Paypal account. > But I am not prejudiced; human or not, you're a valued customer. :) From curry at pair.com Fri May 7 18:47:15 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 18:47:15 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: <80A0767E-75E3-4F70-952E-A4C1CFDD6515@elementarysoftware.com> References: <80A0767E-75E3-4F70-952E-A4C1CFDD6515@elementarysoftware.com> Message-ID: <23b511fd-5a5e-5762-fed0-9797de6be6e9@pair.com> Scott: > Paypal account or not, if Matthias is a bot we need to > figure out how to spawn more instances. That's no problem; we can hack into the server and "borrow" the Matthias source code. But I don't know what kind of hardware he requires. ;) (Again, for any who did not understand the exchange between myself and Matthias, I "doubted" his existence to call out his casting blind doubt on my accurate observations of the very real, and several, LC Hangs.) Opposing or ridiculing efforts to debug LC is pretty pointless; it's very much a "Community Service" when I help track down as many LC bugs as possible, and this helps others. You can't fight the facts anyway. Not sure why anyone would jump at the chance of being proven wrong! But no hard feelings to any; just getting bugs fixed, for the benefit of all. And for any that don't get fixed, I'll have a few workarounds. BTW, I should have tweaked the ending of my previous message: > I estimate there are perhaps 6 Hang bugs total, but I can recipe 2. > File those bug reports, people! Take care, all.... I left out a core message of my current theme. Fixed it for me: File those bug reports, people! IMPROVE THE CODE, LC! Take care, all.... Because those are two problems: sometimes LC users don't report bugs. And sometimes LC is "Too Darn Buggy" to humanly report everything. (I mentioned the "Bug Monkhood" concept of quitting one's livelihood.) We should address both sides of the equation: more reports, better code. I was hoping this would be a one-off quick post without much fuss, but on second thought, maybe it's just as well. LC's bug-density is a big enough problem that we've had several people simply give up and go away. Meanwhile, I've ran into more bugs and poor feature support in some areas than I could hope to report in a lifetime! Some areas of LC just aren't great. Paste and Player come to mind. I reported numerous Player bugs, and probably will report many Paste bugs, but neither area will be great even with bugs fixed. And the real bugs are so numerous that it's hard to find time for filing feature requests. Too many bugs and flaky feature support. I'd like to see that change. I could shrug my shoulders, but that's not my style. I'm going to do what I can to help reduce LC's bugs (and some other things) to help both LC itself and its users. While also helping myself and some clients. Since I'm not the clique type, I always get some flak, but that's OK. I can handle that, no sweat. I hope everyone has a great weekend! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From matthias_livecode_150811 at m-r-d.de Fri May 7 19:20:59 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 8 May 2021 01:20:59 +0200 Subject: Close & remove from memory - Engine hang In-Reply-To: <23b511fd-5a5e-5762-fed0-9797de6be6e9@pair.com> References: <80A0767E-75E3-4F70-952E-A4C1CFDD6515@elementarysoftware.com> <23b511fd-5a5e-5762-fed0-9797de6be6e9@pair.com> Message-ID: Dear Curry, just to make clear, i've never wrote that i doubted your observations. I just wrote about my observations and asked for a recipe. Not to proof you wrong, but to see if i could replicate and to see if there is something in common, because that maybe would help the Livecode team to fix those hangs sooner. If you felt that as "doubt" then i am really sorry. But keep in mind i am not native English, therefore my texts could sometimes have a different effect on the reader than I had planned. ;) - Matthias Rebbe Life Is Too Short For Boring Code > (Again, for any who did not understand the exchange between myself and Matthias, I "doubted" his existence to call out his casting blind doubt on my accurate observations of the very real, and several, LC Hangs.) From matthias_livecode_150811 at m-r-d.de Fri May 7 19:28:32 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 8 May 2021 01:28:32 +0200 Subject: Updated version of the SignNotarizeHelper stack available In-Reply-To: <546DB9E9-4D41-43EE-A2E6-CA5E5D1E37B8@m-r-d.de> References: <546DB9E9-4D41-43EE-A2E6-CA5E5D1E37B8@m-r-d.de> Message-ID: <8246CF30-FB86-43E2-BFD2-953664B73C14@m-r-d.de> Hi again, i've just uploaded a quick overview / diagram about the different ways/methods to notarize an app. If your time allows, i would be very happy if some of you could have a quick look and tell me, if the overview is clear enough and complete or if there is something missing. https://dl.qck.nu/?dl=Notarize_an_App_05-2021.pdf - Matthias Rebbe Life Is Too Short For Boring Code > Am 07.05.2021 um 21:20 schrieb matthias rebbe via use-livecode : > > Dear all, > > i have uploaded an updated version of my SignNotarizeHelper stack. > > I've added package installer support. So it's now also possible to create, sign and notarize a .pkg > > So now all combinations should be possible: > - Sign & Notarize App > - Sign & Notarize App&DMG > - Sign & Notarize App&PKG > - Sign & Notarize app&PKG&DMG > > And the following options are also available > - Check a signed app for entitlements > - Check if .app, .pkg or .dmg is signed > - Check if .app, .pkg or .dmg is notarized > - Get a list of all past notarization requests + the possiblity to get detailed log information of a notarization request. > > Here's the download link > https://dl.qck.nu/?dl=mrSignNotarizeHelperV3.livecode > > I will also update the stack in the lesson at > > https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore > > with the updated one. But i need to update the "stack" part in the lesson first. > > > If you find anything, please let me know. > > > Regards, > Matthias > > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Fri May 7 19:57:57 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 19:57:57 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: References: Message-ID: <765f7d00-b428-c708-e3dd-e18e36d438ce@pair.com> Matthias: > I just wrote about my observations and asked for a recipe. ... > If you felt that as "doubt" then i am really sorry. No worries! I also apologize if I've misread your message. It's probably a "Good Thing" anyway that we've had some exchange, because it brings more attention to the topic. Thank you for that. I look forward to posting the recipes and reports after deadlines; those must happen first, and there's no way I can change that. Besides the two I can recipe, I hope other people can recipe theirs. That's a worry because my two cover only a third of Hangs I've seen! (Extrapolating, there may be another 1 or 2 Hangs still unknown to me. But fixing 4 to 6 would be a great start. Hopefully that's all of them.) Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From jacque at hyperactivesw.com Fri May 7 20:07:06 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 07 May 2021 19:07:06 -0500 Subject: Close & remove from memory - Engine hang In-Reply-To: References: <9b28f7a4-6669-1fe7-fd76-66ad30c1de39@pair.com> Message-ID: <179494c9410.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I have the same experience. I routinely run 3 versions of LC simultaneously with different stacks and projects in each. I've left them all running for weeks at a time without any issues (I don't shut down my Mac unless there's an OS update that requires a restart.) I don't doubt at all that the problems exist, only that it may not be as bad for everyone as Curry suggests. By all means they need to be fixed but pinning down these elusive behaviors can be difficult. I do recall one hang I had quite a while ago but I'm not sure why it happened. I'm also not yet running Big Sur and I get the feeling that OS has introduced problems that didn't occur before. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 7, 2021 1:44:53 PM matthias rebbe via use-livecode wrote: > > i am working on macOS 10.14.6 and i cannot remember that i had any > "unspecified" hangs/freezes in LC the last weeks or months. > I had 2 or 3 hangs when i tested some code that used tsNET, but those hangs > were caused more by my code and not by LC. ;) > > But no hangs when i was just coding or creating/building stacks. From curry at pair.com Fri May 7 21:39:20 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 7 May 2021 21:39:20 -0400 Subject: Close & remove from memory - Engine hang In-Reply-To: <179494c9410.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <179494c9410.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <16fa9332-94ae-74e7-df7c-8005521a241b@pair.com> Jacqueline: > I routinely run 3 versions of LC simultaneously > with different stacks and projects in each. > I've left them all running for weeks at a time without any issues That's pretty scary; your habits are much like mine! That's how I work. I have two LCs minimized today, and each has been open for a week. (BTW, leaving the IDE minimized on Windows can trigger Invisible Menus. Still not fixed, last time I checked, but I have a good workaround.) And guess what, I haven't had any Hangs lately. I'm Hang-free! But there's a reason for that: I already worked around them. So I'm OK; it no longer affects me. I could just go my way and not care. But that wouldn't make me a Good Samaritan, nor a responsible user. Nope, I will report them as soon as I can. That's just my style. I always try to leave LC better than the way I found it, for others. And for some areas that are "not great" I may offer some addon code. (After my current addons are updated, of course.) > pinning down these elusive behaviors can be difficult. Amen to that! Of the 4 Hangs I've had, I think I can recipe only 2. The other 2 Hangs I need to observe more before attempting a recipe. And I've seen yet another 2 - both on Mac, I think - that I've not had. So short-term I can only hope to report one-third of Hangs I've seen. > I do recall one hang I had quite a while ago > but I'm not sure why it happened. So yours might make it a total of 7 Hangs, or it might be an overlap. But that's at least 6 that I can vouch for. And that is only for Hangs! When we talk about non-Hang bugs, glitches, weak features...whew. Because Hangs (all 6+ of them) are very rare compared to regular bugs. LC is Pretty Darn Buggy. So much so that some people threw in the towel. I'm not a towel-thrower. Anything but! I'm awesome at the workarounds. You are too, I bet. But I do empathize when people hit bugs on projects. Since I'm not always an exact genetic clone of Speedy Gonzales in terms of my speed in delivering addons, I often empathize first, and make an addon for weak feature areas a bit later. Meanwhile I file bug reports. > only that it may not be as bad for everyone as Curry suggests I don't think I suggested that at all, but if I gave that impression, thanks for noting it! I'll clarify: bugs are NEVER bad for everyone. Extreme example: LC bugs are not bad for people who never use LC itself, and who additionally don't use any products or services driven by LC. :) More moderate: An LC print bug won't bother people who never print. And that happens. Many times I've not noticed a bug until a new project. It's usually just a little more complicated than that, but not much. Often a bug involves a specific platform, and a feature area or subset. If you use that feature, it's a problem. If not, life is groovy. Like printing checkboxes on Windows; that took forever to get fixed! If it is fixed now - I've forgotten; been away from that project. Bugs are only a problem when they are triggered. No trigger, no problem. That's why I love workarounds - but I have to remember to file reports. Because that same bug (not hurting me!) can give someone else a bad day. And if you don't use a certain feature, or part of a feature with a bug, you won't have the problem. So definitely not always bad for everyone! Most bugs only affect a minority of users, at least in ways they notice. But bugs ARE bad when they strike, especially without workarounds. It very much depends what area of LC you're working in, doesn't it? Having a buggy IDE ain't great either; it doesn't attract the newbies! If they play in the wrong part of LC and hit bugs, not all stick around. Not only newbies; excessive bugs can also give headaches to "oldies." We've seen some people leave, others complain, others searching for help on features that are surprisingly basic/simple and should be rock solid. If we want LC to grow, to have a new generation of users, bugs hurt. If we want to energize the existing users, bugs hurt there too. To summarize, it's rare that bugs ever help. (I've seen one; very rare.) I consider bugs important. I've even been bitten some myself by LC bugs. I enjoy workarounds, but at some point, Too Many Bugs can zap the budget on a project, especially if you have negotiated a flat rate. Ouch. I usually make lemonade out of those lemons, but a headache at times. Including right now! Big deadline, basic features (for 2021) and then: It's your Lucky Day, here's a bazillion bugs, plus some weak features! Great, today is my Lucky Day! I won a bag of bugs! Workaround time.... And I have to get back to that effort - already worked around the bugs, but still have to improve some "Weak LC Features" and wrap up deadlines. Thanks for chiming in! Glad to see a fellow weeklong-minimized-IDE user: I love being able to switch instantly, or jump right back into my work. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From ahsoftware at sonic.net Fri May 7 21:51:32 2021 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 7 May 2021 18:51:32 -0700 Subject: Close & remove from memory - Engine hang In-Reply-To: <16fa9332-94ae-74e7-df7c-8005521a241b@pair.com> References: <179494c9410.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <16fa9332-94ae-74e7-df7c-8005521a241b@pair.com> Message-ID: <4af37eda-5afa-dce1-202e-42bba30d6dd1@sonic.net> On 5/7/21 6:39 PM, Curry Kenworthy via use-livecode wrote: > More moderate: An LC print bug won't bother people who never print. Being on linux, I'd love to have print bugs. https://quality.livecode.com/show_bug.cgi?id=21131 -- Mark Wieder ahsoftware at gmail.com From dvglasgow at gmail.com Sat May 8 04:50:11 2021 From: dvglasgow at gmail.com (David V Glasgow) Date: Sat, 8 May 2021 09:50:11 +0100 Subject: Close & remove from memory - Engine hang In-Reply-To: <765f7d00-b428-c708-e3dd-e18e36d438ce@pair.com> References: <765f7d00-b428-c708-e3dd-e18e36d438ce@pair.com> Message-ID: > On 8 May 2021, at 12:57 am, Curry Kenworthy via use-livecode wrote: > > > I just wrote about my observations and asked for a recipe. > ... > > If you felt that as "doubt" then i am really sorry. > > No worries! I also apologize if I've misread your message. Now *that?s* how to do it. David Glasgow From marksmithhfx at gmail.com Sat May 8 08:45:56 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 8 May 2021 13:45:56 +0100 Subject: 9.6.0 simulator issue In-Reply-To: References: Message-ID: In order, Re-started Xcode, invoked the Simulator Waited for the simulator to boot Re-loaded LC, loaded my app Pressed the test button. That is being really rigorous about it, but sometimes I have found if that the sequence is messed up in some way you?ll see the C++ exception error. That?s when I do the above and so far (knock on wood) it has always got things going again. > On May 7, 2021, at 7:41 PM, Mike Kerner via use-livecode wrote: > > what do you mean - reloaded as in reinstalled xcode or just restarted LC? > > On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Mike, >> >> I have seen this problem as well, rebooted, reloaded everything and it >> worked. You might want to try that. Simulator first, then load the app and >> try the Test button. >> >> Mark >> >>> On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. >>> That is giving me >>> "Unable to start simulator: 634,0,0,unknown >>> C++ exception >>> 573,263,1,revPhoneSetSimulatorSDK" >>> >>> -- >>> On the first day, God created the heavens and the Earth >>> On the second day, God created the oceans. >>> On the third day, God put the animals on hold for a few hours, >>> and did a little diving. >>> And God said, "This is good." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jeejeestudio at gmail.com Sat May 8 15:48:17 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Sat, 8 May 2021 21:48:17 +0200 Subject: 9.6.0 simulator issue In-Reply-To: References: Message-ID: <73414720-05ca-1891-e9de-8a6662c2af91@gmail.com> an alternative is, create a standalone. Drag the standalone file you created to the emulator Op 8-5-2021 om 14:45 schreef Mark Smith via use-livecode: > In order, > > Re-started Xcode, invoked the Simulator > Waited for the simulator to boot > Re-loaded LC, loaded my app > Pressed the test button. > > That is being really rigorous about it, but sometimes I have found if that the sequence is messed up in some way you?ll see the C++ exception error. That?s when I do the above and so far (knock on wood) it has always got things going again. > >> On May 7, 2021, at 7:41 PM, Mike Kerner via use-livecode wrote: >> >> what do you mean - reloaded as in reinstalled xcode or just restarted LC? >> >> On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Mike, >>> >>> I have seen this problem as well, rebooted, reloaded everything and it >>> worked. You might want to try that. Simulator first, then load the app and >>> try the Test button. >>> >>> Mark >>> >>>> On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. >>>> That is giving me >>>> "Unable to start simulator: 634,0,0,unknown >>>> C++ exception >>>> 573,263,1,revPhoneSetSimulatorSDK" >>>> >>>> -- >>>> On the first day, God created the heavens and the Earth >>>> On the second day, God created the oceans. >>>> On the third day, God put the animals on hold for a few hours, >>>> and did a little diving. >>>> And God said, "This is good." >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at livecode.org Sat May 8 23:31:23 2021 From: paul at livecode.org (Paul Hibbert) Date: Sat, 8 May 2021 20:31:23 -0700 Subject: 9.6.0 simulator issue In-Reply-To: References: Message-ID: <1E2AB483-393F-4995-BB73-EE91381A9176@livecode.org> The process I use: One time process for each Xcode version/update: Launch Xcode > Open the Simulator(s) that I want to use. Add the Simulator app(s) to the dock ? Right Click on the Simulator Icon in the Dock while it?s open and choose ?Keep in dock?. Quit Xcode. From then on, whenever I?m working on an iOS app, I launch the simulator from the dock and wait until it fully loads before testing from LC, no need to launch Xcode and no messages from LC saying the simulator is taking too long to load. It?s still not a quick process until the simulator is open, but it does seem more reliable to me. When you update to the next version of Xcode, it is necessary to clean out the old simulators from the dock and make new Dock entries, but that?s not too much hassle in comparison to the time saving. Paul > On 8May, 2021, at 5:45 AM, Mark Smith via use-livecode wrote: > > In order, > > Re-started Xcode, invoked the Simulator > Waited for the simulator to boot > Re-loaded LC, loaded my app > Pressed the test button. > > That is being really rigorous about it, but sometimes I have found if that the sequence is messed up in some way you?ll see the C++ exception error. That?s when I do the above and so far (knock on wood) it has always got things going again. > >> On May 7, 2021, at 7:41 PM, Mike Kerner via use-livecode wrote: >> >> what do you mean - reloaded as in reinstalled xcode or just restarted LC? >> >> On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Mike, >>> >>> I have seen this problem as well, rebooted, reloaded everything and it >>> worked. You might want to try that. Simulator first, then load the app and >>> try the Test button. >>> >>> Mark >>> >>>> On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. >>>> That is giving me >>>> "Unable to start simulator: 634,0,0,unknown >>>> C++ exception >>>> 573,263,1,revPhoneSetSimulatorSDK" >>>> >>>> -- >>>> On the first day, God created the heavens and the Earth >>>> On the second day, God created the oceans. >>>> On the third day, God put the animals on hold for a few hours, >>>> and did a little diving. >>>> And God said, "This is good." >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >> and did a little diving. >> And God said, "This is good." >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Sun May 9 04:56:45 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 9 May 2021 09:56:45 +0100 Subject: 9.6.0 simulator issue In-Reply-To: <73414720-05ca-1891-e9de-8a6662c2af91@gmail.com> References: <73414720-05ca-1891-e9de-8a6662c2af91@gmail.com> Message-ID: Will try that, thanks > On May 8, 2021, at 8:48 PM, JeeJeeStudio via use-livecode wrote: > > an alternative is, create a standalone. > > Drag the standalone file you created to the emulator > > > Op 8-5-2021 om 14:45 schreef Mark Smith via use-livecode: >> In order, >> >> Re-started Xcode, invoked the Simulator >> Waited for the simulator to boot >> Re-loaded LC, loaded my app >> Pressed the test button. >> >> That is being really rigorous about it, but sometimes I have found if that the sequence is messed up in some way you?ll see the C++ exception error. That?s when I do the above and so far (knock on wood) it has always got things going again. >> >>> On May 7, 2021, at 7:41 PM, Mike Kerner via use-livecode wrote: >>> >>> what do you mean - reloaded as in reinstalled xcode or just restarted LC? >>> >>> On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Mike, >>>> >>>> I have seen this problem as well, rebooted, reloaded everything and it >>>> worked. You might want to try that. Simulator first, then load the app and >>>> try the Test button. >>>> >>>> Mark >>>> >>>>> On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. >>>>> That is giving me >>>>> "Unable to start simulator: 634,0,0,unknown >>>>> C++ exception >>>>> 573,263,1,revPhoneSetSimulatorSDK" >>>>> >>>>> -- >>>>> On the first day, God created the heavens and the Earth >>>>> On the second day, God created the oceans. >>>>> On the third day, God put the animals on hold for a few hours, >>>>> and did a little diving. >>>>> And God said, "This is good." >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> -- >>> On the first day, God created the heavens and the Earth >>> On the second day, God created the oceans. >>> On the third day, God put the animals on hold for a few hours, >>> and did a little diving. >>> And God said, "This is good." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Sun May 9 07:49:06 2021 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Sun, 9 May 2021 04:49:06 -0700 Subject: 9.6.0 simulator issue In-Reply-To: <1E2AB483-393F-4995-BB73-EE91381A9176@livecode.org> References: <1E2AB483-393F-4995-BB73-EE91381A9176@livecode.org> Message-ID: Paul, I have taken to doing exactly what you describe. Additionally, I am in the habit of waiting for the iOS simulator to load before I even launch LiveCode? though this step may be superstition. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On May 8, 2021, at 8:31 PM, Paul Hibbert via use-livecode wrote: > > The process I use: > > One time process for each Xcode version/update: > Launch Xcode > Open the Simulator(s) that I want to use. > Add the Simulator app(s) to the dock ? Right Click on the Simulator Icon in the Dock while it?s open and choose ?Keep in dock?. > Quit Xcode. > > From then on, whenever I?m working on an iOS app, I launch the simulator from the dock and wait until it fully loads before testing from LC, no need to launch Xcode and no messages from LC saying the simulator is taking too long to load. It?s still not a quick process until the simulator is open, but it does seem more reliable to me. > > When you update to the next version of Xcode, it is necessary to clean out the old simulators from the dock and make new Dock entries, but that?s not too much hassle in comparison to the time saving. > > Paul > > >> On 8May, 2021, at 5:45 AM, Mark Smith via use-livecode wrote: >> >> In order, >> >> Re-started Xcode, invoked the Simulator >> Waited for the simulator to boot >> Re-loaded LC, loaded my app >> Pressed the test button. >> >> That is being really rigorous about it, but sometimes I have found if that the sequence is messed up in some way you?ll see the C++ exception error. That?s when I do the above and so far (knock on wood) it has always got things going again. >> >>> On May 7, 2021, at 7:41 PM, Mike Kerner via use-livecode wrote: >>> >>> what do you mean - reloaded as in reinstalled xcode or just restarted LC? >>> >>> On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Mike, >>>> >>>> I have seen this problem as well, rebooted, reloaded everything and it >>>> worked. You might want to try that. Simulator first, then load the app and >>>> try the Test button. >>>> >>>> Mark >>>> >>>>> On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0. >>>>> That is giving me >>>>> "Unable to start simulator: 634,0,0,unknown >>>>> C++ exception >>>>> 573,263,1,revPhoneSetSimulatorSDK" >>>>> >>>>> -- >>>>> On the first day, God created the heavens and the Earth >>>>> On the second day, God created the oceans. >>>>> On the third day, God put the animals on hold for a few hours, >>>>> and did a little diving. >>>>> And God said, "This is good." >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> -- >>> On the first day, God created the heavens and the Earth >>> On the second day, God created the oceans. >>> On the third day, God put the animals on hold for a few hours, >>> and did a little diving. >>> And God said, "This is good." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode From david.bovill at gmail.com Sun May 9 15:05:47 2021 From: david.bovill at gmail.com (David Bovill) Date: Sun, 9 May 2021 20:05:47 +0100 Subject: Contact Library for Address Book on MacOS In-Reply-To: References: <1E2AB483-393F-4995-BB73-EE91381A9176@livecode.org> Message-ID: <5eee82ba-9fc4-40c1-a913-6121003d4bbe@Spark> I?m looking to create an address book on MacOS and mobile and I see that there is no built in functionality on desktop. I?ve used AppleScript before for this - but a long time ago. Is there a library hanging around for this for MacOS or Windows? From dvglasgow at gmail.com Mon May 10 05:49:44 2021 From: dvglasgow at gmail.com (David V Glasgow) Date: Mon, 10 May 2021 10:49:44 +0100 Subject: Finding invisible/non printable characters in a string Message-ID: <2F464996-71D1-4B07-9BB8-A10F9E1774FC@gmail.com> Hi folks, hope everyone is well. Would I be right in thinking if codepoint count > the number of chars in a text string, then it probably contains invisible characters? Or would I need to search through Hex to check? Or something much easier and cleverer that I hadn?t even considered. Because that?s what this list and working with Livecode is like. Cheers David Glasgow From panos.merakos at livecode.com Mon May 10 08:59:49 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 10 May 2021 15:59:49 +0300 Subject: [ANN] Release 9.6.2 RC-6 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.2 RC-6. 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-6 comes with 3 regression fixes: - Fix 100% CPU usage when the player control is set to load an unplayable media file on Macos Big Sur - Fix rectangle border inset too much when printing on Windows or to PDF - Ensure externals are not blocked by hardened runtime 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_6.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: Starting April 26, 2021, all iPhone and iPad apps submitted to the App Store must be built with Xcode 12 and the iOS 14 SDK or later. This means that, if you wish to submit apps to the AppStore you will have to be running at least macOS 10.15.4 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 -- From paul at researchware.com Mon May 10 10:08:08 2021 From: paul at researchware.com (Paul Dupuis) Date: Mon, 10 May 2021 10:08:08 -0400 Subject: Finding invisible/non printable characters in a string In-Reply-To: <2F464996-71D1-4B07-9BB8-A10F9E1774FC@gmail.com> References: <2F464996-71D1-4B07-9BB8-A10F9E1774FC@gmail.com> Message-ID: <7f086f61-72c1-b56b-c099-aba5fc1ef33f@researchware.com> There are characters that consist of more than one codepoint - composite versions of characters for accents. See https://unicode-table.com/en/blocks/combining-diacritical-marks/ I think the best way is to scan the codepoints looking for codePointToNum values that are 0-31 (exclude tab and cr/lfs if you like) and 127 (DEL). There may be some others in the 128-255 range that are not printable. I forget off the top of my head. On 5/10/2021 5:49 AM, David V Glasgow via use-livecode wrote: > Hi folks, hope everyone is well. > > Would I be right in thinking if codepoint count > the number of chars in a text string, then it probably contains invisible characters? > > Or would I need to search through Hex to check? > > Or something much easier and cleverer that I hadn?t even considered. Because that?s what this list and working with Livecode is like. > > Cheers > > David Glasgow > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Mon May 10 10:16:13 2021 From: kee.nethery at elloco.com (Kee Nethery) Date: Mon, 10 May 2021 07:16:13 -0700 Subject: Finding invisible/non printable characters in a string In-Reply-To: <7f086f61-72c1-b56b-c099-aba5fc1ef33f@researchware.com> References: <7f086f61-72c1-b56b-c099-aba5fc1ef33f@researchware.com> Message-ID: <3E57F28E-F633-4EAA-BB45-D11234DD3A69@elloco.com> The ASCII characters at the beginning of the ASCII table (RS, GS, Bell, etc) typically display as a box. What you are describing are zero width Unicode characters. I think there are four. You could explicitly look for them. Kee Nethery > On May 10, 2021, at 7:09 AM, Paul Dupuis via use-livecode wrote: > > ?There are characters that consist of more than one codepoint - composite versions of characters for accents. See https://unicode-table.com/en/blocks/combining-diacritical-marks/ > > > I think the best way is to scan the codepoints looking for codePointToNum values that are 0-31 (exclude tab and cr/lfs if you like) and 127 (DEL). There may be some others in the 128-255 range that are not printable. I forget off the top of my head. > > > >> On 5/10/2021 5:49 AM, David V Glasgow via use-livecode wrote: >> Hi folks, hope everyone is well. >> >> Would I be right in thinking if codepoint count > the number of chars in a text string, then it probably contains invisible characters? >> >> Or would I need to search through Hex to check? >> >> Or something much easier and cleverer that I hadn?t even considered. Because that?s what this list and working with Livecode is like. >> >> Cheers >> >> David Glasgow >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Mon May 10 13:23:48 2021 From: curry at pair.com (Curry Kenworthy) Date: Mon, 10 May 2021 13:23:48 -0400 Subject: Finding invisible/non printable characters in a string In-Reply-To: <2F464996-71D1-4B07-9BB8-A10F9E1774FC@gmail.com> References: <2F464996-71D1-4B07-9BB8-A10F9E1774FC@gmail.com> Message-ID: David: > Would I be right in thinking if codepoint count > the number of chars > in a text string, then it probably contains invisible characters? Negative; there are other possibilities. Including.... Paul: > There are characters that consist of more than one codepoint - > composite versions of characters for accents. See > https://unicode-table.com/en/blocks/combining-diacritical-marks/ Yes! An example would be Hindi: ?????? Which per LC has 6 codepoints and 4 chars. Another fun accent example is using a "Zalgo" generator: H???????i????????? ????t??????h?????????e??????r???????e???????????? 68 codepoints vs 8 chars! Zalgo heaps random accents onto characters. But as you can see, many languages and notation systems have modifiers. Typically such accents combine with another character, but thanks to the Magic of Bugs you can also see them breaking free and "doing their own thing" sometimes, as if they were separate characters, by pasting some Thai or Myanmar text into an LC field and resizing that field: https://quality.livecode.com/show_bug.cgi?id=22373 On the possibility of invisible characters, there is also an LC bug which inserts one or more nulls after pasted text on Windows: https://quality.livecode.com/show_bug.cgi?id=22172 But the nulls count as characters, so the codepoint count still matches. I thought there was another category of Unicode values affected besides the combining modifiers, but if so, it's eluding me at the moment. :) Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From panos.merakos at livecode.com Mon May 10 16:24:22 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 10 May 2021 23:24:22 +0300 Subject: [ANN] This Week in LiveCode 264 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #264 here: https://bit.ly/3o8bBhk This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From dvglasgow at gmail.com Tue May 11 06:22:22 2021 From: dvglasgow at gmail.com (David V Glasgow) Date: Tue, 11 May 2021 11:22:22 +0100 Subject: Finding invisible/non printable characters in a string In-Reply-To: References: <2F464996-71D1-4B07-9BB8-A10F9E1774FC@gmail.com> Message-ID: > On 10 May 2021, at 6:23 pm, Curry Kenworthy via use-livecode wrote: > > > Another fun accent example is using a "Zalgo" generator: I set out to learn some Livecode, but instead learned about Zalgo. ? and that invisible characters have to go in the ?maybe when I have some time? drawer, with datagrids, arrays and regex. Cheers David G From keith.clarke at me.com Tue May 11 06:44:14 2021 From: keith.clarke at me.com (Keith Clarke) Date: Tue, 11 May 2021 11:44:14 +0100 Subject: LiveCode convert seconds to dateItems - year is out by 19? Message-ID: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> Hi folks, What am I doing wrong with convert tCreateDate from seconds to dateItems? I?m pulling the long files of files I created yesterday on a Mac and attempting to convert the creation date. Whatever date type I choose, LiveCode reckons yesterday was in the year 2040. Did I oversleep? Thanks Keith From alex at tweedly.net Tue May 11 08:07:01 2021 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 11 May 2021 13:07:01 +0100 Subject: LiveCode convert seconds to dateItems - year is out by 19? In-Reply-To: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> References: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> Message-ID: <65a6cb7a-b503-95a9-5c94-2f364171da7b@tweedly.net> I doubt it :-)? As a useless piece of info, it works OK for me. I'd suggest printing out the tCreateDate and "the seconds" so you can compare. Or, put the seconds into tCreateDate and convert it, just to see. Alex. On 11/05/2021 11:44, Keith Clarke via use-livecode wrote: > Hi folks, > What am I doing wrong with convert tCreateDate from seconds to dateItems? > > I?m pulling the long files of files I created yesterday on a Mac and attempting to convert the creation date. > > Whatever date type I choose, LiveCode reckons yesterday was in the year 2040. Did I oversleep? > Thanks > Keith > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Tue May 11 08:09:32 2021 From: mkoob at rogers.com (Martin Koob) Date: Tue, 11 May 2021 08:09:32 -0400 Subject: LiveCode convert seconds to dateItems - year is out by 19? In-Reply-To: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> References: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> Message-ID: <13DFF024-D5DC-436B-9DD2-AA7C323B362C@rogers.com> Hi Keith I just tried the following on mouseup convert the seconds to dateitems put it end mouseup The result is 2021,5,11,7,52,5,3 So that is correct. Where is the value in your tCreateDate variable from. Maybe there was a miscalculation there. Martin > On May 11, 2021, at 6:44 AM, Keith Clarke via use-livecode wrote: > > Hi folks, > What am I doing wrong with convert tCreateDate from seconds to dateItems? > > I?m pulling the long files of files I created yesterday on a Mac and attempting to convert the creation date. > > Whatever date type I choose, LiveCode reckons yesterday was in the year 2040. Did I oversleep? > Thanks > Keith > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at me.com Tue May 11 08:59:49 2021 From: keith.clarke at me.com (Keith Clarke) Date: Tue, 11 May 2021 13:59:49 +0100 Subject: LiveCode convert seconds to dateItems - year is out by 19? In-Reply-To: <13DFF024-D5DC-436B-9DD2-AA7C323B362C@rogers.com> References: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> <13DFF024-D5DC-436B-9DD2-AA7C323B362C@rogers.com> Message-ID: Thanks Martin & Alex, I wasn?t aware of ?the seconds? - thanks that?s behaving correctly here. Tracing back from this date conversion being OK to the tCreateDate variable. This is item 4 of the long files, which according to the docs, should be Creation date, in seconds. Bypassing the conversion, this item is the same for all the files in my target folder (some created yesterday & some weeks ago). It has the value 2212122496, which LiveCode converts (reliably!) to 2040,2,6,6,28,16,2. Printing out the long files for one of the files in the target folder shows? filename,2055,0,2212122496,1620675773,2212122496,0,501,20,600,ttxtTEXT This same weird value is being returned for the Creation Date (item 4) & Last Access date (item 6), though the Last Modified Date (item 5) looks correct. Any clues? Best, Keith > On 11 May 2021, at 13:09, Martin Koob via use-livecode wrote: > > Hi Keith > > I just tried the following > > on mouseup > > convert the seconds to dateitems > > put it > > end mouseup > > The result is 2021,5,11,7,52,5,3 So that is correct. > > Where is the value in your tCreateDate variable from. Maybe there was a miscalculation there. > > Martin > >> On May 11, 2021, at 6:44 AM, Keith Clarke via use-livecode wrote: >> >> Hi folks, >> What am I doing wrong with convert tCreateDate from seconds to dateItems? >> >> I?m pulling the long files of files I created yesterday on a Mac and attempting to convert the creation date. >> >> Whatever date type I choose, LiveCode reckons yesterday was in the year 2040. Did I oversleep? >> Thanks >> Keith >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lheaford at icloud.com Tue May 11 09:58:13 2021 From: lheaford at icloud.com (Terence Heaford) Date: Tue, 11 May 2021 14:58:13 +0100 Subject: LiveCode convert seconds to dateItems - year is out by 19? In-Reply-To: References: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> <13DFF024-D5DC-436B-9DD2-AA7C323B362C@rogers.com> Message-ID: <2577297F-BA88-4504-9B8A-8908DF2C5192@icloud.com> Could it be something to do with the base date on the mac vs the base date of live code? I believe the base date on a mac is 1970, not sure what it is in live code? Terry > On 11 May 2021, at 13:59, Keith Clarke via use-livecode wrote: > > Thanks Martin & Alex, > > I wasn?t aware of ?the seconds? - thanks that?s behaving correctly here. > > Tracing back from this date conversion being OK to the tCreateDate variable. This is item 4 of the long files, which according to the docs, should be Creation date, in seconds. > > Bypassing the conversion, this item is the same for all the files in my target folder (some created yesterday & some weeks ago). It has the value 2212122496, which LiveCode converts (reliably!) to 2040,2,6,6,28,16,2. > > Printing out the long files for one of the files in the target folder shows? > > filename,2055,0,2212122496,1620675773,2212122496,0,501,20,600,ttxtTEXT > > This same weird value is being returned for the Creation Date (item 4) & Last Access date (item 6), though the Last Modified Date (item 5) looks correct. > > Any clues? > Best, > Keith > >> On 11 May 2021, at 13:09, Martin Koob via use-livecode wrote: >> >> Hi Keith >> >> I just tried the following >> >> on mouseup >> >> convert the seconds to dateitems >> >> put it >> >> end mouseup >> >> The result is 2021,5,11,7,52,5,3 So that is correct. >> >> Where is the value in your tCreateDate variable from. Maybe there was a miscalculation there. >> >> Martin >> >>> On May 11, 2021, at 6:44 AM, Keith Clarke via use-livecode wrote: >>> >>> Hi folks, >>> What am I doing wrong with convert tCreateDate from seconds to dateItems? >>> >>> I?m pulling the long files of files I created yesterday on a Mac and attempting to convert the creation date. >>> >>> Whatever date type I choose, LiveCode reckons yesterday was in the year 2040. Did I oversleep? >>> Thanks >>> Keith >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andrew at midwestcoastmedia.com Tue May 11 10:52:31 2021 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Tue, 11 May 2021 10:52:31 -0400 Subject: AppStore rejections Message-ID: My latest update to an on-going app (5 year old project) got rejected 6 times by Apple reviewers before lucky #7 satisfied their demands. I haven?t been rejected this much since high school! Lol https://www.dropbox.com/s/en7xjkm354zv3pp/lukcy7.png?dl=1 I?m excited that LC 9.6.3rc1 should be bringing us support for App Tracking Transparency as incorrect settings there were cited as part of my first 2 rejections. I was never able to reproduce the other problem they were experiencing (which looked like network issues out of my control during their testing window) in either simulator or IRL devices. Also could never get a good response to my questions as to the events that led up to their issue (they are professional beta testers after all, seems like you could document a bug better) but eventually got approved. Finally just ?got lucky? with a sympathizing reviewer I guess? This is a reminder that I need to bill clients more for each build submission as there are SO many hoops to jump through, and those hoops change shape and location at least once or twice a year. -Andrew Bell From keith.clarke at me.com Tue May 11 11:50:22 2021 From: keith.clarke at me.com (Keith Clarke) Date: Tue, 11 May 2021 16:50:22 +0100 Subject: LiveCode convert seconds to dateItems - year is out by 19? In-Reply-To: <2577297F-BA88-4504-9B8A-8908DF2C5192@icloud.com> References: <3D08ECA7-24B4-48B4-AE21-D8A8F74ACB4D@me.com> <13DFF024-D5DC-436B-9DD2-AA7C323B362C@rogers.com> <2577297F-BA88-4504-9B8A-8908DF2C5192@icloud.com> Message-ID: According to the Dictionary "LiveCode uses midnight, January 1, 1970 as the start of the eon. Date and time functions are computed from that date.? This is the same as MacOs, according to fandom "The epoch of Mac OS X , macOS , and most Unix -based systems begins at midnight on January 1, 1970 ." This got me thinking - that this project's files may be on my Mac but courtesy of our work Google Drive via Google FileStream. And according to the wires, FileStream does strange things with creation date on hosting systems. So, I moved the project folder structure from to my Mac?s Documents folder area (ironically, also backed up - this time to iCloud) and everything is working! I?ll be glad when I finish the project and can deploy it to a standalone that run on a dedicated Raspberry pi without all the ?helpful? infrastructure! Thanks all for the help. Best, Keith > On 11 May 2021, at 14:58, Terence Heaford via use-livecode wrote: > > Could it be something to do with the base date on the mac vs the base date of live code? > > I believe the base date on a mac is 1970, not sure what it is in live code? > > Terry > >> On 11 May 2021, at 13:59, Keith Clarke via use-livecode wrote: >> >> Thanks Martin & Alex, >> >> I wasn?t aware of ?the seconds? - thanks that?s behaving correctly here. >> >> Tracing back from this date conversion being OK to the tCreateDate variable. This is item 4 of the long files, which according to the docs, should be Creation date, in seconds. >> >> Bypassing the conversion, this item is the same for all the files in my target folder (some created yesterday & some weeks ago). It has the value 2212122496, which LiveCode converts (reliably!) to 2040,2,6,6,28,16,2. >> >> Printing out the long files for one of the files in the target folder shows? >> >> filename,2055,0,2212122496,1620675773,2212122496,0,501,20,600,ttxtTEXT >> >> This same weird value is being returned for the Creation Date (item 4) & Last Access date (item 6), though the Last Modified Date (item 5) looks correct. >> >> Any clues? >> Best, >> Keith >> >>> On 11 May 2021, at 13:09, Martin Koob via use-livecode wrote: >>> >>> Hi Keith >>> >>> I just tried the following >>> >>> on mouseup >>> >>> convert the seconds to dateitems >>> >>> put it >>> >>> end mouseup >>> >>> The result is 2021,5,11,7,52,5,3 So that is correct. >>> >>> Where is the value in your tCreateDate variable from. Maybe there was a miscalculation there. >>> >>> Martin >>> >>>> On May 11, 2021, at 6:44 AM, Keith Clarke via use-livecode wrote: >>>> >>>> Hi folks, >>>> What am I doing wrong with convert tCreateDate from seconds to dateItems? >>>> >>>> I?m pulling the long files of files I created yesterday on a Mac and attempting to convert the creation date. >>>> >>>> Whatever date type I choose, LiveCode reckons yesterday was in the year 2040. Did I oversleep? >>>> Thanks >>>> Keith >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue May 11 12:42:14 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 May 2021 11:42:14 -0500 Subject: AppStore rejections In-Reply-To: References: Message-ID: <1795c4eba70.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> And then they light them. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 11, 2021 9:55:09 AM Andrew at MidWest Coast Media via use-livecode wrote: > > This is a reminder that I need to bill clients more for each build > submission as there are SO many hoops to jump through, and those hoops > change shape and location at least once or twice a year. From curry at pair.com Tue May 11 15:34:33 2021 From: curry at pair.com (Curry Kenworthy) Date: Tue, 11 May 2021 15:34:33 -0400 Subject: Finding invisible/non printable characters in a string In-Reply-To: References: Message-ID: David: > I set out to learn some Livecode, but instead learned about Zalgo. Patience, dear chap! :) Indeed you learned a relevant fact about Zalgo, and also Hindi, to demonstrate the answer to your first assumption and first question: > Would I be right in thinking if codepoint count > the number of chars > in a text string, then it probably contains invisible characters? I'll try to remember that for you, answering simply "No" might be preferable to "No, and here's the reason why, along with some proof." (But I may still need to mention the reason for the benefit of others.) > and that invisible characters have to go in the ?maybe when I have > some time? drawer, with datagrids, arrays and regex. I would have the same response ("negative") for this new assumption. And if I ended it there, just "no" with no reason, it might be strange! So here's why: this list still exists, you and I are here. Many people. Answering your first question did not preclude answering your second. I don't see any reason why we might not be able to squeeze that in.... Once again, I'm following in Paul's accurate footsteps: > I think the best way is to scan the codepoints looking for > codePointToNum values that are 0-31 (exclude tab and cr/lfs > if you like) and 127 (DEL). There may be some others in the > 128-255 range that are not printable. To build on that answer, usually I would aim to use regex. (Unless you know what type of text and which potential invisible chars you are expecting in your particular app; for 1 or 2 I'd use normal replace.) More specifically, there are named Unicode categories implemented in regex. I would use those whenever possible. That way most of the hard work is already done for you, rather than painstakingly building up a list of possible chars and ranges from scratch for both ANSI and Unicode. But you should expect to tweak an expression for your purposes! I'll stop there for now. Too much info, or not enough? I have to admit that I love languages, scripts, formats, Unicode, and working with LC texts and fields! Always a fascinating subject. Thanks for bringing it up. Back to work, take care everyone.... Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From alex at tweedly.net Tue May 11 16:22:07 2021 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 11 May 2021 21:22:07 +0100 Subject: Bug, feature, or just something I need to program around? Message-ID: <9b52dcf0-cf20-817b-c412-6863e62a99b4@tweedly.net> In a LC single line field (MacOS), the keys shift-cmd-rightarrow will select from the current position to the end of the line, and add that to the selection. BUT if I TAB into the field the cursor is initially at the start of the field and the key sequence above will move the cursor to the end *without* selecting the characters. At that point, shift-cmd-leftarrow will move it back to the start, still without selecting any characters. But if you do "something else" (e.g. left arrow, insert a char, delete a char, ...) then normal behaviour resumes. If you click into the field, everything behaves itself. Feels to me like a bug, but I'd be happy to be corrected. And, if I need to - any suggestions how I could script around it ? Thanks, Alex. From bduck at mac.com Wed May 12 01:16:21 2021 From: bduck at mac.com (Brian K. Duck) Date: Wed, 12 May 2021 01:16:21 -0400 Subject: use-livecode Digest, Vol 212, Issue 13 In-Reply-To: References: Message-ID: Can you share more about your standalone settings to make this happen? Sent from my iPad, Brian > On May 11, 2021, at 12:03 PM, use-livecode-request at lists.runrev.com wrote: > > I?ll be glad when I finish the project and can deploy it to a standalone that run on a dedicated Raspberry pi without all the ?helpful? infrastructure! > > Thanks all for the help. > Best, > Keith From keith.clarke at me.com Wed May 12 01:21:49 2021 From: keith.clarke at me.com (Keith Clarke) Date: Wed, 12 May 2021 06:21:49 +0100 Subject: use-livecode Digest, Vol 212, Issue 13 In-Reply-To: References: Message-ID: <97BEA0EA-2949-4154-BD48-AC1DDF855CAF@me.com> I will do when I attempt to climb that new learning curve! Best, Keith > On 12 May 2021, at 06:17, Brian K. Duck via use-livecode wrote: > > ?Can you share more about your standalone settings to make this happen? > > Sent from my iPad, > Brian > >> On May 11, 2021, at 12:03 PM, use-livecode-request at lists.runrev.com wrote: >> >> I?ll be glad when I finish the project and can deploy it to a standalone that run on a dedicated Raspberry pi without all the ?helpful? infrastructure! >> >> Thanks all for the help. >> Best, >> Keith > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Wed May 12 04:03:42 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Wed, 12 May 2021 09:03:42 +0100 Subject: Bug, feature, or just something I need to program around? In-Reply-To: <9b52dcf0-cf20-817b-c412-6863e62a99b4@tweedly.net> References: <9b52dcf0-cf20-817b-c412-6863e62a99b4@tweedly.net> Message-ID: Hi Alex, what sequence are you trying to do that won?t work? If you tab into a field and then cmd-arrow (right or left) I think it restores the ?selection? behavior you are looking for ie. you can then shift-cmd-right or left to select the chars. Would that be a work-around? > On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode wrote: > > In a LC single line field (MacOS), the keys shift-cmd-rightarrow will select from the current position to the end of the line, and add that to the selection. > > BUT if I TAB into the field the cursor is initially at the start of the field and the key sequence above will move the cursor to the end *without* selecting the characters. > > At that point, shift-cmd-leftarrow will move it back to the start, still without selecting any characters. But if you do "something else" (e.g. left arrow, insert a char, delete a char, ...) then normal behaviour resumes. If you click into the field, everything behaves itself. > > Feels to me like a bug, but I'd be happy to be corrected. > > And, if I need to - any suggestions how I could script around it ? > > Thanks, > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed May 12 08:19:03 2021 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Wed, 12 May 2021 13:19:03 +0100 Subject: Bug, feature, or just something I need to program around? In-Reply-To: References: <9b52dcf0-cf20-817b-c412-6863e62a99b4@tweedly.net> Message-ID: on openField select char 0 of me end openField On Wed, 12 May 2021 at 09:03, Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Alex, what sequence are you trying to do that won?t work? If you tab > into a field and then cmd-arrow (right or left) I think it restores the > ?selection? behavior you are looking for ie. you can then shift-cmd-right > or left to select the chars. Would that be a work-around? > > > On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > In a LC single line field (MacOS), the keys shift-cmd-rightarrow will > select from the current position to the end of the line, and add that to > the selection. > > > > BUT if I TAB into the field the cursor is initially at the start of the > field and the key sequence above will move the cursor to the end *without* > selecting the characters. > > > > At that point, shift-cmd-leftarrow will move it back to the start, still > without selecting any characters. But if you do "something else" (e.g. left > arrow, insert a char, delete a char, ...) then normal behaviour resumes. If > you click into the field, everything behaves itself. > > > > Feels to me like a bug, but I'd be happy to be corrected. > > > > And, if I need to - any suggestions how I could script around it ? > > > > Thanks, > > > > Alex. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Wed May 12 08:25:36 2021 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 12 May 2021 13:25:36 +0100 Subject: Bug, feature, or just something I need to program around? In-Reply-To: References: <9b52dcf0-cf20-817b-c412-6863e62a99b4@tweedly.net> Message-ID: <90c84124-dcbf-fd07-e5c5-7ed452fe7567@tweedly.net> Thanks Mark. Yes, it is in a sense a workaround - but it's a workaround the user see/does. I was hoping to avoid the "surprise" when this one common case doesn't do what she/he would expect. Oh - and I've just found the workaround > on openfield > ?? select the selectedchunk > end openfield I'll open a bug report tonight, unless I can think of a reason why this behaviour is an advantage. btw - many apps, particularly Apple's own apps for Mac, follow a different method. Tabbing into a single-line field will auto-select the entire field (multi-line fields don't), while clicking into them does not. I can't find a way to do that in LC - you get an 'openfield' message but there's no obvious way to tell whether the field was opened by a TAB or a click. Alex. On 12/05/2021 09:03, Mark Smith wrote: > Hi Alex, what sequence are you trying to do that won?t work? If you tab into a field and then cmd-arrow (right or left) I think it restores the ?selection? behavior you are looking for ie. you can then shift-cmd-right or left to select the chars. Would that be a work-around? > >> On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode wrote: >> >> In a LC single line field (MacOS), the keys shift-cmd-rightarrow will select from the current position to the end of the line, and add that to the selection. >> >> BUT if I TAB into the field the cursor is initially at the start of the field and the key sequence above will move the cursor to the end *without* selecting the characters. >> >> At that point, shift-cmd-leftarrow will move it back to the start, still without selecting any characters. But if you do "something else" (e.g. left arrow, insert a char, delete a char, ...) then normal behaviour resumes. If you click into the field, everything behaves itself. >> >> Feels to me like a bug, but I'd be happy to be corrected. >> >> And, if I need to - any suggestions how I could script around it ? >> >> Thanks, >> >> Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Wed May 12 09:38:24 2021 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 12 May 2021 09:38:24 -0400 Subject: Problems with text data fields pulling from SQL Message-ID: I am pulling data from an Azure MS SQL database using an ODBC connection. All data comes across just fine EXCEPT for data with field types of NVARCHAR(Max). When those fields arrive to LC, it shows up as a question mark "?". Any reason why this would happen? Any resolution to this? Best regards, SKIP From paul at researchware.com Wed May 12 10:11:26 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 May 2021 10:11:26 -0400 Subject: Problems with text data fields pulling from SQL In-Reply-To: References: Message-ID: Possibly an encoding issue? If the text in the database was in Unicode or some non-ASCII encoding, then it may appear as one or more question marks in LC unless textEncode/textDecode (I forget which would apply) is used to translate it from the database encoding On 5/12/2021 9:38 AM, Skip Kimpel via use-livecode wrote: > I am pulling data from an Azure MS SQL database using an ODBC connection. > All data comes across just fine EXCEPT for data with field types of > NVARCHAR(Max). > > When those fields arrive to LC, it shows up as a question mark "?". > > Any reason why this would happen? Any resolution to this? > > Best regards, > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed May 12 10:26:31 2021 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 12 May 2021 15:26:31 +0100 Subject: Bug, feature, or just something I need to program around? In-Reply-To: References: <9b52dcf0-cf20-817b-c412-6863e62a99b4@tweedly.net> Message-ID: <7e1d9d6c-5bba-1800-bb99-b44b37485ffb@tweedly.net> Thanks Sean - but the text cursor shouldn't always be at char 0. It is the first time you visit the field, but if you ?- visit the field ?- move the cursor within it ?- go off somewhere else ?- and later TAB back into that field, the text cursor should be restored to wherever you left it. That is the current behaviour - the only problem is this cmd-shift-arrow failing to select text. And it turns out that "select the selectedchunk" - which sounds like it should do nothing - actually leaves the cursor in the correct place, *and* fixes the cmd-shift-arrow selection problem. Thanks again, Alex. On 12/05/2021 13:19, Sean Cole (Pi) via use-livecode wrote: > on openField > select char 0 of me > end openField > > On Wed, 12 May 2021 at 09:03, Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Alex, what sequence are you trying to do that won?t work? If you tab >> into a field and then cmd-arrow (right or left) I think it restores the >> ?selection? behavior you are looking for ie. you can then shift-cmd-right >> or left to select the chars. Would that be a work-around? >> >>> On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> In a LC single line field (MacOS), the keys shift-cmd-rightarrow will >> select from the current position to the end of the line, and add that to >> the selection. >>> BUT if I TAB into the field the cursor is initially at the start of the >> field and the key sequence above will move the cursor to the end *without* >> selecting the characters. >>> At that point, shift-cmd-leftarrow will move it back to the start, still >> without selecting any characters. But if you do "something else" (e.g. left >> arrow, insert a char, delete a char, ...) then normal behaviour resumes. If >> you click into the field, everything behaves itself. >>> Feels to me like a bug, but I'd be happy to be corrected. >>> >>> And, if I need to - any suggestions how I could script around it ? >>> >>> Thanks, >>> >>> Alex. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Wed May 12 13:50:04 2021 From: jiml at netrin.com (Jim Lambert) Date: Wed, 12 May 2021 10:50:04 -0700 Subject: Bug, feature, or just something I need to program around? In-Reply-To: References: Message-ID: <94DE28D2-602F-4FFD-B5FB-A16418228D89@netrin.com> > In a LC single line field (MacOS), the keys shift-cmd-rightarrow will > select from the current position to the end of the line, and add that to > the selection. > > BUT if I TAB into the field the cursor is initially at the start of the > field and the key sequence above will move the cursor to the end > *without* selecting the characters. > > At that point, shift-cmd-leftarrow will move it back to the start, still > without selecting any characters. But if you do "something else" (e.g. > left arrow, insert a char, delete a char, ...) then normal behaviour > resumes. If you click into the field, everything behaves itself. Alex, If you go to Apple's Notes and move from note to note, you'll see somewhat similar behaviors. So perhaps it's expected. Jim Lambert From marksmithhfx at gmail.com Wed May 12 14:17:54 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Wed, 12 May 2021 19:17:54 +0100 Subject: "select the selectedchunk" In-Reply-To: <7e1d9d6c-5bba-1800-bb99-b44b37485ffb@tweedly.net> References: <9b52dcf0-cf20-817b-c412-6863e62a99b4@tweedly.net> <7e1d9d6c-5bba-1800-bb99-b44b37485ffb@tweedly.net> Message-ID: <49364479-D5CC-4044-B464-5AF02A7BC6E0@gmail.com> Remarkable. It completely changes the ?selection? behavior of the cursor when cmd-shift-arrow is typed. > On May 12, 2021, at 3:26 PM, Alex Tweedly via use-livecode wrote: > > select the selectedchunk From alex at tweedly.net Wed May 12 16:02:16 2021 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 12 May 2021 21:02:16 +0100 Subject: Bug, feature, or just something I need to program around? In-Reply-To: <94DE28D2-602F-4FFD-B5FB-A16418228D89@netrin.com> References: <94DE28D2-602F-4FFD-B5FB-A16418228D89@netrin.com> Message-ID: I don't follow you Jim. Each Note in the Notes app is a multi-line field, and they all behave just the same as multi-line fields in LC (i.e what I think of as "properly" - TABbing into the field positions the cursor with nothing selected, and an immediate cmd-shift-arrow will select all characters after/before the cursor). (Though I couldn't find a way to TAB between Notes ??) The only single line field I can see in the Notes app is the search box - and it has the same behaviour as single-line fields in Calendar, Contacts, etc. - i.e. TABbing into the single line field pre-selects the whole field, while clicking into it doesn't select anything. That seems consistent between Apple's apps that I can find, and both Safari and Chrome. Alex. On 12/05/2021 18:50, Jim Lambert via use-livecode wrote: >> In a LC single line field (MacOS), the keys shift-cmd-rightarrow will >> select from the current position to the end of the line, and add that to >> the selection. >> >> BUT if I TAB into the field the cursor is initially at the start of the >> field and the key sequence above will move the cursor to the end >> *without* selecting the characters. >> >> At that point, shift-cmd-leftarrow will move it back to the start, still >> without selecting any characters. But if you do "something else" (e.g. >> left arrow, insert a char, delete a char, ...) then normal behaviour >> resumes. If you click into the field, everything behaves itself. > Alex, > > If you go to Apple's Notes and move from note to note, you'll see somewhat similar behaviors. > So perhaps it's expected. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed May 12 16:30:18 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 12 May 2021 15:30:18 -0500 Subject: Bug, feature, or just something I need to program around? In-Reply-To: References: <94DE28D2-602F-4FFD-B5FB-A16418228D89@netrin.com> Message-ID: Try setting the autoTab property of the field to true. When I do that, tabbing into the field selects all the text, but clicking does not. And shift-arrow does select text after that. LC seems to be a little backward from what you expect. On 5/12/21 3:02 PM, Alex Tweedly via use-livecode wrote: > I don't follow you Jim. > > Each Note in the Notes app is a multi-line field, and they all behave just the same as > multi-line fields in LC (i.e what I think of as "properly" - TABbing into the field positions > the cursor with nothing selected, and an immediate cmd-shift-arrow will select all characters > after/before the cursor). -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kevin at livecode.com Thu May 13 04:21:07 2021 From: kevin at livecode.com (Kevin Miller) Date: Thu, 13 May 2021 09:21:07 +0100 Subject: All new Kognition beta - LiveCode all-in Knowledgebase Message-ID: Hi Folks, As some of you may be aware, LiveCode has a stake in a start-up business, Kognition. Kognition have a very small team building an artificially intelligent way of working with information (using LiveCode). We have a beta/demo version which we thought could be interesting to share with you. What we?ve done is connected it up to the various sources of LiveCode information we have, including the mailing list, forums, documentation etc so you can find answers to a LiveCode related question as you are scripting or building an app. Everything is cloud based so it stays up to date as new posts occur or documentation becomes available. You can see how it works in this tour here: https://youtu.be/Iu5KpZVhwrM If you?re interested in trying it and have a little time to give us some feedback, the beta/demo program is free. We don?t allow you to import your own files in this version, just use the LiveCode data set that we have set up. Drop a line to support at livecode.com and we will get you signed up to try it out. At the end of the beta program this may potentially become a paid resource or integrated in some way if there is sufficient interest. And of course we are very interested in hearing about ways you might be able to use something like this in your own business or with clients, accessing other knowledge bases or bringing together specific sources of information. Kognition has the potential to be used in a wide variety of settings, anywhere where there is a information sitting in one or more system that you need to find answers from regularly. Many thanks, Kevin Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ LiveCode: Develop Yourself From benr_mc at cogapp.com Thu May 13 06:06:21 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 13 May 2021 11:06:21 +0100 Subject: Problems with text data fields pulling from SQL In-Reply-To: References: Message-ID: <677a53a5-f26c-5798-164c-e2f63d1d7c69@cogapp.com> This. NVARCHAR is for Unicode strings. You may be able to deal with it by modifying the ODBC DSN or the query to do a conversion before it reaches LiveCode. Otherwise, IIRC you need to use revDatabaseColumnNumbered and go row by row (rather than revDataFromQuery); taking the data and using textDecode to get it out of (probably) UTF-8. Some experimentation may be needed! Ben On 12/05/2021 15:11, Paul Dupuis via use-livecode wrote: > Possibly an encoding issue? If the text in the database was in Unicode or some > non-ASCII encoding, then it may appear as one or more question marks in LC > unless textEncode/textDecode (I forget which would apply) is used to translate > it from the database encoding > > > On 5/12/2021 9:38 AM, Skip Kimpel via use-livecode wrote: >> I am pulling data from an Azure MS SQL database using an ODBC connection. >> All data comes across just fine EXCEPT for data with field types of >> NVARCHAR(Max). >> >> When those fields arrive to LC, it shows up as a question mark "?". >> >> Any reason why this would happen??? Any resolution to this? >> >> Best regards, >> >> SKIP >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Thu May 13 09:57:12 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 13 May 2021 14:57:12 +0100 Subject: the systemversion shows wrong version # on Mac In-Reply-To: References: <005e01d74338$a43e39d0$ecbaad70$@kestner.de> Message-ID: Do we need a "detailed systemversion" ? On 07/05/2021 18:07, panagiotis merakos via use-livecode wrote: > Hello all, > > Yeap, what Phil said: > > function mySystemVersion > get shell("sw_vers -productVersion") > return it > end mySystemVersion > > This will return 11.2.3 on a Mac running Big Sur 11.2.3 > > See https://quality.livecode.com/show_bug.cgi?id=22887 > > Cheers, > Panos > -- > > On Fri, 7 May 2021 at 19:43, Phil Davis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> If you want the actual macOS system version, you can use the 'sw_vers' >> shell command. >> >> phils-macbook-pro:~ pdslabs2$ sw_vers -productVersion >> 10.15.7 >> >> or >> >> phils-macbook-pro:~ pdslabs2$ sw_vers >> ProductName: Mac OS X >> ProductVersion: 10.15.7 >> BuildVersion: 19H1030 >> >> Phil Davis >> >> >> >> On 5/7/21 7:25 AM, Andre Garzia via use-livecode wrote: >>> Tiemo, >>> >>> This is not a bug. >>> >>> MacOS Big Sur will identify itself as both 10.16.0 and 11.x. This is by >> design so that scripts checking for version compatibility can see Big Sur >> as just a minor version of 10.x >>> >>> The version seen depends on both which SDK was used to compile the app, >> and also on the value of the environment variable called >> SYSTEM_VERSION_COMPAT. >>> >>> Best >>> Andre >>> >>>> On 7 May 2021, at 13:00, Tiemo via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hello, >>>> >>>> >>>> >>>> I am on macOS 11.2.3 and the systemversion shows 10.16.0? >>>> >>>> It shows the same at least going back to 8.1.7 >>>> >>>> >>>> >>>> Do I have to multiply the systemversion by 1.1053 to get the real one? >>>> >>>> >>>> >>>> Tiemo >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> -- >> Phil Davis >> 503-307-4363 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Thu May 13 10:02:03 2021 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 13 May 2021 15:02:03 +0100 Subject: Bug, feature, or just something I need to program around? In-Reply-To: References: <94DE28D2-602F-4FFD-B5FB-A16418228D89@netrin.com> Message-ID: <195ae003-75dc-d1ca-706c-9be0216da699@tweedly.net> Thanks Jacque. 'autoTab' does indeed give a behaviour the same as I see in Apple's own apps (for single line fields, differs for multi-line fields), so I'll go with that for now. And when I've got this all sorted out, I'll submit the issues as bug reports (3 I think, so far) and report them back here on the list for completeness. Thank you all, Alex. From sean at pidigital.co.uk Thu May 13 10:25:51 2021 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 13 May 2021 15:25:51 +0100 Subject: the systemversion shows wrong version # on Mac In-Reply-To: References: <005e01d74338$a43e39d0$ecbaad70$@kestner.de> Message-ID: On Thu, 13 May 2021 at 14:57, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Do we need a "detailed systemversion" ? > +1 Great idea. For Windows also this could return from ' systeminfo | findstr /B /C:"OS Name" /C:"OS Version" ' which would give the build number instead of just NT 10.0. eg: OS Name: Microsoft Windows 10 Pro OS Version: 10.0.18363 N/A Build 18363 From MikeKerner at roadrunner.com Thu May 13 12:47:36 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 13 May 2021 12:47:36 -0400 Subject: navbar pre hiliteChanged Message-ID: How do you handle the situation where a user taps on the navBar but you want to intercept and cancel it? Example: User clicks on the navBar to switch cards, but there is an error on the existing card, so the navigation and the hilite changing should be stopped. From jiml at netrin.com Thu May 13 15:25:09 2021 From: jiml at netrin.com (Jim Lambert) Date: Thu, 13 May 2021 12:25:09 -0700 Subject: Bug, feature, or just something I need to program around? In-Reply-To: References: Message-ID: <92300D85-ECC6-4318-83CC-2A8743CF4E4C@netrin.com> Hi Alex, > I don't follow you Jim. You wrote: > if I TAB into the field the cursor is initially at the start of the > field and the key sequence above will move the cursor to the end > *without* selecting the characters. In Notes if you are in one note then select a different note and execute Shift-Command-Right Arrow, you will see the same behavior. The insertion point moves to the end of the note without selecting any text. I merely pointed out this behavior is somewhat akin to what you see in LiveCode as you move from field to field with TAB as long as the autoTab property is false. With autoTab set to true the entire contents of the field is selected. > if I TAB into the field the cursor is initially at the start of the field Here the field 'remembers' its previous insertion point during the session rather than always appearing before char 1. Glad Jacque's autoTab tip works for you! Jim Lambert From MikeKerner at roadrunner.com Thu May 13 15:43:56 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 13 May 2021 15:43:56 -0400 Subject: navbar pre hiliteChanged In-Reply-To: References: Message-ID: memo for the next person who discovers this thread: 1. as has been previously discussed in other threads, the navigation bar receives the hiliteChanged message even if the hilite does not change (which happens when the user taps on the currently hilited segment) 2. in my testing in 9.6.x, if you set/reset the hilitedItem or the hilitedItemName early enough in the handler, most of the time that will take effect before the screen redraws, so the user will not see the blink from the original tap. it's not perfect, but it might be good enough. On Thu, May 13, 2021 at 12:47 PM Mike Kerner wrote: > How do you handle the situation where a user taps on the navBar but you > want to intercept and cancel it? > Example: User clicks on the navBar to switch cards, but there is an error > on the existing card, so the navigation and the hilite changing should be > stopped. > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From tom at makeshyft.com Thu May 13 17:29:18 2021 From: tom at makeshyft.com (Tom Glod) Date: Thu, 13 May 2021 17:29:18 -0400 Subject: All new Kognition beta - LiveCode all-in Knowledgebase In-Reply-To: References: Message-ID: Hey Kevin .....thanks for the demo and the food for thought. Looks interesting and could be quite useful. I will look more closely at this in the summer. On Thu, May 13, 2021 at 4:21 AM Kevin Miller via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Folks, > > > > As some of you may be aware, LiveCode has a stake in a start-up business, > Kognition. Kognition have a very small team building an artificially > intelligent way of working with information (using LiveCode). > > > > We have a beta/demo version which we thought could be interesting to share > with you. What we?ve done is connected it up to the various sources of > LiveCode information we have, including the mailing list, forums, > documentation etc so you can find answers to a LiveCode related question as > you are scripting or building an app. Everything is cloud based so it stays > up to date as new posts occur or documentation becomes available. > > > > You can see how it works in this tour here: > > https://youtu.be/Iu5KpZVhwrM > > > > If you?re interested in trying it and have a little time to give us some > feedback, the beta/demo program is free. We don?t allow you to import your > own files in this version, just use the LiveCode data set that we have set > up. Drop a line to support at livecode.com and we will get you signed up to > try it out. At the end of the beta program this may potentially become a > paid resource or integrated in some way if there is sufficient interest. > And of course we are very interested in hearing about ways you might be > able to use something like this in your own business or with clients, > accessing other knowledge bases or bringing together specific sources of > information. Kognition has the potential to be used in a wide variety of > settings, anywhere where there is a information sitting in one or more > system that you need to find answers from regularly. > > > > Many thanks, > > > > Kevin > > > > Kevin Miller ~ kevin at livecode.com ~ http://www.livecode.com/ > > LiveCode: Develop Yourself > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From alex at tweedly.net Thu May 13 18:23:56 2021 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 13 May 2021 23:23:56 +0100 Subject: Bug, feature, or just something I need to program around? In-Reply-To: <92300D85-ECC6-4318-83CC-2A8743CF4E4C@netrin.com> References: <92300D85-ECC6-4318-83CC-2A8743CF4E4C@netrin.com> Message-ID: On 13/05/2021 20:25, Jim Lambert via use-livecode wrote: > In Notes if you are in one note then select a different note and execute Shift-Command-Right Arrow, you will see the same behavior. The insertion point moves to the end of the note without selecting any text. I don't see that. If I move from one note to another by clicking on the 'summary' for it, I then need to either click into the Note itself, or use the right-arrow to get into it. In either case, cmd-shift-arrow immediately does select the text.? (Notes version 4.5, 876.1, on MacOS 1.13.6) Is there maybe another way to move from Note to Note that I haven't found ? Could you say *exactly* what you mean when you say "in one note then select a different note"? In any case, Apple's HIG doesn't (AFAICS) specify anything, and autotab set to true gives me the behaviour I expect/like (for single-line fields, I will leave it false for multi-line fields). It's mildly irritating that the selection anomaly exists, and also irritating that two behaviour changes are bundled into a single setting (autotab true = text pre-selection AND changes how "return"/"enter" are treated). When I'm convinced I've got all the cases covered, I'll create a bug report for the former, and an enhancement request (for openfield to provide more info) to allow us to program around the latter. Thanks, Alex. From kee.nethery at elloco.com Fri May 14 11:27:01 2021 From: kee.nethery at elloco.com (Kee Nethery) Date: Fri, 14 May 2021 08:27:01 -0700 Subject: Really need In App Purchasing for macOS Message-ID: <18CB9B8A-4E99-4C5E-904C-3E414DAE0F60@elloco.com> Any suggestions? Each month my app gets 800+ views on the App Store and 1 purchase. With IAP I could convert so many more into paying customers. Any suggestions on how to add IAP to a Mac app? Kee Nethery From harrison at all-auctions.com Fri May 14 12:32:33 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 14 May 2021 12:32:33 -0400 Subject: Really need In App Purchasing for macOS In-Reply-To: <18CB9B8A-4E99-4C5E-904C-3E414DAE0F60@elloco.com> References: <18CB9B8A-4E99-4C5E-904C-3E414DAE0F60@elloco.com> Message-ID: <0DB9002B-8947-42C9-912C-31BE071F16E2@all-auctions.com> Hi Kee, IAP in the Apple World only applies to iOS apps in their environment for now as I understand it. That may change in the future as Apple starts making iOS Apps available for macOS. To implement what you want, you would probably have to add a link to your website in your Mac App. At your website you can offer the user a chance to upgrade to another version of your app. (Of course Apple may not like this because at this point you might be cutting them out of the equation and it might violate your terms with Apple. You will have to research that.) You may even just refer them to another Mac App on the Apple Store which would not violate anything in your terms because Apple will still be able to take their cut. The old strategy was to give the users a cheap or free version of your product, and then provide a link to the Pro-version or SuperPro or Ultra-Pro version of your software with more capability each time. Please let us know how you solve your problem, and what extra success you had with the strategy. Good luck! Rick > On May 14, 2021, at 11:27 AM, Kee Nethery via use-livecode wrote: > > Any suggestions? Each month my app gets 800+ views on the App Store and 1 purchase. With IAP I could convert so many more into paying customers. Any suggestions on how to add IAP to a Mac app? > > Kee Nethery From devin_asay at byu.edu Fri May 14 12:36:42 2021 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 14 May 2021 16:36:42 +0000 Subject: Stacks not removed from memory? In-Reply-To: <148A186D-E0AE-4125-B982-6B52DBB12681@gmail.com> References: <148A186D-E0AE-4125-B982-6B52DBB12681@gmail.com> Message-ID: <4599BAC3-3EB4-4CB9-ADC7-11D3D4542BF9@byu.edu> Marty, I had intended to respond to this, but got busy with other things. I have seen what you?re describing on all of the recent releases?9.5 - 9.6.x; i.e., a stack with destroyStack set to true, then closed, is not always removed from memory. Sometimes this has caused an infinite loop with the Save - Purge - Cancel dialog. I would report it, but I haven?t been able to come up with a reliable recipe. It?s a problem that I would like to nail down and squash. - Devin > On Apr 28, 2021, at 12:40 PM, Marty Knapp via use-livecode wrote: > > Is anybody else experiencing with LC 9.6.2 rc5 that stacks with destroyStack set to true are not always removed from memory when they're closed? It's been happening to me in the IDE and standalones but not every time. And even when I specifically go to another stack, set that stack to the defaultStack, that any script with ?of this stack? throws an error because it thinks "this stack" it's the stack I just closed. > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From ambassador at fourthworld.com Fri May 14 13:05:45 2021 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 14 May 2021 10:05:45 -0700 Subject: Stacks not removed from memory? In-Reply-To: <4599BAC3-3EB4-4CB9-ADC7-11D3D4542BF9@byu.edu> References: <4599BAC3-3EB4-4CB9-ADC7-11D3D4542BF9@byu.edu> Message-ID: Devin Asay wrote: > I have seen what you?re describing on all of the recent releases?9.5 - > 9.6.x; i.e., a stack with destroyStack set to true, then closed, is > not always removed from memory. Sometimes this has caused an infinite > loop with the Save - Purge - Cancel dialog. I would report it, but I > haven?t been able to come up with a reliable recipe. It?s a problem > that I would like to nail down and squash. Is this to avoid stack name conflicts, or is there some other reason to use this feature? Because if it's just the stack name conflict thang, I'd rather we solve that at the root by being done with that IDE-imposed limitation that doesn't actually exist in the engine: https://quality.livecode.com/show_bug.cgi?id=1061 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From martyknappster at gmail.com Fri May 14 13:48:54 2021 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 14 May 2021 10:48:54 -0700 Subject: Stacks not removed from memory? In-Reply-To: References: <4599BAC3-3EB4-4CB9-ADC7-11D3D4542BF9@byu.edu> Message-ID: <44C406DD-8F6C-4114-869D-6A044846903B@gmail.com> In my case it's not a name conflict. Lets say I have a main stack "XYZ" and then I query a separate Preference stack: put the cpCustomProperty of stack "full_path_to_pref_stack" into tPref close stack "pref_stack" (my preference stack has destroyStack set to true) Now thinking that I'm back in my main stack "XYZ" I do something like: put tPref into fld "123" of this stack This worked fine for me for years. In LC 9.6.2 rc 5, it would fail most of the time. Curious, I inserted code to find out what LC thought was "this stack" only to discover that *sometimes* it's the preference stack that I just closed. Then after closing the preference stack, I tried "go stack "XYZ" and "set the default stack to "XYZ" But "this stack" would still (most of the time) report my supposedly closed preference stack. So now I'm having to query for revLoadedStacks and if my preference stack is listed then I delete it from memory. I did file a bug report (#23194 ) but as it does not always happen I have not provided a test stack. Marty > On May 14, 2021, at 10:05 AM, Richard Gaskin via use-livecode wrote: > > Devin Asay wrote: > > > I have seen what you?re describing on all of the recent releases?9.5 - > > 9.6.x; i.e., a stack with destroyStack set to true, then closed, is > > not always removed from memory. Sometimes this has caused an infinite > > loop with the Save - Purge - Cancel dialog. I would report it, but I > > haven?t been able to come up with a reliable recipe. It?s a problem > > that I would like to nail down and squash. > > Is this to avoid stack name conflicts, or is there some other reason to use this feature? > > Because if it's just the stack name conflict thang, I'd rather we solve that at the root by being done with that IDE-imposed limitation that doesn't actually exist in the engine: > > https://quality.livecode.com/show_bug.cgi?id=1061 > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > From ahsoftware at sonic.net Fri May 14 13:52:50 2021 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 14 May 2021 10:52:50 -0700 Subject: Stacks not removed from memory? In-Reply-To: References: <4599BAC3-3EB4-4CB9-ADC7-11D3D4542BF9@byu.edu> Message-ID: <6911bb51-6a36-b8cb-71ed-d9a078662c16@sonic.net> On 5/14/21 10:05 AM, Richard Gaskin via use-livecode wrote: > Is this to avoid stack name conflicts, or is there some other reason to > use this feature? > > Because if it's just the stack name conflict thang, I'd rather we solve > that at the root by being done with that IDE-imposed limitation that > doesn't actually exist in the engine: > > https://quality.livecode.com/show_bug.cgi?id=1061 > LOL. That bug report (still driving developers up the wall after 18 years) has my favorite team comment (#13): Re-assigning to engine team for future re-assignment. -- Mark Wieder ahsoftware at gmail.com From Bernd.Niggemann at uni-wh.de Fri May 14 13:59:17 2021 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Fri, 14 May 2021 17:59:17 +0000 Subject: Stacks not removed from memory? Message-ID: <1062FA88-AD87-48BF-AE3B-38A60225B498@uni-wh.de> If the Project Browser is open then it may be related to https://quality.livecode.com/show_bug.cgi?id=22460 Kind regards Bern From martyknappster at gmail.com Fri May 14 14:02:11 2021 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 14 May 2021 11:02:11 -0700 Subject: Stacks not removed from memory? In-Reply-To: <1062FA88-AD87-48BF-AE3B-38A60225B498@uni-wh.de> References: <1062FA88-AD87-48BF-AE3B-38A60225B498@uni-wh.de> Message-ID: <40AD433F-7914-4A18-9D9D-749A6E7AB9B7@gmail.com> It?s happening for me in standalone. And I should mention that my tests were on Mac only (Mojave). Marty > On May 14, 2021, at 10:59 AM, Niggemann, Bernd via use-livecode wrote: > > If the Project Browser is open then it may be related to > > https://quality.livecode.com/show_bug.cgi?id=22460 > > Kind regards > Bern > _______________________________________________ From matthias_livecode_150811 at m-r-d.de Fri May 14 14:12:21 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 14 May 2021 20:12:21 +0200 Subject: Really need In App Purchasing for macOS In-Reply-To: <18CB9B8A-4E99-4C5E-904C-3E414DAE0F60@elloco.com> References: <18CB9B8A-4E99-4C5E-904C-3E414DAE0F60@elloco.com> Message-ID: <04FFC216-2825-4050-BF92-4725AE6AA4A5@m-r-d.de> As LC currently does not support In App Purchase for macOS, why not offering a free "lite" version and a "pro" version that can be purchased. Instead of an In App Purchase option in the free version you could link to the pro version in the app store. > Am 14.05.2021 um 17:27 schrieb Kee Nethery via use-livecode : > > Any suggestions? Each month my app gets 800+ views on the App Store and 1 purchase. With IAP I could convert so many more into paying customers. Any suggestions on how to add IAP to a Mac app? > > Kee Nethery > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Fri May 14 15:35:23 2021 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 14 May 2021 12:35:23 -0700 Subject: Stacks not removed from memory? In-Reply-To: <44C406DD-8F6C-4114-869D-6A044846903B@gmail.com> References: <44C406DD-8F6C-4114-869D-6A044846903B@gmail.com> Message-ID: <6795f093-ecab-c804-aa03-040b0ba49bd8@fourthworld.com> Thanks, Marty. I used to use stacks for preferences, but I found arrays to be simpler in addition to being slightly faster. But it seems the core of your issue isn't so much about LC's cache management as with object referencing with "this" - do I understand the issue correctly? -- Richard Gaskin Fourth World Systems > In my case it's not a name conflict. Lets say I have a main stack "XYZ" and then I query a separate Preference stack: > > put the cpCustomProperty of stack "full_path_to_pref_stack" into tPref > close stack "pref_stack" > > (my preference stack has destroyStack set to true) > > Now thinking that I'm back in my main stack "XYZ" I do something like: > put tPref into fld "123" of this stack > > This worked fine for me for years. In LC 9.6.2 rc 5, it would fail most of the time. Curious, I inserted code to find out what LC thought was "this stack" only to discover that *sometimes* it's the preference stack that I just closed. > > Then after closing the preference stack, I tried "go stack "XYZ" and "set the default stack to "XYZ" But "this stack" would still (most of the time) report my supposedly closed preference stack. > > So now I'm having to query for revLoadedStacks and if my preference stack is listed then I delete it from memory. > > I did file a bug report (#23194 ) but as it does not always happen I have not provided a test stack. > > Marty From martyknappster at gmail.com Fri May 14 15:49:38 2021 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 14 May 2021 12:49:38 -0700 Subject: Stacks not removed from memory? In-Reply-To: <6795f093-ecab-c804-aa03-040b0ba49bd8@fourthworld.com> References: <44C406DD-8F6C-4114-869D-6A044846903B@gmail.com> <6795f093-ecab-c804-aa03-040b0ba49bd8@fourthworld.com> Message-ID: When you close a stack that has its destroyStack set to true, it should not remain in memory. In my case it also seems to get stuck as the default stack. Even if my preference stack did not remove from memory as it should, specifically going to stack "XYZ" and setting it as the defaultStack, one would expect "this stack" to be be "XYZ" but it is not. As mentioned I am now querying revLoadedStacks and manually deleting from memory the preference stack and that seems to have taken care of it. But it makes me nervous that the same issue may unexpectedly arise elsewhere in my code. This is an app that has been working fine for years and this has not been an issue till now. Marty > On May 14, 2021, at 12:35 PM, Richard Gaskin via use-livecode wrote: > > Thanks, Marty. > > I used to use stacks for preferences, but I found arrays to be simpler in addition to being slightly faster. > > But it seems the core of your issue isn't so much about LC's cache management as with object referencing with "this" - do I understand the issue correctly? > > -- > Richard Gaskin > Fourth World Systems > > >> In my case it's not a name conflict. Lets say I have a main stack "XYZ" and then I query a separate Preference stack: >> put the cpCustomProperty of stack "full_path_to_pref_stack" into tPref >> close stack "pref_stack" >> (my preference stack has destroyStack set to true) >> Now thinking that I'm back in my main stack "XYZ" I do something like: >> put tPref into fld "123" of this stack >> This worked fine for me for years. In LC 9.6.2 rc 5, it would fail most of the time. Curious, I inserted code to find out what LC thought was "this stack" only to discover that *sometimes* it's the preference stack that I just closed. >> Then after closing the preference stack, I tried "go stack "XYZ" and "set the default stack to "XYZ" But "this stack" would still (most of the time) report my supposedly closed preference stack. >> So now I'm having to query for revLoadedStacks and if my preference stack is listed then I delete it from memory. >> I did file a bug report (#23194 ) but as it does not always happen I have not provided a test stack. >> Marty > From ambassador at fourthworld.com Fri May 14 15:56:35 2021 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 14 May 2021 12:56:35 -0700 Subject: Stacks not removed from memory? In-Reply-To: References: Message-ID: <8dd7effe-0640-2d09-0e6b-3cd38c0ab031@fourthworld.com> Thanks. So many things can legitimately change the value of "this" I generally prefer more explicit references. Maybe with this apparent bug there's one more reason I'm grateful to have adopted this habit. -- Richard Gaskin Fourth World Systems > When you close a stack that has its destroyStack set to true, it should not remain in memory. In my case it also seems to get stuck as the default stack. Even if my preference stack did not remove from memory as it should, specifically going to stack "XYZ" and setting it as the defaultStack, one would expect "this stack" to be be "XYZ" but it is not. > > As mentioned I am now querying revLoadedStacks and manually deleting from memory the preference stack and that seems to have taken care of it. But it makes me nervous that the same issue may unexpectedly arise elsewhere in my code. This is an app that has been working fine for years and this has not been an issue till now. > > Marty From jacque at hyperactivesw.com Fri May 14 17:02:20 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 May 2021 16:02:20 -0500 Subject: Stacks not removed from memory? In-Reply-To: References: <44C406DD-8F6C-4114-869D-6A044846903B@gmail.com> <6795f093-ecab-c804-aa03-040b0ba49bd8@fourthworld.com> Message-ID: <1fe1e736-0c8d-1bb0-6e79-2a78a70dd32b@hyperactivesw.com> On 5/14/21 2:49 PM, Marty Knapp via use-livecode wrote: > When you close a stack that has its destroyStack set to true, it should not remain in memory. In my case it also seems to get stuck as the default stack. Even if my preference stack did not remove from memory as it should, specifically going to stack "XYZ" and setting it as the defaultStack, one would expect "this stack" to be be "XYZ" but it is not. > > As mentioned I am now querying revLoadedStacks and manually deleting from memory the preference stack and that seems to have taken care of it. But it makes me nervous that the same issue may unexpectedly arise elsewhere in my code. This is an app that has been working fine for years and this has not been an issue till now. I agree this should work but until it does, a workaround might be to use "the topstack" rather than "this stack". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From curry at pair.com Fri May 14 21:33:39 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 14 May 2021 21:33:39 -0400 Subject: Stacks not removed from memory? In-Reply-To: References: Message-ID: Richard: > Because if it's just the stack name conflict thang, > I'd rather we solve that at the root by being done > with that IDE-imposed limitation Yes, good idea. I would be happy if LC either: 1. Solves it at the root, per RG suggestion. 2. Fixes what they already have, in the IDE. Which way is better? I'd say #1 is superior. That's my ideal too. Truly fixing it is much better than putting on a field dressing. BUT... (!) What's the caveat? New LC code is usually buggy and glitchy. Some issues are solved quickly, others take many years, or never. Thus, unfortunately "#1" versus "#2" might not a real choice. Actual choice, if quality is desired: "#2" versus "#1 PLUS #2." It shouldn't work that way, but unfortunately it has, so far. Anyway, good idea! I would be happy if LC does either. Just do it well. Besides the more obvious name conflict issues, we also have SE sometimes becoming dis-associated from the control whose script is being edited. That one is pretty fun to keep people on their toes while coding! Also, it's pretty crazy when standalone mishaps embed LC stacks in user stacks, and then the IDE makes it a little bit more difficult to remove the offending substacks due to the name conflicts. Similar: With certain project organization habits, it can add to the mayhem when name conflicts join the new messages-on Standalone Builder dance. Purge dialogs galore! Easy enough to work around, but a robust SB process that doesn't conflict with itself would be a big boost for LC. > So many things can legitimately change the value of "this" > I generally prefer more explicit references. > Maybe with this apparent bug there's one more reason > I'm grateful to have adopted this habit. "This" habit? Which habit was that? (J/K) :) Thanks for promoting this solution. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From harrison at all-auctions.com Sat May 15 09:46:38 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 15 May 2021 09:46:38 -0400 Subject: LC puts stuff in the trash upon quit! In-Reply-To: <8dd7effe-0640-2d09-0e6b-3cd38c0ab031@fourthworld.com> References: <8dd7effe-0640-2d09-0e6b-3cd38c0ab031@fourthworld.com> Message-ID: I have noticed this oddity for a long time. No other program that I own does this. Why is LC so dirty? Rick From bobsneidar at iotecdigital.com Sat May 15 10:56:43 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 15 May 2021 14:56:43 +0000 Subject: Stacks not removed from memory? In-Reply-To: References: <44C406DD-8F6C-4114-869D-6A044846903B@gmail.com> <6795f093-ecab-c804-aa03-040b0ba49bd8@fourthworld.com> Message-ID: <1AA5BF88-E631-46A4-910C-DC3DEDFB3545@iotecdigital.com> This issue is so pervasive that I ended up converting all of my relative references to absolute ones. I wrote two handlers, getParentCard and getParentStack, so when I need absolute references I put getParentCard() into tParentCard and then use of tParentCard after any object I need to absolutely reference. I NEVER use this stack anymore. I agree that when a handler refers to this stack, it should ALWAYS refer to the stack the script object belongs to. Bob S > On May 14, 2021, at 12:49 PM, Marty Knapp via use-livecode wrote: > > When you close a stack that has its destroyStack set to true, it should not remain in memory. In my case it also seems to get stuck as the default stack. Even if my preference stack did not remove from memory as it should, specifically going to stack "XYZ" and setting it as the defaultStack, one would expect "this stack" to be be "XYZ" but it is not. > > As mentioned I am now querying revLoadedStacks and manually deleting from memory the preference stack and that seems to have taken care of it. But it makes me nervous that the same issue may unexpectedly arise elsewhere in my code. This is an app that has been working fine for years and this has not been an issue till now. > > Marty > >> On May 14, 2021, at 12:35 PM, Richard Gaskin via use-livecode wrote: >> >> Thanks, Marty. >> >> I used to use stacks for preferences, but I found arrays to be simpler in addition to being slightly faster. >> >> But it seems the core of your issue isn't so much about LC's cache management as with object referencing with "this" - do I understand the issue correctly? >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >>> In my case it's not a name conflict. Lets say I have a main stack "XYZ" and then I query a separate Preference stack: >>> put the cpCustomProperty of stack "full_path_to_pref_stack" into tPref >>> close stack "pref_stack" >>> (my preference stack has destroyStack set to true) >>> Now thinking that I'm back in my main stack "XYZ" I do something like: >>> put tPref into fld "123" of this stack >>> This worked fine for me for years. In LC 9.6.2 rc 5, it would fail most of the time. Curious, I inserted code to find out what LC thought was "this stack" only to discover that *sometimes* it's the preference stack that I just closed. >>> Then after closing the preference stack, I tried "go stack "XYZ" and "set the default stack to "XYZ" But "this stack" would still (most of the time) report my supposedly closed preference stack. >>> So now I'm having to query for revLoadedStacks and if my preference stack is listed then I delete it from memory. >>> I did file a bug report (#23194 ) but as it does not always happen I have not provided a test stack. >>> Marty >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Sat May 15 11:04:33 2021 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 15 May 2021 18:04:33 +0300 Subject: LC puts stuff in the trash upon quit! In-Reply-To: References: <8dd7effe-0640-2d09-0e6b-3cd38c0ab031@fourthworld.com> Message-ID: <8b4bc994-96b2-cfe2-b3c5-6d72a0d46d90@gmail.com> On which operating system is this? I have not noticed it on MacOS or Xubuntu Linux. Richmond. On 15.05.21 16:46, Rick Harrison via use-livecode wrote: > I have noticed this oddity for a long time. > No other program that I own does this. > > Why is LC so dirty? > > Rick > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Sat May 15 12:05:28 2021 From: klaus at major-k.de (Klaus major-k) Date: Sat, 15 May 2021 18:05:28 +0200 Subject: LC puts stuff in the trash upon quit! In-Reply-To: References: <8dd7effe-0640-2d09-0e6b-3cd38c0ab031@fourthworld.com> Message-ID: <0AD8D2F5-6944-45F8-B6AD-9B918738E91E@major-k.de> Hi Rick, > Am 15.05.2021 um 15:46 schrieb Rick Harrison via use-livecode : > > I have noticed this oddity for a long time. > No other program that I own does this. this is a known bug: > Why is LC so dirty? Must have to do with cheese... > Rick Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Sat May 15 12:06:39 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 15 May 2021 18:06:39 +0200 Subject: LC puts stuff in the trash upon quit! In-Reply-To: References: <8dd7effe-0640-2d09-0e6b-3cd38c0ab031@fourthworld.com> Message-ID: <090A32B8-EAD4-4E49-B2FF-4C634E69FCE9@m-r-d.de> There is a bug report for this already https://quality.livecode.com/show_bug.cgi?id=21233 > Am 15.05.2021 um 15:46 schrieb Rick Harrison via use-livecode : > > I have noticed this oddity for a long time. > No other program that I own does this. > > Why is LC so dirty? > > Rick > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat May 15 14:58:28 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 May 2021 13:58:28 -0500 Subject: Stacks not removed from memory? In-Reply-To: <1AA5BF88-E631-46A4-910C-DC3DEDFB3545@iotecdigital.com> References: <44C406DD-8F6C-4114-869D-6A044846903B@gmail.com> <6795f093-ecab-c804-aa03-040b0ba49bd8@fourthworld.com> <1AA5BF88-E631-46A4-910C-DC3DEDFB3545@iotecdigital.com> Message-ID: <9273ea2e-7a74-0096-1cbb-35ff18d639ad@hyperactivesw.com> On 5/15/21 9:56 AM, Bob Sneidar via use-livecode wrote: > I agree that when a handler refers to this stack, it should ALWAYS refer to the stack the script object belongs to. That would be a catasrophe when the handler is in a library or a backscript. I use "this stack" in those. It would be good to get some guidance though on how the engine determines which stack is "this stack." I don't usually have a problem with it, but once in a while it fools me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kee.nethery at elloco.com Sat May 15 20:07:30 2021 From: kee.nethery at elloco.com (kee nethery) Date: Sat, 15 May 2021 17:07:30 -0700 Subject: Really need In App Purchasing for macOS In-Reply-To: <0DB9002B-8947-42C9-912C-31BE071F16E2@all-auctions.com> References: <18CB9B8A-4E99-4C5E-904C-3E414DAE0F60@elloco.com> <0DB9002B-8947-42C9-912C-31BE071F16E2@all-auctions.com> Message-ID: > On May 14, 2021, at 9:32 AM, Rick Harrison via use-livecode wrote: > > Hi Kee, > > IAP in the Apple World only applies to iOS apps in their environment for now as I understand it. > That may change in the future as Apple starts making iOS Apps available for macOS. https://developer.apple.com/in-app-purchase/ ?? Users can make in?app purchases on iOS, iPadOS, macOS, watchOS, and tvOS. ?" > To implement what you want, you would probably have to add a link to your website in your Mac App. > At your website you can offer the user a chance to upgrade to another version of your app. > (Of course Apple may not like this because at this point you might be cutting them out of the equation > and it might violate your terms with Apple. You will have to research that.) My understanding is that for a free downloaded app from the app store that has in-app purchasing, they want to manage that process and collect their cut. > > You may even just refer them to another Mac App on the Apple Store which would not violate anything > in your terms because Apple will still be able to take their cut. > > The old strategy was to give the users a cheap or free version of your product, and then provide a link > to the Pro-version or SuperPro or Ultra-Pro version of your software with more capability each time. I?ll ponder two versions. Crippled / free, and Pro / costing money. I currently deploy the ?pro / costing money? version. Want to have a free version that demonstrates what it does as a teaser. Thanks, kee > > Please let us know how you solve your problem, and what extra success you had with the strategy. > > Good luck! > > Rick > > >> On May 14, 2021, at 11:27 AM, Kee Nethery via use-livecode wrote: >> >> Any suggestions? Each month my app gets 800+ views on the App Store and 1 purchase. With IAP I could convert so many more into paying customers. Any suggestions on how to add IAP to a Mac app? >> >> Kee Nethery > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at me.com Mon May 17 04:28:30 2021 From: keith.clarke at me.com (Keith Clarke) Date: Mon, 17 May 2021 09:28:30 +0100 Subject: Spurious characters from html files - text encoding issues? Message-ID: Hi folks, I?m using LiveCode to summarise text from HTML documents into csv summary files and am noticing that when I extract strings from html documents stored on disk - rather than visiting the sites via the browser widget & grabbing the HTML text - weird characters being inserted in place of what appear to be ?regular? characters. The number of characters inserted can run into the thousands per instance, making my csv ?summary? file run into gigabytes! Has anyone seen the following type of string before, happen to know what might be causing it and offer a fix? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? I?ve tried deliberately setting UTF-8 on the extracted strings, with put textEncode(tString, "UTF-8") into tString. Currently I?m not attempting to force any text format on the local HTML documents. Thanks & regards, Keith From benr_mc at cogapp.com Mon May 17 07:57:32 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 17 May 2021 12:57:32 +0100 Subject: Spurious characters from html files - text encoding issues? In-Reply-To: References: Message-ID: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> Hi Keith, The thing with character encoding is that you always need to know where it's coming from and where it's going. Do you know how the HTML documents were obtained? Saved from a browser, fetched by curl, fetched by Livecode? Or generated on disk by something else? If it was saved from a browser or fetched by curl, then the format is most likely to be UTF-8. In order to see it correctly in LiveCode, you'd need to two things: - read it in as a binary file, rather than text (e.g. use URL "binfile://..." or "open file ... for binary read") - convert it to the internal text format FROM UTF-8 - which means use textDecode(tString, "UTF-8"), rather than textEncode If it was fetched by LiveCode, then it most likely arrived over the wire as UTF-8, but if it was saved by LiveCode as text (not binary) then it _may_ have got corrupted. If you can see the text looking as you expect in LiveCode, you've solved half the problem. Then you need to consider where it's going: who (that) is going to consume the CSV. This is the time to use textEncode, and then be sure to save it as a binary file. If the consumer will be something reasonably modern, then again UTF-8 is a good default. If it's something much older, you might need to use "CP1252" or similar. HTH, Ben On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: > Hi folks, > I?m using LiveCode to summarise text from HTML documents into csv summary files and am noticing that when I extract strings from html documents stored on disk - rather than visiting the sites via the browser widget & grabbing the HTML text - weird characters being inserted in place of what appear to be ?regular? characters. > > The number of characters inserted can run into the thousands per instance, making my csv ?summary? file run into gigabytes! Has anyone seen the following type of string before, happen to know what might be causing it and offer a fix? > ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? > > I?ve tried deliberately setting UTF-8 on the extracted strings, with put textEncode(tString, "UTF-8") into tString. Currently I?m not attempting to force any text format on the local HTML documents. > > Thanks & regards, > Keith > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From harrison at all-auctions.com Mon May 17 10:17:50 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 17 May 2021 10:17:50 -0400 Subject: LC puts stuff in the trash upon quit! In-Reply-To: <090A32B8-EAD4-4E49-B2FF-4C634E69FCE9@m-r-d.de> References: <8dd7effe-0640-2d09-0e6b-3cd38c0ab031@fourthworld.com> <090A32B8-EAD4-4E49-B2FF-4C634E69FCE9@m-r-d.de> Message-ID: <167D8CC8-1E8F-49BE-BBDC-0AFB3DEED56E@all-auctions.com> Thanks for getting back to me on this. This bug has been around for over 3 years now. Will it ever get squashed? Rick > On May 15, 2021, at 12:06 PM, matthias rebbe via use-livecode wrote: > > There is a bug report for this already > > https://quality.livecode.com/show_bug.cgi?id=21233 > > > >> Am 15.05.2021 um 15:46 schrieb Rick Harrison via use-livecode : >> >> I have noticed this oddity for a long time. >> No other program that I own does this. >> >> Why is LC so dirty? >> >> Rick From panos.merakos at livecode.com Mon May 17 10:54:40 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 17 May 2021 17:54:40 +0300 Subject: [ANN] This Week in LiveCode 265 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #265 here: https://bit.ly/3u2Upex This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From keith.clarke at me.com Mon May 17 10:58:55 2021 From: keith.clarke at me.com (Keith Clarke) Date: Mon, 17 May 2021 15:58:55 +0100 Subject: Spurious characters from html files - text encoding issues? In-Reply-To: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> References: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> Message-ID: <15C84F37-C33A-46F3-A89E-499410D45DBA@me.com> Thanks Ben, that?s really interesting. It never occurred to me that these html files might be anything other than simple plain text files, as I?d work with in Coda, etc., for years. The local HTML files are storage of the HTML text pulled from the LiveCode browser widget, saved using the URL ?file:? option. I?d been working ?live? from the Browser widget?s html text until recently, when I?ve introduced these local files to split page ?crawling? and analysis activities without needing a database. Reading the files back into LiveCode with the URL ?file:? option works quite happily with no text anomalies when put into a field to read. The problem seems to arise when I load the HTML text into a variable and then start to extract elements using LiveCode's text chunking. For example pulling the text between the offsets of say

&

tags is when these character anomalies have started to pop into the strings. A quick test on reading in the local HTML files with the URL ?binfile:? option and then textDecode(tString, ?UTF-8?) seems to reduce the frequency and size of anomalies, but some remain. So, I?ll see if re-crawling pages and saving the HTML text from the browser widget as binfiles reduces this further. Thanks & regards, Keith > On 17 May 2021, at 12:57, Ben Rubinstein via use-livecode wrote: > > Hi Keith, > > The thing with character encoding is that you always need to know where it's coming from and where it's going. > > Do you know how the HTML documents were obtained? Saved from a browser, fetched by curl, fetched by Livecode? Or generated on disk by something else? > > If it was saved from a browser or fetched by curl, then the format is most likely to be UTF-8. In order to see it correctly in LiveCode, you'd need to two things: > - read it in as a binary file, rather than text (e.g. use URL "binfile://..." or "open file ... for binary read") > - convert it to the internal text format FROM UTF-8 - which means use textDecode(tString, "UTF-8"), rather than textEncode > > If it was fetched by LiveCode, then it most likely arrived over the wire as UTF-8, but if it was saved by LiveCode as text (not binary) then it _may_ have got corrupted. > > If you can see the text looking as you expect in LiveCode, you've solved half the problem. Then you need to consider where it's going: who (that) is going to consume the CSV. This is the time to use textEncode, and then be sure to save it as a binary file. If the consumer will be something reasonably modern, then again UTF-8 is a good default. If it's something much older, you might need to use "CP1252" or similar. > > HTH, > > Ben > > > On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: >> Hi folks, >> I?m using LiveCode to summarise text from HTML documents into csv summary files and am noticing that when I extract strings from html documents stored on disk - rather than visiting the sites via the browser widget & grabbing the HTML text - weird characters being inserted in place of what appear to be ?regular? characters. >> The number of characters inserted can run into the thousands per instance, making my csv ?summary? file run into gigabytes! Has anyone seen the following type of string before, happen to know what might be causing it and offer a fix? >> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? >> I?ve tried deliberately setting UTF-8 on the extracted strings, with put textEncode(tString, "UTF-8") into tString. Currently I?m not attempting to force any text format on the local HTML documents. >> Thanks & regards, >> Keith >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Tue May 18 10:55:32 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 18 May 2021 17:55:32 +0300 Subject: [ANN] Release 9.6.2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.2 STABLE. 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 STABLE comes with 49 changes since the last stable release (9.6.1), including: New Features - Support for the newly released MacOS Big Sur - Support for building with Xcode 12.1, using the iOS 14.1 SDK - New tsNet and mergExt builds, built with the iOS 14.1 SDK Bug Fixes: - Fixed crash with mobilePickPhoto on Android 11 - Fixed 'revIsSpeaking()' function on Windows - Faster deployment to iOS simulator - Several fixes related to modal dialogs on MacOS - Several dictionary fixes and documentation improvements 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.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: Starting April 26, 2021, all iPhone and iPad apps submitted to the App Store must be built with Xcode 12 and the iOS 14 SDK or later. This means that, if you wish to submit apps to the AppStore you will have to be running at least macOS 10.15.4 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 -- From benr_mc at cogapp.com Wed May 19 14:01:49 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 19 May 2021 19:01:49 +0100 Subject: Spurious characters from html files - text encoding issues? In-Reply-To: <15C84F37-C33A-46F3-A89E-499410D45DBA@me.com> References: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> <15C84F37-C33A-46F3-A89E-499410D45DBA@me.com> Message-ID: <253f2a9a-c17c-0bd1-8bc1-9acbe8fd4194@cogapp.com> Hi Keith, This might need input from the mothership, but I think if you've obtained the text from the browser widget's htmlText, it will probably be in the special 'internal' format. I'm not entirely sure what happens when you save that as text - I suspect it depends on the platform. So for clarity (if you have the opportunity to re-save this material; and if it won't confuse things because existing files are in one format, and new ones another) it would probably be best to textEncode it into UTF-8, then save it as binfile. That way the files on disk should be UTF-8, which is something like a standard. What I tend to do in this situation where I have text files and I'm not sure what the format is (and I spend quite a lot of time messing with text files from various sources, some unknown and many not under my control) is use a good text editor - I use BBedit on Mac, not sure what suitable alternatives would be on Windows or Linux - to investigate the file. BBEdit makes a guess when it opens the file, but allows you to try re-opening in different encodings, and then warns you if there are byte sequences that don't make sense with that encoding. So by doing this I can often figure out what the encoding of the file is - once you've got that, you're off to the races. But if you have the opportunity to re-collect the whole set, then I *think* the above formula of textEncoding from LC's internal format to UTF-8, then saving as binary file; and reversing the process when you load them back in to process; and then doing the same again - possibly to a different format - when you output the CSV, should see you clear. HTH, Ben On 17/05/2021 15:58, Keith Clarke via use-livecode wrote: > Thanks Ben, that?s really interesting. It never occurred to me that these html files might be anything other than simple plain text files, as I?d work with in Coda, etc., for years. > > The local HTML files are storage of the HTML text pulled from the LiveCode browser widget, saved using the URL ?file:? option. I?d been working ?live? from the Browser widget?s html text until recently, when I?ve introduced these local files to split page ?crawling? and analysis activities without needing a database. > > Reading the files back into LiveCode with the URL ?file:? option works quite happily with no text anomalies when put into a field to read. The problem seems to arise when I load the HTML text into a variable and then start to extract elements using LiveCode's text chunking. For example pulling the text between the offsets of say

&

tags is when these character anomalies have started to pop into the strings. > > A quick test on reading in the local HTML files with the URL ?binfile:? option and then textDecode(tString, ?UTF-8?) seems to reduce the frequency and size of anomalies, but some remain. So, I?ll see if re-crawling pages and saving the HTML text from the browser widget as binfiles reduces this further. > Thanks & regards, > Keith > >> On 17 May 2021, at 12:57, Ben Rubinstein via use-livecode wrote: >> >> Hi Keith, >> >> The thing with character encoding is that you always need to know where it's coming from and where it's going. >> >> Do you know how the HTML documents were obtained? Saved from a browser, fetched by curl, fetched by Livecode? Or generated on disk by something else? >> >> If it was saved from a browser or fetched by curl, then the format is most likely to be UTF-8. In order to see it correctly in LiveCode, you'd need to two things: >> - read it in as a binary file, rather than text (e.g. use URL "binfile://..." or "open file ... for binary read") >> - convert it to the internal text format FROM UTF-8 - which means use textDecode(tString, "UTF-8"), rather than textEncode >> >> If it was fetched by LiveCode, then it most likely arrived over the wire as UTF-8, but if it was saved by LiveCode as text (not binary) then it _may_ have got corrupted. >> >> If you can see the text looking as you expect in LiveCode, you've solved half the problem. Then you need to consider where it's going: who (that) is going to consume the CSV. This is the time to use textEncode, and then be sure to save it as a binary file. If the consumer will be something reasonably modern, then again UTF-8 is a good default. If it's something much older, you might need to use "CP1252" or similar. >> >> HTH, >> >> Ben >> >> >> On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: >>> Hi folks, >>> I?m using LiveCode to summarise text from HTML documents into csv summary files and am noticing that when I extract strings from html documents stored on disk - rather than visiting the sites via the browser widget & grabbing the HTML text - weird characters being inserted in place of what appear to be ?regular? characters. >>> The number of characters inserted can run into the thousands per instance, making my csv ?summary? file run into gigabytes! Has anyone seen the following type of string before, happen to know what might be causing it and offer a fix? >>> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? >>> I?ve tried deliberately setting UTF-8 on the extracted strings, with put textEncode(tString, "UTF-8") into tString. Currently I?m not attempting to force any text format on the local HTML documents. >>> Thanks & regards, >>> Keith >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed May 19 15:09:02 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 19 May 2021 14:09:02 -0500 Subject: XCode command line tools 12 Message-ID: I'm still debating what to do about XCode on a Mojave machine. Couple of questions: 1. LC says to use 12.1 but the latest command line tools are 12.5. Is 12.1 specifically required or is a newer version okay? 12.1 was a GM seed but was quickly updated to 12.2. 2. The main question: I've downloaded the tools manually and I could run the package installer to install them. What would happen if I install the 12.x tools on a Mojave machine? Could I rename the old folder, install the new tools, and if it breaks, put the old folder back? Does anyone know if this will work, or do I need to make the plunge and see what happens? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jeejeestudio at gmail.com Wed May 19 15:19:18 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Wed, 19 May 2021 21:19:18 +0200 Subject: [ANN] Release 9.6.2 In-Reply-To: References: Message-ID: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> Great! And wow got me a massive 30KB/sec download while my download speedtest is 74.87Mbps....... That's the speed back in 1996... Op 18-5-2021 om 16:55 schreef panagiotis merakos via use-livecode: > Dear list members, > > We are pleased to announce the release of LiveCode 9.6.2 STABLE. > > > 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 STABLE comes with 49 changes since the last stable release > (9.6.1), including: > > New Features > - Support for the newly released MacOS Big Sur > - Support for building with Xcode 12.1, using the iOS 14.1 SDK > - New tsNet and mergExt builds, built with the iOS 14.1 SDK > > Bug Fixes: > - Fixed crash with mobilePickPhoto on Android 11 > - Fixed 'revIsSpeaking()' function on Windows > - Faster deployment to iOS simulator > - Several fixes related to modal dialogs on MacOS > - Several dictionary fixes and documentation improvements > > 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.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: Starting April 26, 2021, all iPhone and iPad apps submitted to > the App Store must be built with Xcode 12 and the iOS 14 SDK or later. This > means that, if you wish to submit apps to the AppStore you will have to be > running at least macOS 10.15.4 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Wed May 19 20:12:45 2021 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 19 May 2021 20:12:45 -0400 Subject: XCode command line tools 12 In-Reply-To: References: Message-ID: <000001d74d0c$df07dde0$9d1799a0$@net> This has worked for me. 1) Never upgrade or install Xcode from the app store. 2) Download from developer site. 3) NEVER put xcode.app in the Applications folder. 4) I made a new folder with all the Xcode versions I need. Rename every download with a version number suffix. 5) Open up downloaded versions after rename. This will finish the installation. 6) Now for the magic at command prompt: This will show what tools LC will use for building==> xcode-select --print-path This will set the tools that LC will use for building==> sudo xcpde-slect -switch "path to xcode.app version to build with" You will see if the version of Xcode is supported on your version of Mac OS when doing step 5 above. In setting On the "mobile support" pane of prefs you can add several version of Xcode to support older simulators and sdks I have Xcode 8.2.1, 9.2, 10.1 and 11.3.1 on my Mojave Mac. This give me 10.2,11.2,21.1 and 13.1 simulators. I will be upgrading to Catalina shortly. Why, because I have to... Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of J. Landman Gay via use-livecode Sent: Wednesday, May 19, 2021 3:09 PM To: LiveCode Mailing List Cc: J. Landman Gay Subject: XCode command line tools 12 I'm still debating what to do about XCode on a Mojave machine. Couple of questions: 1. LC says to use 12.1 but the latest command line tools are 12.5. Is 12.1 specifically required or is a newer version okay? 12.1 was a GM seed but was quickly updated to 12.2. 2. The main question: I've downloaded the tools manually and I could run the package installer to install them. What would happen if I install the 12.x tools on a Mojave machine? Could I rename the old folder, install the new tools, and if it breaks, put the old folder back? Does anyone know if this will work, or do I need to make the plunge and see what happens? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu May 20 08:58:45 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 20 May 2021 08:58:45 -0400 Subject: XCode command line tools 12 In-Reply-To: <000001d74d0c$df07dde0$9d1799a0$@net> References: <000001d74d0c$df07dde0$9d1799a0$@net> Message-ID: I disagree with not putting it in your applications folder. What I will do, instead, is rename the folder to "XCode"+version On Wed, May 19, 2021 at 8:09 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > This has worked for me. > > 1) Never upgrade or install Xcode from the app store. > 2) Download from developer site. > 3) NEVER put xcode.app in the Applications folder. > 4) I made a new folder with all the Xcode versions I need. Rename every > download with a version number suffix. > 5) Open up downloaded versions after rename. This will finish the > installation. > 6) Now for the magic at command prompt: > This will show what tools LC will use for building==> xcode-select > --print-path > This will set the tools that LC will use for building==> sudo xcpde-slect > -switch "path to xcode.app version to build with" > > You will see if the version of Xcode is supported on your version of Mac OS > when doing step 5 above. > In setting On the "mobile support" pane of prefs you can add several > version > of Xcode to support older simulators and sdks > > I have Xcode 8.2.1, 9.2, 10.1 and 11.3.1 on my Mojave Mac. This give me > 10.2,11.2,21.1 and 13.1 simulators. > > I will be upgrading to Catalina shortly. Why, because I have to... > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of J. Landman Gay via use-livecode > Sent: Wednesday, May 19, 2021 3:09 PM > To: LiveCode Mailing List > Cc: J. Landman Gay > Subject: XCode command line tools 12 > > I'm still debating what to do about XCode on a Mojave machine. Couple of > questions: > > 1. LC says to use 12.1 but the latest command line tools are 12.5. Is 12.1 > specifically required or is a newer version okay? 12.1 was a GM seed but > was > quickly updated to 12.2. > > 2. The main question: I've downloaded the tools manually and I could run > the > package installer to install them. What would happen if I install the 12.x > tools on a Mojave machine? > > Could I rename the old folder, install the new tools, and if it breaks, put > the old folder back? Does anyone know if this will work, or do I need to > make the plunge and see what happens? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From rdimola at evergreeninfo.net Thu May 20 11:22:21 2021 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 20 May 2021 11:22:21 -0400 Subject: XCode command line tools 12 In-Reply-To: References: <000001d74d0c$df07dde0$9d1799a0$@net> Message-ID: <002c01d74d8b$f099c080$d1cd4180$@net> The reason I kept it out of the applications folder was so it can't be updated by accident. If you rename it in the application to the version number then I guess it accomplishes the same "stop auto/accidental updates" function. I got updated back in the day and it broke the iOS build so I just got them out of the applications folder and have not had a problem. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Mike Kerner via use-livecode Sent: Thursday, May 20, 2021 8:59 AM To: How to use LiveCode Cc: Mike Kerner Subject: Re: XCode command line tools 12 I disagree with not putting it in your applications folder. What I will do, instead, is rename the folder to "XCode"+version On Wed, May 19, 2021 at 8:09 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > This has worked for me. > > 1) Never upgrade or install Xcode from the app store. > 2) Download from developer site. > 3) NEVER put xcode.app in the Applications folder. > 4) I made a new folder with all the Xcode versions I need. Rename > every download with a version number suffix. > 5) Open up downloaded versions after rename. This will finish the > installation. > 6) Now for the magic at command prompt: > This will show what tools LC will use for building==> xcode-select > --print-path This will set the tools that LC will use for building==> > sudo xcpde-slect -switch "path to xcode.app version to build with" > > You will see if the version of Xcode is supported on your version of > Mac OS when doing step 5 above. > In setting On the "mobile support" pane of prefs you can add several > version of Xcode to support older simulators and sdks > > I have Xcode 8.2.1, 9.2, 10.1 and 11.3.1 on my Mojave Mac. This give > me > 10.2,11.2,21.1 and 13.1 simulators. > > I will be upgrading to Catalina shortly. Why, because I have to... > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of J. Landman Gay via use-livecode > Sent: Wednesday, May 19, 2021 3:09 PM > To: LiveCode Mailing List > Cc: J. Landman Gay > Subject: XCode command line tools 12 > > I'm still debating what to do about XCode on a Mojave machine. Couple > of > questions: > > 1. LC says to use 12.1 but the latest command line tools are 12.5. Is > 12.1 specifically required or is a newer version okay? 12.1 was a GM > seed but was quickly updated to 12.2. > > 2. The main question: I've downloaded the tools manually and I could > run the package installer to install them. What would happen if I > install the 12.x tools on a Mojave machine? > > Could I rename the old folder, install the new tools, and if it > breaks, put the old folder back? Does anyone know if this will work, > or do I need to make the plunge and see what happens? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu May 20 11:52:52 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 May 2021 10:52:52 -0500 Subject: XCode command line tools 12 In-Reply-To: <000001d74d0c$df07dde0$9d1799a0$@net> References: <000001d74d0c$df07dde0$9d1799a0$@net> Message-ID: <1798a7ac420.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Thanks, but I wasn't clear enough. I didn't mention that I want to run the 12.x command line tools in Mojave itself, rather than setting up a VM with Big Sur. I do keep multiple versions of Xcode but those are all older. I get the feeling from your response that 12.x tools will refuse to install on Mojave, even when downloaded manually. So I guess that answers that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 19, 2021 7:10:52 PM Ralph DiMola via use-livecode wrote: > This has worked for me. > > 1) Never upgrade or install Xcode from the app store. > 2) Download from developer site. > 3) NEVER put xcode.app in the Applications folder. > 4) I made a new folder with all the Xcode versions I need. Rename every > download with a version number suffix. > 5) Open up downloaded versions after rename. This will finish the > installation. > 6) Now for the magic at command prompt: > This will show what tools LC will use for building==> xcode-select > --print-path > This will set the tools that LC will use for building==> sudo xcpde-slect > -switch "path to xcode.app version to build with" > > You will see if the version of Xcode is supported on your version of Mac OS > when doing step 5 above. > In setting On the "mobile support" pane of prefs you can add several version > of Xcode to support older simulators and sdks > > I have Xcode 8.2.1, 9.2, 10.1 and 11.3.1 on my Mojave Mac. This give me > 10.2,11.2,21.1 and 13.1 simulators. > > I will be upgrading to Catalina shortly. Why, because I have to... > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of J. Landman Gay via use-livecode > Sent: Wednesday, May 19, 2021 3:09 PM > To: LiveCode Mailing List > Cc: J. Landman Gay > Subject: XCode command line tools 12 > > I'm still debating what to do about XCode on a Mojave machine. Couple of > questions: > > 1. LC says to use 12.1 but the latest command line tools are 12.5. Is 12.1 > specifically required or is a newer version okay? 12.1 was a GM seed but was > quickly updated to 12.2. > > 2. The main question: I've downloaded the tools manually and I could run the > package installer to install them. What would happen if I install the 12.x > tools on a Mojave machine? > > Could I rename the old folder, install the new tools, and if it breaks, put > the old folder back? Does anyone know if this will work, or do I need to > make the plunge and see what happens? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu May 20 16:22:00 2021 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 20 May 2021 20:22:00 +0000 Subject: iOS screen size Message-ID: Stupid Question (I should know this!)... Why in my iOS app not scaled to the device? I am getting black bars at the top and bottom of the device. I thought this once had to do with the splash screens, but changing the "Launch Image" doesn't seem to have any effect. I don't recall having to set fullscreenmode, but that seems to have no effect either. LC 9.6.1 XCode 11.3.1 -Dan From dangmacguy at gmail.com Thu May 20 18:44:54 2021 From: dangmacguy at gmail.com (Bruce Pokras) Date: Thu, 20 May 2021 18:44:54 -0400 Subject: US Patent and Trademark Office tsNet error problem Message-ID: Hello all, Getting a tsNet error, both from the IDE and a standalone. I have a patent searching and downloading app that had some link rot issues. Finally fixed everything. Seemed to be working fine for USPTO, European Patent Office and World Intellectual Property Office. I put off launching this new version (Patent Grabber 6.5) for a few weeks. I don?t understand what has happened in the meantime, but the US patent searching keeps returning a tsNet error in the ?result": tsneterr: (56) SSLRead() return error -9806 The URL was: https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall which works fine when pasted in Safari or Chrome on my MacBook Pro Retina running High Sierra 10.13.6. I recently learned of the tsNet debugger that someone (Charles Warwick?) had so thoughtfully created, and tried it. Below are two runs that I made, and since I can?t make heads nor tails of them, I hope that someone on the list can understand what is going on (I also tried tsNetVerifySSLPeer, both true and false, but got the same tsNet error). Any help would be greatly appreciated. Thanks! Bruce Pokras #1: run with libURLsetSSLverification false Connection #7 to host patft.uspto.gov left intact Issue another request to this URL: 'https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall' Trying 2610:20:5004:1604::82:443... Connected to patft.uspto.gov (2610:20:5004:1604::82) port 443 (#8) WARNING: disabling hostname validation also disables SNI. SSL re-using session ID TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 Server certificate: patft.uspto.gov Server certificate: Entrust Certification Authority - L1K Server certificate: Entrust Root Certification Authority - G2 GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 Host: patft.uspto.gov Accept: */* User-Agent: LiveCode (MacOS) 1621533850 Mark bundle as not supporting multiuse HTTP 1.0, assume close after body HTTP/1.0 200 Script results follow Server: NetAnswer Server 1.0 Content-Type: text/html SSLRead() return error -9806 Closing connection 8 #2: run with libURLsetSSLverification true 1621534995 1621534996 _proxyForURL_proxyForURL end with none foundProxy for URL: Found bundle for host patft.uspto.gov: 0x7fa9a210bac0 [serially] Re-using existing connection! (#11) with host patft.uspto.gov Connected to patft.uspto.gov (2610:20:5004:1604::82) port 80 (#11) GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 Host: patft.uspto.gov Accept: */* User-Agent: LiveCode (MacOS) Mark bundle as not supporting multiuse HTTP 1.0, assume close after body HTTP/1.0 302 Found Location: https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall Server: BigIP Connection: close Content-Length: 0 Closing connection 11 Issue another request to this URL: 'https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall' Hostname patft.uspto.gov was found in DNS cache Trying 2610:20:5004:1604::82:443... Connected to patft.uspto.gov (2610:20:5004:1604::82) port 443 (#13) SSL re-using session ID TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 Server certificate: patft.uspto.gov Server certificate: Entrust Certification Authority - L1K Server certificate: Entrust Root Certification Authority - G2 GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 Host: patft.uspto.gov Accept: */* User-Agent: LiveCode (MacOS) 1621534997 Mark bundle as not supporting multiuse HTTP 1.0, assume close after body HTTP/1.0 200 Script results follow Server: NetAnswer Server 1.0 Content-Type: text/html SSLRead() return error -9806 Closing connection 13 1621534998 1621534999 From matthias_livecode_150811 at m-r-d.de Thu May 20 19:37:27 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 21 May 2021 01:37:27 +0200 Subject: US Patent and Trademark Office tsNet error problem In-Reply-To: References: Message-ID: <145A90A4-A19A-48EB-A715-8F3DF67540A5@m-r-d.de> Bruce, on the 19th of February this year Charles Warwick posted the following answer to a post (subject: SSL Error - question from Stack Overflow) which described a similar problem. >>> This seems to be an issue which has come up a few times over the years with the curl library. It appears to be specific to when curl is compiled on OS X to use the Mac SSL library, rather than OpenSSL. I am guessing you are trying this on a Mac? I have tested a build of tsNet under OS X that uses OpenSSL instead, and the issue goes away. Unfortunately, building tsNet to use OpenSSL on Mac would mean that it no longer uses the OS X certificate store for verifying SSL certificates. Regards, Charles <<< So maybe Charles can help, maybe with a custom build of tsNET. Regards, Matthias > Am 21.05.2021 um 00:44 schrieb Bruce Pokras via use-livecode : > > Hello all, > > Getting a tsNet error, both from the IDE and a standalone. I have a patent searching and downloading app that had some link rot issues. Finally fixed everything. Seemed to be working fine for USPTO, European Patent Office and World Intellectual Property Office. I put off launching this new version (Patent Grabber 6.5) for a few weeks. I don?t understand what has happened in the meantime, but the US patent searching keeps returning a tsNet error in the ?result": > > tsneterr: (56) SSLRead() return error -9806 > > The URL was: > > https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall > > which works fine when pasted in Safari or Chrome on my MacBook Pro Retina running High Sierra 10.13.6. > > I recently learned of the tsNet debugger that someone (Charles Warwick?) had so thoughtfully created, and tried it. Below are two runs that I made, and since I can?t make heads nor tails of them, I hope that someone on the list can understand what is going on (I also tried tsNetVerifySSLPeer, both true and false, but got the same tsNet error). Any help would be greatly appreciated. Thanks! > > Bruce Pokras > > #1: run with libURLsetSSLverification false > > Connection #7 to host patft.uspto.gov left intact > Issue another request to this URL: 'https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall' > Trying 2610:20:5004:1604::82:443... > Connected to patft.uspto.gov (2610:20:5004:1604::82) port 443 (#8) > WARNING: disabling hostname validation also disables SNI. > SSL re-using session ID > TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 > Server certificate: patft.uspto.gov > Server certificate: Entrust Certification Authority - L1K > Server certificate: Entrust Root Certification Authority - G2 > GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 > Host: patft.uspto.gov > Accept: */* > User-Agent: LiveCode (MacOS) > > 1621533850 > Mark bundle as not supporting multiuse > HTTP 1.0, assume close after body > HTTP/1.0 200 Script results follow > Server: NetAnswer Server 1.0 > Content-Type: text/html > > SSLRead() return error -9806 > Closing connection 8 > > #2: run with libURLsetSSLverification true > > 1621534995 > 1621534996 > _proxyForURL_proxyForURL end with none foundProxy for URL: > Found bundle for host patft.uspto.gov: 0x7fa9a210bac0 [serially] > Re-using existing connection! (#11) with host patft.uspto.gov > Connected to patft.uspto.gov (2610:20:5004:1604::82) port 80 (#11) > GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 > Host: patft.uspto.gov > Accept: */* > User-Agent: LiveCode (MacOS) > > Mark bundle as not supporting multiuse > HTTP 1.0, assume close after body > HTTP/1.0 302 Found > Location: https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall > Server: BigIP > Connection: close > Content-Length: 0 > > Closing connection 11 > Issue another request to this URL: 'https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall' > Hostname patft.uspto.gov was found in DNS cache > Trying 2610:20:5004:1604::82:443... > Connected to patft.uspto.gov (2610:20:5004:1604::82) port 443 (#13) > SSL re-using session ID > TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 > Server certificate: patft.uspto.gov > Server certificate: Entrust Certification Authority - L1K > Server certificate: Entrust Root Certification Authority - G2 > GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 > Host: patft.uspto.gov > Accept: */* > User-Agent: LiveCode (MacOS) > > 1621534997 > Mark bundle as not supporting multiuse > HTTP 1.0, assume close after body > HTTP/1.0 200 Script results follow > Server: NetAnswer Server 1.0 > Content-Type: text/html > > SSLRead() return error -9806 > Closing connection 13 > 1621534998 > 1621534999 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Fri May 21 04:14:40 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 21 May 2021 09:14:40 +0100 Subject: iOS screen size In-Reply-To: References: Message-ID: Hi Dan, did you try fullscreen set to ?ShowAll?? Also,I set the background color of my splash to a color that matched the background of my splash screen image so now it ?appears? to cover the full screen of all device sizes. Mark > On May 20, 2021, at 9:22 PM, Dan Friedman via use-livecode wrote: > > Stupid Question (I should know this!)... Why in my iOS app not scaled to the device? I am getting black bars at the top and bottom of the device. I thought this once had to do with the splash screens, but changing the "Launch Image" doesn't seem to have any effect. I don't recall having to set fullscreenmode, but that seems to have no effect either. > > LC 9.6.1 > XCode 11.3.1 > > -Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Fri May 21 04:21:12 2021 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 21 May 2021 11:21:12 +0300 Subject: iOS screen size In-Reply-To: References: Message-ID: Hello Dan, Rough guess, are you including a custom plist? If so, then this plist was probably created by an older LC version, before storyboard support was added. If this is the case, the (old) plist expects some splash images, which are not in the app bundle, thus you see the black bars. Kind regards, Panos -- On Fri, 21 May 2021 at 11:16, Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Dan, > > did you try fullscreen set to ?ShowAll?? > > Also,I set the background color of my splash to a color that matched the > background of my splash screen image so now it ?appears? to cover the full > screen of all device sizes. > > Mark > > > > On May 20, 2021, at 9:22 PM, Dan Friedman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Stupid Question (I should know this!)... Why in my iOS app not scaled > to the device? I am getting black bars at the top and bottom of the > device. I thought this once had to do with the splash screens, but > changing the "Launch Image" doesn't seem to have any effect. I don't > recall having to set fullscreenmode, but that seems to have no effect > either. > > > > LC 9.6.1 > > XCode 11.3.1 > > > > -Dan > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From curry at pair.com Fri May 21 05:31:20 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 21 May 2021 05:31:20 -0400 Subject: [ANN] Release 9.6.2 In-Reply-To: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> References: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> Message-ID: <89bc3887-0b96-7375-387c-c3a1b015e09f@pair.com> JeeJeeStudio: > And wow got me a massive 30KB/sec download > while my download speedtest is 74.87Mbps....... > That's the speed back in 1996... That happens to me a lot. Like the T3 cyborg using dial-up in the past. But I'm happy to report an LC 9.6.2 download at 5 MB/sec! From East Coast USA during the wee hours of the morning. So that's a good start to the day. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From heather at livecode.com Fri May 21 05:38:25 2021 From: heather at livecode.com (Heather Laine) Date: Fri, 21 May 2021 10:38:25 +0100 Subject: [ANN] Release 9.6.2 In-Reply-To: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> References: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> Message-ID: <92BDDCF9-178D-4777-B096-67504D700C34@livecode.com> Were you downloading direct from your account or via the updater? I thought we'd fixed the updater in this respect. What version of LiveCode were you updating from if you did use the updater? Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 19 May 2021, at 20:19, JeeJeeStudio via use-livecode wrote: > > Great! > > And wow got me a massive 30KB/sec download while my download speedtest is 74.87Mbps....... > > That's the speed back in 1996... > > > Op 18-5-2021 om 16:55 schreef panagiotis merakos via use-livecode: >> Dear list members, >> >> We are pleased to announce the release of LiveCode 9.6.2 STABLE. >> >> >> 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 STABLE comes with 49 changes since the last stable release >> (9.6.1), including: >> >> New Features >> - Support for the newly released MacOS Big Sur >> - Support for building with Xcode 12.1, using the iOS 14.1 SDK >> - New tsNet and mergExt builds, built with the iOS 14.1 SDK >> >> Bug Fixes: >> - Fixed crash with mobilePickPhoto on Android 11 >> - Fixed 'revIsSpeaking()' function on Windows >> - Faster deployment to iOS simulator >> - Several fixes related to modal dialogs on MacOS >> - Several dictionary fixes and documentation improvements >> >> 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.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: Starting April 26, 2021, all iPhone and iPad apps submitted to >> the App Store must be built with Xcode 12 and the iOS 14 SDK or later. This >> means that, if you wish to submit apps to the AppStore you will have to be >> running at least macOS 10.15.4 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri May 21 07:48:50 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 13:48:50 +0200 Subject: Implementing UNDO Message-ID: Hi friends, any hints on how to implement some UNDO mechanism into a LC standalone? The stack(s) in question will not only handle TEXT. Thanks for any insight! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From keith.clarke at me.com Fri May 21 08:19:47 2021 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 21 May 2021 13:19:47 +0100 Subject: Spurious characters from html files - text encoding issues? In-Reply-To: <253f2a9a-c17c-0bd1-8bc1-9acbe8fd4194@cogapp.com> References: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> <15C84F37-C33A-46F3-A89E-499410D45DBA@me.com> <253f2a9a-c17c-0bd1-8bc1-9acbe8fd4194@cogapp.com> Message-ID: Hi Ben, Thanks for the further details and tips - my problem is now solved! The BBedit tip re file 'open-as UTF-8' was a great help. I?d not noticed these options before (as I tend to open files from PathFinder folder lists not via apps). However, this did indeed reveal format errors on these cache files when they were saved with the raw (UTF-8 confirmed) htmltext of widget ?browser?. Text encoding to UTF-8 before saving fixed this issue and re-crawling the source pages has resulted in files that BBEdit recognises as ?regular? UTF-8. This reduced the anomaly count but whilst testing, I also noticed that the read-write cycle updating the output csv file was spawning anomalies and expanding those already present. So I wrapped this function to also force UTF-8 decoding/encoding - and now all is now good. No longer will I assume that a simple text file is a simple text file! :-) Thanks & regards, Keith > On 19 May 2021, at 19:01, Ben Rubinstein via use-livecode wrote: > > Hi Keith, > > This might need input from the mothership, but I think if you've obtained the text from the browser widget's htmlText, it will probably be in the special 'internal' format. I'm not entirely sure what happens when you save that as text - I suspect it depends on the platform. > > So for clarity (if you have the opportunity to re-save this material; and if it won't confuse things because existing files are in one format, and new ones another) it would probably be best to textEncode it into UTF-8, then save it as binfile. That way the files on disk should be UTF-8, which is something like a standard. > > What I tend to do in this situation where I have text files and I'm not sure what the format is (and I spend quite a lot of time messing with text files from various sources, some unknown and many not under my control) is use a good text editor - I use BBedit on Mac, not sure what suitable alternatives would be on Windows or Linux - to investigate the file. BBEdit makes a guess when it opens the file, but allows you to try re-opening in different encodings, and then warns you if there are byte sequences that don't make sense with that encoding. So by doing this I can often figure out what the encoding of the file is - once you've got that, you're off to the races. > > But if you have the opportunity to re-collect the whole set, then I *think* the above formula of textEncoding from LC's internal format to UTF-8, then saving as binary file; and reversing the process when you load them back in to process; and then doing the same again - possibly to a different format - when you output the CSV, should see you clear. > > HTH, > > Ben > > > On 17/05/2021 15:58, Keith Clarke via use-livecode wrote: >> Thanks Ben, that?s really interesting. It never occurred to me that these html files might be anything other than simple plain text files, as I?d work with in Coda, etc., for years. >> The local HTML files are storage of the HTML text pulled from the LiveCode browser widget, saved using the URL ?file:? option. I?d been working ?live? from the Browser widget?s html text until recently, when I?ve introduced these local files to split page ?crawling? and analysis activities without needing a database. >> Reading the files back into LiveCode with the URL ?file:? option works quite happily with no text anomalies when put into a field to read. The problem seems to arise when I load the HTML text into a variable and then start to extract elements using LiveCode's text chunking. For example pulling the text between the offsets of say

&

tags is when these character anomalies have started to pop into the strings. >> A quick test on reading in the local HTML files with the URL ?binfile:? option and then textDecode(tString, ?UTF-8?) seems to reduce the frequency and size of anomalies, but some remain. So, I?ll see if re-crawling pages and saving the HTML text from the browser widget as binfiles reduces this further. >> Thanks & regards, >> Keith >>> On 17 May 2021, at 12:57, Ben Rubinstein via use-livecode wrote: >>> >>> Hi Keith, >>> >>> The thing with character encoding is that you always need to know where it's coming from and where it's going. >>> >>> Do you know how the HTML documents were obtained? Saved from a browser, fetched by curl, fetched by Livecode? Or generated on disk by something else? >>> >>> If it was saved from a browser or fetched by curl, then the format is most likely to be UTF-8. In order to see it correctly in LiveCode, you'd need to two things: >>> - read it in as a binary file, rather than text (e.g. use URL "binfile://..." or "open file ... for binary read") >>> - convert it to the internal text format FROM UTF-8 - which means use textDecode(tString, "UTF-8"), rather than textEncode >>> >>> If it was fetched by LiveCode, then it most likely arrived over the wire as UTF-8, but if it was saved by LiveCode as text (not binary) then it _may_ have got corrupted. >>> >>> If you can see the text looking as you expect in LiveCode, you've solved half the problem. Then you need to consider where it's going: who (that) is going to consume the CSV. This is the time to use textEncode, and then be sure to save it as a binary file. If the consumer will be something reasonably modern, then again UTF-8 is a good default. If it's something much older, you might need to use "CP1252" or similar. >>> >>> HTH, >>> >>> Ben >>> >>> >>> On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: >>>> Hi folks, >>>> I?m using LiveCode to summarise text from HTML documents into csv summary files and am noticing that when I extract strings from html documents stored on disk - rather than visiting the sites via the browser widget & grabbing the HTML text - weird characters being inserted in place of what appear to be ?regular? characters. >>>> The number of characters inserted can run into the thousands per instance, making my csv ?summary? file run into gigabytes! Has anyone seen the following type of string before, happen to know what might be causing it and offer a fix? >>>> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? >>>> I?ve tried deliberately setting UTF-8 on the extracted strings, with put textEncode(tString, "UTF-8") into tString. Currently I?m not attempting to force any text format on the local HTML documents. >>>> Thanks & regards, >>>> Keith >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Fri May 21 09:12:25 2021 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 21 May 2021 09:12:25 -0400 Subject: Implementing UNDO In-Reply-To: References: Message-ID: Klaus. What are you doing here on the dark side?? Do you mean something like this, with a field and a button? in the card script: on textChanged set the currentText of this cd to fld 1 end textChanged on undoText get the currentText of this cd delete the last word of it set the text of fld 1 to it set the currentText of this cd to it end undoText and in the button: on mouseUp undoText end mouseUp Craig > On May 21, 2021, at 7:48 AM, Klaus major-k via use-livecode wrote: > > Hi friends, > > any hints on how to implement some UNDO mechanism into a LC standalone? > The stack(s) in question will not only handle TEXT. > > Thanks for any insight! > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri May 21 09:19:12 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 15:19:12 +0200 Subject: Implementing UNDO In-Reply-To: References: Message-ID: Hi Craig, > Am 21.05.2021 um 15:12 schrieb Craig Newman via use-livecode : > > Klaus. > > What are you doing here on the dark side?? Oh, come on! > Do you mean something like this, with a field and a button? in the card script: > > on textChanged > set the currentText of this cd to fld 1 > end textChanged > > on undoText > get the currentText of this cd > delete the last word of it > set the text of fld 1 to it > set the currentText of this cd to it > end undoText > > and in the button: > on mouseUp > undoText > end mouseUp OK, something like this, but for graphics, images etc., too. 8-) Some general hints will be OK. Except for TEXT I don't have a clue yet. Maybe store "the properties of xyz" and re-apply them when the user hits CMD-Z? > Craig > >> On May 21, 2021, at 7:48 AM, Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> any hints on how to implement some UNDO mechanism into a LC standalone? >> The stack(s) in question will not only handle TEXT... Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From MikeKerner at roadrunner.com Fri May 21 09:23:13 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 21 May 2021 09:23:13 -0400 Subject: Implementing UNDO In-Reply-To: References: Message-ID: I _think_ that there might also be an undo manager built into levure, if you are interested. On Fri, May 21, 2021 at 9:20 AM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Craig, > > > Am 21.05.2021 um 15:12 schrieb Craig Newman via use-livecode < > use-livecode at lists.runrev.com>: > > > > Klaus. > > > > What are you doing here on the dark side?? > > Oh, come on! > > > Do you mean something like this, with a field and a button? in the card > script: > > > > on textChanged > > set the currentText of this cd to fld 1 > > end textChanged > > > > on undoText > > get the currentText of this cd > > delete the last word of it > > set the text of fld 1 to it > > set the currentText of this cd to it > > end undoText > > > > and in the button: > > on mouseUp > > undoText > > end mouseUp > > OK, something like this, but for graphics, images etc., too. 8-) > Some general hints will be OK. > > Except for TEXT I don't have a clue yet. > Maybe store "the properties of xyz" and re-apply them when the user hits > CMD-Z? > > > Craig > > > >> On May 21, 2021, at 7:48 AM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi friends, > >> > >> any hints on how to implement some UNDO mechanism into a LC standalone? > >> The stack(s) in question will not only handle TEXT... > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From klaus at major-k.de Fri May 21 09:28:13 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 15:28:13 +0200 Subject: Implementing UNDO In-Reply-To: References: Message-ID: <653787AD-FF2C-4865-9D7A-C1B9262F796F@major-k.de> Hi Mike, > Am 21.05.2021 um 15:23 schrieb Mike Kerner via use-livecode : > > I _think_ that there might also be an undo manager built into levure, if > you are interested. oh, OK, sounds great, will take a look! Thank you! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Fri May 21 10:25:29 2021 From: brian at milby7.com (Brian Milby) Date: Fri, 21 May 2021 10:25:29 -0400 Subject: Implementing UNDO In-Reply-To: <653787AD-FF2C-4865-9D7A-C1B9262F796F@major-k.de> References: <653787AD-FF2C-4865-9D7A-C1B9262F796F@major-k.de> Message-ID: <916D0F76-CF88-41F0-906E-7E35624F198E@milby7.com> For text, the method will depend on the size of the text. In general, implement an undo stack and a redo stack. For single line fields it could simply be a list for each. After each change, add entry to undo list and clear redo list. When doing undo, move entries to redo list allowing forward/backward movement between changes. For longer text, an array based stack could be used. Either store the full text or use the diff library - method will depend on size of text. Sent from my iPhone > On May 21, 2021, at 9:28 AM, Klaus major-k via use-livecode wrote: > > ?Hi Mike, > >> Am 21.05.2021 um 15:23 schrieb Mike Kerner via use-livecode : >> >> I _think_ that there might also be an undo manager built into levure, if >> you are interested. > > oh, OK, sounds great, will take a look! > Thank you! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri May 21 10:42:37 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 16:42:37 +0200 Subject: Implementing UNDO In-Reply-To: <916D0F76-CF88-41F0-906E-7E35624F198E@milby7.com> References: <653787AD-FF2C-4865-9D7A-C1B9262F796F@major-k.de> <916D0F76-CF88-41F0-906E-7E35624F198E@milby7.com> Message-ID: <60418FBC-B024-42AE-A1F2-44EF09E43CD6@major-k.de> Hi Brian, > Am 21.05.2021 um 16:25 schrieb Brian Milby via use-livecode : > > For text, the method will depend on the size of the text. In general, implement an undo stack and a redo stack. For single line fields it could simply be a list for each. After each change, add entry to undo list and clear redo list. When doing undo, move entries to redo list allowing forward/backward movement between changes. > > For longer text, an array based stack could be used. Either store the full text or use the diff library - method will depend on size of text. thank you, very helpful! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From ahsoftware at sonic.net Fri May 21 10:42:28 2021 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 21 May 2021 07:42:28 -0700 Subject: Implementing UNDO In-Reply-To: References: Message-ID: <948b2fc4-3256-2568-8328-89b030acdbb2@sonic.net> On 5/21/21 6:19 AM, Klaus major-k via use-livecode wrote: > OK, something like this, but for graphics, images etc., too. 8-) > Some general hints will be OK. > > Except for TEXT I don't have a clue yet. > Maybe store "the properties of xyz" and re-apply them when the user hits CMD-Z? I've got an undo library on livecodeshare. It's designed to handle text, but the filo stack mechanism would probably work if you store something other than text as blobs. Untested, but maybe. My guess is this would use up memory rapidly. ...and from experience, don't try to compress/decompress arrays. -- Mark Wieder ahsoftware at gmail.com From dan at clearvisiontech.com Fri May 21 10:49:53 2021 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 21 May 2021 14:49:53 +0000 Subject: iOS screen size In-Reply-To: References: Message-ID: <26BF04E3-2299-4363-A72F-6AAFD657BD12@clearvisiontech.com> Panos, Yup. That's exactly what it was. Thanks! -Dan ?On 5/21/21, 1:23 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: Hello Dan, Rough guess, are you including a custom plist? If so, then this plist was probably created by an older LC version, before storyboard support was added. If this is the case, the (old) plist expects some splash images, which are not in the app bundle, thus you see the black bars. Kind regards, Panos -- On Fri, 21 May 2021 at 11:16, Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Dan, > > did you try fullscreen set to ?ShowAll?? > > Also,I set the background color of my splash to a color that matched the > background of my splash screen image so now it ?appears? to cover the full > screen of all device sizes. > > Mark > > > > On May 20, 2021, at 9:22 PM, Dan Friedman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Stupid Question (I should know this!)... Why in my iOS app not scaled > to the device? I am getting black bars at the top and bottom of the > device. I thought this once had to do with the splash screens, but > changing the "Launch Image" doesn't seem to have any effect. I don't > recall having to set fullscreenmode, but that seems to have no effect > either. > > > > LC 9.6.1 > > XCode 11.3.1 > > > > -Dan > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri May 21 10:52:46 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 16:52:46 +0200 Subject: Implementing UNDO In-Reply-To: <948b2fc4-3256-2568-8328-89b030acdbb2@sonic.net> References: <948b2fc4-3256-2568-8328-89b030acdbb2@sonic.net> Message-ID: <9F1E25B9-C5D4-41A5-B04C-90BE4E9D97FE@major-k.de> Hi Mark, > Am 21.05.2021 um 16:42 schrieb Mark Wieder via use-livecode : > On 5/21/21 6:19 AM, Klaus major-k via use-livecode wrote: >> OK, something like this, but for graphics, images etc., too. 8-) >> Some general hints will be OK. >> Except for TEXT I don't have a clue yet. >> Maybe store "the properties of xyz" and re-apply them when the user hits CMD-Z? > I've got an undo library on livecodeshare. It's designed to handle text, but the filo stack mechanism would probably work if you store something other than text as blobs. Untested, but maybe. My guess is this would use up memory rapidly. > ...and from experience, don't try to compress/decompress arrays. thank you, will download and check the stack. > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Fri May 21 10:57:09 2021 From: paul at researchware.com (Paul Dupuis) Date: Fri, 21 May 2021 10:57:09 -0400 Subject: Spurious characters from html files - text encoding issues? In-Reply-To: References: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> <15C84F37-C33A-46F3-A89E-499410D45DBA@me.com> <253f2a9a-c17c-0bd1-8bc1-9acbe8fd4194@cogapp.com> Message-ID: BBEdit has a built in "guess encoding" function to try to determine the encoding of a text file. I have had this bug in to LC now for 6 years: https://quality.livecode.com/show_bug.cgi?id=14474 Even Frasier, who did much of the Unicode work for LC7 agreed there should be a guessEncoding function in Livecode. Instead, anyone who needs one either has to write their own or find someone who has written one to get one from. While you can never tell with 100% accurate the encoding for all text files, there are algorithms that make pretty good guesses. I'd still like to see it as a build in function in the LC engine. On 5/21/2021 8:19 AM, Keith Clarke via use-livecode wrote: > Hi Ben, > Thanks for the further details and tips - my problem is now solved! > > The BBedit tip re file 'open-as UTF-8' was a great help. I?d not noticed these options before (as I tend to open files from PathFinder folder lists not via apps). However, this did indeed reveal format errors on these cache files when they were saved with the raw (UTF-8 confirmed) htmltext of widget ?browser?. Text encoding to UTF-8 before saving fixed this issue and re-crawling the source pages has resulted in files that BBEdit recognises as ?regular? UTF-8. > > This reduced the anomaly count but whilst testing, I also noticed that the read-write cycle updating the output csv file was spawning anomalies and expanding those already present. So I wrapped this function to also force UTF-8 decoding/encoding - and now all is now good. > > No longer will I assume that a simple text file is a simple text file! :-) > > Thanks & regards, > Keith > >> On 19 May 2021, at 19:01, Ben Rubinstein via use-livecode wrote: >> >> Hi Keith, >> >> This might need input from the mothership, but I think if you've obtained the text from the browser widget's htmlText, it will probably be in the special 'internal' format. I'm not entirely sure what happens when you save that as text - I suspect it depends on the platform. >> >> So for clarity (if you have the opportunity to re-save this material; and if it won't confuse things because existing files are in one format, and new ones another) it would probably be best to textEncode it into UTF-8, then save it as binfile. That way the files on disk should be UTF-8, which is something like a standard. >> >> What I tend to do in this situation where I have text files and I'm not sure what the format is (and I spend quite a lot of time messing with text files from various sources, some unknown and many not under my control) is use a good text editor - I use BBedit on Mac, not sure what suitable alternatives would be on Windows or Linux - to investigate the file. BBEdit makes a guess when it opens the file, but allows you to try re-opening in different encodings, and then warns you if there are byte sequences that don't make sense with that encoding. So by doing this I can often figure out what the encoding of the file is - once you've got that, you're off to the races. >> >> But if you have the opportunity to re-collect the whole set, then I *think* the above formula of textEncoding from LC's internal format to UTF-8, then saving as binary file; and reversing the process when you load them back in to process; and then doing the same again - possibly to a different format - when you output the CSV, should see you clear. >> >> HTH, >> >> Ben >> >> >> On 17/05/2021 15:58, Keith Clarke via use-livecode wrote: >>> Thanks Ben, that?s really interesting. It never occurred to me that these html files might be anything other than simple plain text files, as I?d work with in Coda, etc., for years. >>> The local HTML files are storage of the HTML text pulled from the LiveCode browser widget, saved using the URL ?file:? option. I?d been working ?live? from the Browser widget?s html text until recently, when I?ve introduced these local files to split page ?crawling? and analysis activities without needing a database. >>> Reading the files back into LiveCode with the URL ?file:? option works quite happily with no text anomalies when put into a field to read. The problem seems to arise when I load the HTML text into a variable and then start to extract elements using LiveCode's text chunking. For example pulling the text between the offsets of say

&

tags is when these character anomalies have started to pop into the strings. >>> A quick test on reading in the local HTML files with the URL ?binfile:? option and then textDecode(tString, ?UTF-8?) seems to reduce the frequency and size of anomalies, but some remain. So, I?ll see if re-crawling pages and saving the HTML text from the browser widget as binfiles reduces this further. >>> Thanks & regards, >>> Keith >>>> On 17 May 2021, at 12:57, Ben Rubinstein via use-livecode wrote: >>>> >>>> Hi Keith, >>>> >>>> The thing with character encoding is that you always need to know where it's coming from and where it's going. >>>> >>>> Do you know how the HTML documents were obtained? Saved from a browser, fetched by curl, fetched by Livecode? Or generated on disk by something else? >>>> >>>> If it was saved from a browser or fetched by curl, then the format is most likely to be UTF-8. In order to see it correctly in LiveCode, you'd need to two things: >>>> - read it in as a binary file, rather than text (e.g. use URL "binfile://..." or "open file ... for binary read") >>>> - convert it to the internal text format FROM UTF-8 - which means use textDecode(tString, "UTF-8"), rather than textEncode >>>> >>>> If it was fetched by LiveCode, then it most likely arrived over the wire as UTF-8, but if it was saved by LiveCode as text (not binary) then it _may_ have got corrupted. >>>> >>>> If you can see the text looking as you expect in LiveCode, you've solved half the problem. Then you need to consider where it's going: who (that) is going to consume the CSV. This is the time to use textEncode, and then be sure to save it as a binary file. If the consumer will be something reasonably modern, then again UTF-8 is a good default. If it's something much older, you might need to use "CP1252" or similar. >>>> >>>> HTH, >>>> >>>> Ben >>>> >>>> >>>> On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: >>>>> Hi folks, >>>>> I?m using LiveCode to summarise text from HTML documents into csv summary files and am noticing that when I extract strings from html documents stored on disk - rather than visiting the sites via the browser widget & grabbing the HTML text - weird characters being inserted in place of what appear to be ?regular? characters. >>>>> The number of characters inserted can run into the thousands per instance, making my csv ?summary? file run into gigabytes! Has anyone seen the following type of string before, happen to know what might be causing it and offer a fix? >>>>> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? >>>>> I?ve tried deliberately setting UTF-8 on the extracted strings, with put textEncode(tString, "UTF-8") into tString. Currently I?m not attempting to force any text format on the local HTML documents. >>>>> Thanks & regards, >>>>> Keith >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Fri May 21 11:05:50 2021 From: paul at researchware.com (Paul Dupuis) Date: Fri, 21 May 2021 11:05:50 -0400 Subject: Implementing UNDO In-Reply-To: <9F1E25B9-C5D4-41A5-B04C-90BE4E9D97FE@major-k.de> References: <948b2fc4-3256-2568-8328-89b030acdbb2@sonic.net> <9F1E25B9-C5D4-41A5-B04C-90BE4E9D97FE@major-k.de> Message-ID: As other have said, the basic mechanism is to have a UNDO LIFO (last in first out) queue or stack (no LC stack for a data structure stack). For each action you want 'undoable" you need a handler (do[action] ) to perform that action that also adds a record (a line) to the queue (a property, global variable, or script variable) that puts enough information in that record to undo the action. You then you have a corresponding undo[action] handler that can take the record from the queue and reverse the action. So records on the queue might look like: changeFont ? -- which can be undone by setting the to resizeImage etc. The first item tells you action was done and the subsequent items provide enough information to undo (or do again or redo) the action. On 5/21/2021 10:52 AM, Klaus major-k via use-livecode wrote: > Hi Mark, > >> Am 21.05.2021 um 16:42 schrieb Mark Wieder via use-livecode : >> On 5/21/21 6:19 AM, Klaus major-k via use-livecode wrote: >>> OK, something like this, but for graphics, images etc., too. 8-) >>> Some general hints will be OK. >>> Except for TEXT I don't have a clue yet. >>> Maybe store "the properties of xyz" and re-apply them when the user hits CMD-Z? >> I've got an undo library on livecodeshare. It's designed to handle text, but the filo stack mechanism would probably work if you store something other than text as blobs. Untested, but maybe. My guess is this would use up memory rapidly. >> ...and from experience, don't try to compress/decompress arrays. > thank you, will download and check the stack. > >> -- >> Mark Wieder >> ahsoftware at gmail.com > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri May 21 11:14:04 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 21 May 2021 10:14:04 -0500 Subject: [ANN] Release 9.6.2 In-Reply-To: <92BDDCF9-178D-4777-B096-67504D700C34@livecode.com> References: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> <92BDDCF9-178D-4777-B096-67504D700C34@livecode.com> Message-ID: <1798f7d9a60.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Just a data point: yesterday I downloaded 9.6.2 stable directly from the download page and got about 500 kb/second. It took a very long time to get the file. I figured something was going on with the server. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 21, 2021 4:40:04 AM Heather Laine via use-livecode wrote: > Were you downloading direct from your account or via the updater? I thought > we'd fixed the updater in this respect. What version of LiveCode were you > updating from if you did use the updater? > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 19 May 2021, at 20:19, JeeJeeStudio via use-livecode >> wrote: >> >> Great! >> >> And wow got me a massive 30KB/sec download while my download speedtest is >> 74.87Mbps....... >> >> That's the speed back in 1996... >> >> >> Op 18-5-2021 om 16:55 schreef panagiotis merakos via use-livecode: >>> Dear list members, >>> >>> We are pleased to announce the release of LiveCode 9.6.2 STABLE. >>> >>> >>> 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 STABLE comes with 49 changes since the last stable release >>> (9.6.1), including: >>> >>> New Features >>> - Support for the newly released MacOS Big Sur >>> - Support for building with Xcode 12.1, using the iOS 14.1 SDK >>> - New tsNet and mergExt builds, built with the iOS 14.1 SDK >>> >>> Bug Fixes: >>> - Fixed crash with mobilePickPhoto on Android 11 >>> - Fixed 'revIsSpeaking()' function on Windows >>> - Faster deployment to iOS simulator >>> - Several fixes related to modal dialogs on MacOS >>> - Several dictionary fixes and documentation improvements >>> >>> 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.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: Starting April 26, 2021, all iPhone and iPad apps submitted to >>> the App Store must be built with Xcode 12 and the iOS 14 SDK or later. This >>> means that, if you wish to submit apps to the AppStore you will have to be >>> running at least macOS 10.15.4 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri May 21 11:19:48 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 17:19:48 +0200 Subject: Implementing UNDO In-Reply-To: References: <948b2fc4-3256-2568-8328-89b030acdbb2@sonic.net> <9F1E25B9-C5D4-41A5-B04C-90BE4E9D97FE@major-k.de> Message-ID: <0B041B35-C1FF-4891-9110-F6936660F90B@major-k.de> Hi Paul and all, > Am 21.05.2021 um 17:05 schrieb Paul Dupuis via use-livecode : > > As other have said, the basic mechanism is to have a UNDO LIFO (last in first out) queue or stack (no LC stack for a data structure stack). For each action you want 'undoable" you need a handler (do[action] ) to perform that action that also adds a record (a line) to the queue (a property, global variable, or script variable) that puts enough information in that record to undo the action. You then you have a corresponding undo[action] handler that can take the record from the queue and reverse the action. > > So records on the queue might look like: > changeFont -- which can be undone by setting the to > resizeImage > etc. > > The first item tells you action was done and the subsequent items provide enough information to undo (or do again or redo) the action. thank you very much for all the hints and examples! Great inspiration and very encouraging. :-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Fri May 21 11:32:19 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 21 May 2021 10:32:19 -0500 Subject: Implementing UNDO In-Reply-To: References: Message-ID: <1798f8ca208.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> If you only need a simple, single-level undo you can use the built-in LC "undo" command. The limitation is that you can't undo/redo repeatedly through more than the last action. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 21, 2021 6:50:43 AM Klaus major-k via use-livecode wrote: > Hi friends, > > any hints on how to implement some UNDO mechanism into a LC standalone? > The stack(s) in question will not only handle TEXT. > > Thanks for any insight! > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri May 21 11:35:49 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 17:35:49 +0200 Subject: Implementing UNDO In-Reply-To: <1798f8ca208.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1798f8ca208.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <66E65648-5C25-47A0-B3F3-D2016CB52DA2@major-k.de> Hi Jaqueline, > Am 21.05.2021 um 17:32 schrieb J. Landman Gay via use-livecode : > > If you only need a simple, single-level undo you can use the built-in LC "undo" command. The limitation is that you can't undo/redo repeatedly through more than the last action. oh, yes, thanks for the reminder! However it is not yet clear how many levels of UNDO my customer wants to be implemented. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com >> Hi friends, >> >> any hints on how to implement some UNDO mechanism into a LC standalone? >> The stack(s) in question will not only handle TEXT. >> Thanks for any insight! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Fri May 21 14:09:35 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 20:09:35 +0200 Subject: lock messages and navigation bar widget Message-ID: Hi friends, am I missing something? This does not work with my navigation bar widget at least not as exspected: -------------------- on mouseUp lock messages set the hiliteditemname of widget 1 to "contacts" unlock messages end mouseUp --------------------- Icon does change, but the widgets "hilitechanged" handler is fired!? So no change of icon possible without firing the "hilitechanged" message? Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From dfepstein at comcast.net Fri May 21 14:32:50 2021 From: dfepstein at comcast.net (David Epstein) Date: Fri, 21 May 2021 14:32:50 -0400 Subject: Implementing UNDO Message-ID: <38211147-4466-431E-9F44-446442FF63C5@comcast.net> LC?s built in undo does not appear to undo anything done by something I have scripted. My approach is to use a global array variable ?u? to store information needed to undo the most recent action. On each action, an ?undoInit? puts empty into u, after (if necessary) cleaning up anything u?s values indicate is left over from the prior action (e.g., actually deleting an object that had been only ?pseudo-deleted? (hidden) so as to make the user?s choice of deletion undoable). Then the appropriate new values are loaded into u. The main elements I use are # u["cardID"] = short id of the card where the undoable action was taken # u["stackName"] = short name of the stack where the undoable action was taken # u["changed"], list of objects being changed, each line has: propName,objectID # u[propName,objectID] holds prior value of that property of that object (one key/value for each line of u["changed"] # u["removed"], list of objectID,cardID,stackName for objects being pseudo-removed # u["added"], list of objectID,cardID,stackName for objects being added # u["cardsRemoved"], list of cards being pseudo-removed, each line has: cardID,cardNumber # u["cardsAdded"], list of cards being added, each line has: cardID,cardNumber The ?Undo? command makes sure we?re on card id u[?cardID?] of stack u[?stackName?}, then checks for non-empty values of u[?changed?],u[?removed?],u[?added?],u{?cardsRemoved?], and u[?cardsAdded?], and uses values stored in u to restore the prior state of things, while reloading u with values reporting the state of things now being reversed. For text, I load u[?changed?] with ?htmlText?,, and load u[?htmlText?,] with the htmlText of that field before the latest editing. David Epstein From brian at milby7.com Fri May 21 14:34:22 2021 From: brian at milby7.com (Brian Milby) Date: Fri, 21 May 2021 14:34:22 -0400 Subject: lock messages and navigation bar widget Message-ID: <9BA3ED26-CB83-4173-94AB-E975FE58AD6D@milby7.com> Works as expected/coded. Not sure how it would be changed (don?t know how to get to that state inside the widget). Anyway, to work with this you need to have your handler check to see if it needs to run. Pretty easy if using it to navigate between cards. If already on the destination card, then exit the handler. Another way is to set a flag to skip the change handler before manually making the change in code. Then when the handler starts, check for the flag before continuing. Sent from my iPhone > On May 21, 2021, at 2:11 PM, Klaus major-k via use-livecode wrote: > From klaus at major-k.de Fri May 21 14:38:50 2021 From: klaus at major-k.de (Klaus major-k) Date: Fri, 21 May 2021 20:38:50 +0200 Subject: lock messages and navigation bar widget In-Reply-To: <9BA3ED26-CB83-4173-94AB-E975FE58AD6D@milby7.com> References: <9BA3ED26-CB83-4173-94AB-E975FE58AD6D@milby7.com> Message-ID: Hi Brian, > Am 21.05.2021 um 20:34 schrieb Brian Milby via use-livecode : > > Works as expected/coded. hm, I had the naive thinking that "lock messages" would erm. lock the messages. und just change the icon. :-D But this does obviously not apply to the navigation bar widget. > Not sure how it would be changed (don?t know how to get to that state inside the widget). OK, I just thought I was missing something. > Anyway, to work with this you need to have your handler check to see if it needs to run. Pretty easy if using it to navigate between cards. If already on the destination card, then exit the handler. > Another way is to set a flag to skip the change handler before manually making the change in code. Then when the handler starts, check for the flag before continuing. Yes. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Fri May 21 15:10:16 2021 From: brian at milby7.com (Brian Milby) Date: Fri, 21 May 2021 15:10:16 -0400 Subject: lock messages and navigation bar widget In-Reply-To: References: Message-ID: Yes, I was impacted the same way a while back. The lockMessages dictionary entry lists the messages that get locked and it is smaller than I expected. Thanks, Brian Sent from my iPhone > On May 21, 2021, at 2:39 PM, Klaus major-k via use-livecode wrote: > > ?Hi Brian, > >> Am 21.05.2021 um 20:34 schrieb Brian Milby via use-livecode : >> >> Works as expected/coded. > > hm, I had the naive thinking that "lock messages" would erm. lock the messages. und just change the icon. :-D > But this does obviously not apply to the navigation bar widget. > >> Not sure how it would be changed (don?t know how to get to that state inside the widget). > > OK, I just thought I was missing something. > >> Anyway, to work with this you need to have your handler check to see if it needs to run. Pretty easy if using it to navigate between cards. If already on the destination card, then exit the handler. >> Another way is to set a flag to skip the change handler before manually making the change in code. Then when the handler starts, check for the flag before continuing. > > Yes. > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri May 21 16:09:22 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 21 May 2021 16:09:22 -0400 Subject: Implementing UNDO In-Reply-To: <38211147-4466-431E-9F44-446442FF63C5@comcast.net> References: <38211147-4466-431E-9F44-446442FF63C5@comcast.net> Message-ID: fyi, for posterity, here is the link to the wiki for levure's undo manager helper https://github.com/trevordevore/levure/wiki/helper-undo_manager On Fri, May 21, 2021 at 2:34 PM David Epstein via use-livecode < use-livecode at lists.runrev.com> wrote: > LC?s built in undo does not appear to undo anything done by something I > have scripted. > My approach is to use a global array variable ?u? to store information > needed to undo the most recent action. On each action, an ?undoInit? puts > empty into u, after (if necessary) cleaning up anything u?s values indicate > is left over from the prior action (e.g., actually deleting an object that > had been only ?pseudo-deleted? (hidden) so as to make the user?s choice of > deletion undoable). Then the appropriate new values are loaded into u. > The main elements I use are > > # u["cardID"] = short id of the card where the undoable action was taken > # u["stackName"] = short name of the stack where the undoable action was > taken > # u["changed"], list of objects being changed, each line has: > propName,objectID > # u[propName,objectID] holds prior value of that property of that object > (one key/value for each line of u["changed"] > # u["removed"], list of objectID,cardID,stackName for objects being > pseudo-removed > # u["added"], list of objectID,cardID,stackName for objects being added > # u["cardsRemoved"], list of cards being pseudo-removed, each line has: > cardID,cardNumber > # u["cardsAdded"], list of cards being added, each line has: > cardID,cardNumber > > The ?Undo? command makes sure we?re on card id u[?cardID?] of stack > u[?stackName?}, then checks for non-empty values of > u[?changed?],u[?removed?],u[?added?],u{?cardsRemoved?], and > u[?cardsAdded?], and uses values stored in u to restore the prior state of > things, while reloading u with values reporting the state of things now > being reversed. > > For text, I load u[?changed?] with ?htmlText?,, and load > u[?htmlText?,] with the htmlText of that field before the latest > editing. > > David Epstein > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Fri May 21 16:11:43 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 21 May 2021 16:11:43 -0400 Subject: lock messages and navigation bar widget In-Reply-To: References: Message-ID: "hilitedChanged" is currently the only message sent to the navbar search the how list for "navbar pre hilitechanged" from a couple of weeks ago, when I dealt with a similar issue. On Fri, May 21, 2021 at 3:11 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, I was impacted the same way a while back. The lockMessages > dictionary entry lists the messages that get locked and it is smaller than > I expected. > > Thanks, > Brian > > Sent from my iPhone > > > On May 21, 2021, at 2:39 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > ?Hi Brian, > > > >> Am 21.05.2021 um 20:34 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Works as expected/coded. > > > > hm, I had the naive thinking that "lock messages" would erm. lock the > messages. und just change the icon. :-D > > But this does obviously not apply to the navigation bar widget. > > > >> Not sure how it would be changed (don?t know how to get to that state > inside the widget). > > > > OK, I just thought I was missing something. > > > >> Anyway, to work with this you need to have your handler check to see if > it needs to run. Pretty easy if using it to navigate between cards. If > already on the destination card, then exit the handler. > >> Another way is to set a flag to skip the change handler before manually > making the change in code. Then when the handler starts, check for the > flag before continuing. > > > > Yes. > > > > > > Best > > > > Klaus > > > > -- > > Klaus Major > > https://www.major-k.de > > https://www.major-k.de/bass > > klaus at major-k.de > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From curry at pair.com Sat May 22 02:19:28 2021 From: curry at pair.com (Curry Kenworthy) Date: Sat, 22 May 2021 02:19:28 -0400 Subject: [ANN] Release 9.6.2 In-Reply-To: <1798f7d9a60.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1798f7d9a60.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <631e26e5-2dc9-152b-0a21-38788334b948@pair.com> Jacqueline: > Just a data point: yesterday I downloaded 9.6.2 stable directly > from the download page and got about 500 kb/second. It took a > very long time to get the file. Yes! That's my typical experience. (Except lower than 500 kb.) LC download usually takes forever, and sometimes fails altogether. So in fact, my intention was only to START the 9.6.2 download and come back later to check on it. The 5 MB/sec was a pleasant surprise! > yesterday Do you remember approx. what time of day? And was it soon after a release announcement? My happy 5 MB/sec was at around 2 AM Eastern Time on a weekday. It was not right after any release announcement. Also from the download page, not the Updater app. Perhaps a time of lower LC traffic? Or just a fluke? Felt great to finish up the DL and run a new IDE within two minutes.... Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From jeejeestudio at gmail.com Sat May 22 05:32:12 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Sat, 22 May 2021 11:32:12 +0200 Subject: [ANN] Release 9.6.2 In-Reply-To: <92BDDCF9-178D-4777-B096-67504D700C34@livecode.com> References: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> <92BDDCF9-178D-4777-B096-67504D700C34@livecode.com> Message-ID: Directly from the download page downloads.livecode.com. In previous times this was, for me, at normal speeds. I know others suffered from slow downloads. All the best, Jerry Op 21-5-2021 om 11:38 schreef Heather Laine via use-livecode: > Were you downloading direct from your account or via the updater? I thought we'd fixed the updater in this respect. What version of LiveCode were you updating from if you did use the updater? > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 19 May 2021, at 20:19, JeeJeeStudio via use-livecode wrote: >> >> Great! >> >> And wow got me a massive 30KB/sec download while my download speedtest is 74.87Mbps....... >> >> That's the speed back in 1996... >> >> >> Op 18-5-2021 om 16:55 schreef panagiotis merakos via use-livecode: >>> Dear list members, >>> >>> We are pleased to announce the release of LiveCode 9.6.2 STABLE. >>> >>> >>> 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 STABLE comes with 49 changes since the last stable release >>> (9.6.1), including: >>> >>> New Features >>> - Support for the newly released MacOS Big Sur >>> - Support for building with Xcode 12.1, using the iOS 14.1 SDK >>> - New tsNet and mergExt builds, built with the iOS 14.1 SDK >>> >>> Bug Fixes: >>> - Fixed crash with mobilePickPhoto on Android 11 >>> - Fixed 'revIsSpeaking()' function on Windows >>> - Faster deployment to iOS simulator >>> - Several fixes related to modal dialogs on MacOS >>> - Several dictionary fixes and documentation improvements >>> >>> 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.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: Starting April 26, 2021, all iPhone and iPad apps submitted to >>> the App Store must be built with Xcode 12 and the iOS 14 SDK or later. This >>> means that, if you wish to submit apps to the AppStore you will have to be >>> running at least macOS 10.15.4 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jeejeestudio at gmail.com Sat May 22 05:32:46 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Sat, 22 May 2021 11:32:46 +0200 Subject: [ANN] Release 9.6.2 In-Reply-To: <89bc3887-0b96-7375-387c-c3a1b015e09f@pair.com> References: <8a552bf1-a4f2-42bb-3a83-e13e1af31133@gmail.com> <89bc3887-0b96-7375-387c-c3a1b015e09f@pair.com> Message-ID: That's better! Op 21-5-2021 om 11:31 schreef Curry Kenworthy via use-livecode: > > JeeJeeStudio: > > > And wow got me a massive 30KB/sec download > > while my download speedtest is 74.87Mbps....... > > That's the speed back in 1996... > > That happens to me a lot. Like the T3 cyborg using dial-up in the past. > > But I'm happy to report an LC 9.6.2 download at 5 MB/sec! > From East Coast USA during the wee hours of the morning. > So that's a good start to the day. > > Best wishes, > > Curry Kenworthy > > Custom Software Development > "Better Methods, Better Results" > LiveCode Training and Consulting > http://livecodeconsulting.com/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat May 22 12:04:53 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 22 May 2021 11:04:53 -0500 Subject: [ANN] Release 9.6.2 In-Reply-To: <631e26e5-2dc9-152b-0a21-38788334b948@pair.com> References: <1798f7d9a60.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <631e26e5-2dc9-152b-0a21-38788334b948@pair.com> Message-ID: <17994d27c88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> It was Thursday, the day after the announcement, mid-afternoon Central time. But part of the problem may have been on my end, recently our bandwidth has been dropping to unacceptable speeds sporadically. Never down in the kilobyte ranges though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 22, 2021 1:22:27 AM Curry Kenworthy via use-livecode wrote: > > Do you remember approx. what time of day? > And was it soon after a release announcement? From richmondmathewson at gmail.com Sat May 22 12:24:37 2021 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 22 May 2021 19:24:37 +0300 Subject: [ANN] Release 9.6.2 In-Reply-To: <17994d27c88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1798f7d9a60.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <631e26e5-2dc9-152b-0a21-38788334b948@pair.com> <17994d27c88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <6250e4ff-9c57-ed64-7955-7e0c21f4df9a@gmail.com> Why need there be such a long-winded discussion anent download time? Surely we are all not so impatient a 90 minute or so wait is not that significant to move from a Release Candidate to a Stable version? Richmond. On 22.05.21 19:04, J. Landman Gay via use-livecode wrote: > It was Thursday, the day after the announcement, mid-afternoon Central > time. But part of the problem may have been on my end, recently our > bandwidth has been dropping to unacceptable speeds sporadically. Never > down in the kilobyte ranges though. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On May 22, 2021 1:22:27 AM Curry Kenworthy via use-livecode > wrote: >> >> Do you remember approx. what time of day? >> And was it soon after a release announcement? > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Sat May 22 12:49:00 2021 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 22 May 2021 11:49:00 -0500 Subject: Implementing UNDO In-Reply-To: References: <38211147-4466-431E-9F44-446442FF63C5@comcast.net> Message-ID: On Fri, May 21, 2021 at 3:11 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > fyi, for posterity, here is the link to the wiki for levure's undo manager > helper > https://github.com/trevordevore/levure/wiki/helper-undo_manager Here is a link to the code: https://github.com/trevordevore/levure/tree/develop/framework/helpers/undo_manager This should be easy enough to add to any app. I just checked the code and there are no calls to any functions or commands in the Levure framework itself. If you look at the helper.yml file you see this: ``` libraries: - filename: undoManager.livecodescript frontscripts: - filename: field_edits_undo.livecodescript autoload: false ``` What that means is that you should `start using stack "undoManager.livecodescript"` when your app starts up and `put there is a stack "field_edits_undo.livecodescript" into tStackIsNoInMemory`. (Note that it is left as an exercise to the reader to determine the full path to those stacks when being used in your app.) The `field_edits_undo.livecodescript` stack just needs to be in memory so that `undoManager.livecodescript` can insert it into the front whenever the user is editing text in a field. -- Trevor DeVore ScreenSteps www.screensteps.com From klaus at major-k.de Sat May 22 13:54:38 2021 From: klaus at major-k.de (Klaus major-k) Date: Sat, 22 May 2021 19:54:38 +0200 Subject: Implementing UNDO In-Reply-To: References: <38211147-4466-431E-9F44-446442FF63C5@comcast.net> Message-ID: <10CFFDAE-8D72-4F6D-9D9E-20F14FB60591@major-k.de> Hi Trevor, > Am 22.05.2021 um 18:49 schrieb Trevor DeVore via use-livecode : > ... > Here is a link to the code: > > https://github.com/trevordevore/levure/tree/develop/framework/helpers/undo_manager > This should be easy enough to add to any app. I just checked the code and > there are no calls to any functions or commands in the Levure framework > itself. If you look at the helper.yml file you see this: > ``` > libraries: > - filename: undoManager.livecodescript > frontscripts: > - filename: field_edits_undo.livecodescript > autoload: false > ``` > What that means is that you should `start using stack > "undoManager.livecodescript"` when your app starts up and `put there is a > stack "field_edits_undo.livecodescript" into tStackIsNoInMemory`. (Note > that it is left as an exercise to the reader to determine the full path to > those stacks when being used in your app.) The > `field_edits_undo.livecodescript` stack just needs to be in memory so that > `undoManager.livecodescript` can insert it into the front whenever the user > is editing text in a field. > > -- > Trevor DeVore thanks for the hints, much appreciated! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brahma at hindu.org Sun May 23 18:43:21 2021 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 23 May 2021 22:43:21 +0000 Subject: Speech Library: Where is the "Utterance" - Off Message-ID: If I am a user, and I get phone call, we just want ?speech? is ?off? Where is the ?mouseup?? I can?t find any ?off? switch ? speechInitializeLibrary ? speechLibraryInitialized pSuccessLink ? speechGetVoices ? speechSetVoice(pVoiceIdentifier) ? speechSpeakUtterance(pString) ? speechUtteranceDidFinish pCompleted ? speechSetPitch 1.5 ? speechSetRate(pRate) ? speechFinalizeLibrary BR From martyknappster at gmail.com Sun May 23 20:15:53 2021 From: martyknappster at gmail.com (Marty Knapp) Date: Sun, 23 May 2021 17:15:53 -0700 Subject: Random slowdown in standalone Message-ID: <07BC2B11-974D-4886-B86F-BA74EEE11CA5@gmail.com> I'm having a really weird problem here. I have an app that's been working fine. In the IDE everything seems to work as expected. But in a standalone I'm getting random slow downs. The app always seems to open fine but then when I try to open various stacks I will get the wristwatch icon and it might take a minute or more for the stack to appear on screen. But the next time it may open fine. Even when it works OK, opening stacks seems a tad sluggish. It?s doing this on 2 different Macs (Mojave). I've reinstalled LC and deleted the Preference file. Marty From tom at makeshyft.com Mon May 24 12:17:38 2021 From: tom at makeshyft.com (Tom Glod) Date: Mon, 24 May 2021 12:17:38 -0400 Subject: Speech Library: Where is the "Utterance" - Off In-Reply-To: References: Message-ID: revStopSpeech On Sun, May 23, 2021 at 6:44 PM Sannyasin Brahmanathaswami via use-livecode wrote: > If I am a user, and I get phone call, we just want ?speech? is ?off? > > > > Where is the ?mouseup?? > > > > I can?t find any ?off? switch > > > > ? speechInitializeLibrary > > ? speechLibraryInitialized pSuccessLink > > ? speechGetVoices > > ? speechSetVoice(pVoiceIdentifier) > > ? speechSpeakUtterance(pString) > > ? speechUtteranceDidFinish pCompleted > > ? speechSetPitch 1.5 > > ? speechSetRate(pRate) > > ? speechFinalizeLibrary > > > > BR > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From panos.merakos at livecode.com Mon May 24 12:18:16 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 24 May 2021 19:18:16 +0300 Subject: [ANN] This Week in LiveCode 266 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #266 here: https://bit.ly/3wtnFMN This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From jacque at hyperactivesw.com Mon May 24 13:04:46 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 24 May 2021 12:04:46 -0500 Subject: Speech Library: Where is the "Utterance" - Off In-Reply-To: References: Message-ID: <1799f5607b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I think this should do it: speechSpeakUtterance(empty) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 23, 2021 5:45:58 PM Sannyasin Brahmanathaswami via use-livecode wrote: > If I am a user, and I get phone call, we just want ?speech? is ?off? > > > > Where is the ?mouseup?? > > > > I can?t find any ?off? switch > > > > ? speechInitializeLibrary > > ? speechLibraryInitialized pSuccessLink > > ? speechGetVoices > > ? speechSetVoice(pVoiceIdentifier) > > ? speechSpeakUtterance(pString) > > ? speechUtteranceDidFinish pCompleted > > ? speechSetPitch 1.5 > > ? speechSetRate(pRate) > > ? speechFinalizeLibrary > > > > BR > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon May 24 16:18:20 2021 From: paul at researchware.com (Paul Dupuis) Date: Mon, 24 May 2021 16:18:20 -0400 Subject: 3-way slider control Message-ID: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> Hi all, I am looking to see if anyone has a 3-positions slider control they might be willing to share. I need a control that has a "left, middle, and Right" positions (whatever they are called). Prefer horizontal orientation and resizable so I can adjust the size to the screen area where it needs to go, but I can resize graphics if needed. Thank you to anyone (and everyone) in advance. From martyknappster at gmail.com Mon May 24 17:12:34 2021 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 24 May 2021 14:12:34 -0700 Subject: Random slowdown in standalone In-Reply-To: <07BC2B11-974D-4886-B86F-BA74EEE11CA5@gmail.com> References: <07BC2B11-974D-4886-B86F-BA74EEE11CA5@gmail.com> Message-ID: This turned out to be (apparently) a partially corrupted stack. While it would function, simply things like going to a stack could take a couple of minutes. When I tracked down the offending stack and replaced it with a backup, performance returned to normal. Marty > On May 23, 2021, at 5:15 PM, Marty Knapp wrote: > > I'm having a really weird problem here. I have an app that's been working fine. In the IDE everything seems to work as expected. But in a standalone I'm getting random slow downs. The app always seems to open fine but then when I try to open various stacks I will get the wristwatch icon and it might take a minute or more for the stack to appear on screen. But the next time it may open fine. Even when it works OK, opening stacks seems a tad sluggish. It?s doing this on 2 different Macs (Mojave). I've reinstalled LC and deleted the Preference file. > > Marty From paul at researchware.com Mon May 24 17:19:30 2021 From: paul at researchware.com (Paul Dupuis) Date: Mon, 24 May 2021 17:19:30 -0400 Subject: macOS and the default font in fields Message-ID: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> I am hoping some macOS guru out there can explain this in some way that makes sense. LiveCode 9.6.x supports Windows 7 to 10 and macOS 10.9.5 and up (10.16 aka 11.x aka Big Sur) I wanted to know what the default fonts are for each OS and version for Windows and macOS. Google returned a number of sources, such as: https://www.granneman.com/webdev/coding/css/fonts-and-formatting/default-fonts#mac-os-xos-xmacos The above page is very clear for Windows > Segue UI for 7, 8, 8.1 and 10 Mac OS has Lucida Grande for Mavericks, then Helvetica Neue for Yosemite (10.10) and "San Francisco" from 10.11 and up, although this link above does not list 10.15 nor 10.16, but other google searches on Catalina say San Francisco. My problem is "put the effective textFont of fld 1" for a new stack and single field, returns "Segue UI" on Windows (all versions I have tested on) On Mohave (10.14) (my mac's OS), I get "(Text)" and futher, if I lick on properties for the field and the "A" or font properties and look at the font list under Mohave, there is NO "San Francisco". I see a couple Lucida Grande and a WHOLE LOT of Helvetica Neue's, but no "San Francisco" Is the internet wrong on this or is this font hidden or what the heck is going on. If I search Apple's developer site for variations of 'Catalina default font' or 'Big Sur default font', I get to pages like: https://support.apple.com/en-us/HT211240 (for Big Sur, but pretty much the same for Catalina) where it list all installed fonts and there is a Lucida Grande and Helvetica Neue's, but again NO San Francisco. I think I recall this came up previously as to why 'effective' textFont of an object does not return an ACTUAL font name, which still seems like a bug to me, but I vaguely recall there was some reason for it. My objective is to store the defaults for a given OS and version on startup of my application, so that if the user uses existing controls to change fonts in various places, I cna provide a means to "Reset" them to the defaults I gather from the Dictionary entries for textFont and fontNames that just setting the textFont of a field to "(Default)" will reset it to the applicable default for the control type (field) and OS and OS version. Does this work on Windows? If so, then WHY does "effective textFont" on Windows return Segue UI but on macOS returns (Text), another of these placeholder font names described in the fontNames function entry? Any help making sense of this would be welcome. From harrison at all-auctions.com Mon May 24 18:13:21 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 24 May 2021 18:13:21 -0400 Subject: 3-way slider control In-Reply-To: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> Message-ID: Hi Paul, Grab a horizontal slider control. Set the start position to -1 Set the end position to +1 Set the current position to 0 Make it any length you want. If you try clicking on a 1/4 setting it will spring to the next value, giving it the left middle and right positions you want. Let me know if that works well enough for you. Rick > On May 24, 2021, at 4:18 PM, Paul Dupuis via use-livecode wrote: > > Hi all, > > I am looking to see if anyone has a 3-positions slider control they might be willing to share. I need a control that has a "left, middle, and Right" positions (whatever they are called). Prefer horizontal orientation and resizable so I can adjust the size to the screen area where it needs to go, but I can resize graphics if needed. > > Thank you to anyone (and everyone) in advance. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon May 24 18:28:39 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 24 May 2021 17:28:39 -0500 Subject: 3-way slider control In-Reply-To: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> Message-ID: <4f6a03d8-004f-e94c-8951-83734297cdc0@hyperactivesw.com> On 5/24/21 3:18 PM, Paul Dupuis via use-livecode wrote: > Hi all, > > I am looking to see if anyone has a 3-positions slider control they might be willing to share. > I need a control that has a "left, middle, and Right" positions (whatever they are called). > Prefer horizontal orientation and resizable so I can adjust the size to the screen area where > it needs to go, but I can resize graphics if needed. You can do this with LC's built-in horizontal scrollbar. Drag a Slider control to the card. Set the start value to 1 and the end value to 3. By default there will be numbers displayed but you can turn those off and use labels underneath instead. Put this script into the slider. It should make the slider snap to one of the three positions: on scrollBarDrag set the thumbPos of me to the thumbpos of me mod(4) end scrollBarDrag If you want to change the color, use an effects overlay. None of the built-in color properties apply. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From irog at mac.com Mon May 24 18:41:46 2021 From: irog at mac.com (Roger Guay) Date: Mon, 24 May 2021 15:41:46 -0700 Subject: 3-way slider control In-Reply-To: <4f6a03d8-004f-e94c-8951-83734297cdc0@hyperactivesw.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <4f6a03d8-004f-e94c-8951-83734297cdc0@hyperactivesw.com> Message-ID: <9C64E382-8B4F-4963-8BC6-45A439737D77@mac.com> And if you need color and stuff, you can download my ScrollbarOmatic under Roger Guay from Sample Stacks. Roger > On May 24, 2021, at 3:28 PM, J. Landman Gay via use-livecode wrote: > > On 5/24/21 3:18 PM, Paul Dupuis via use-livecode wrote: >> Hi all, >> I am looking to see if anyone has a 3-positions slider control they might be willing to share. I need a control that has a "left, middle, and Right" positions (whatever they are called). Prefer horizontal orientation and resizable so I can adjust the size to the screen area where it needs to go, but I can resize graphics if needed. > > You can do this with LC's built-in horizontal scrollbar. Drag a Slider control to the card. Set the start value to 1 and the end value to 3. By default there will be numbers displayed but you can turn those off and use labels underneath instead. > > Put this script into the slider. It should make the slider snap to one of the three positions: > > > on scrollBarDrag > set the thumbPos of me to the thumbpos of me mod(4) > end scrollBarDrag > > If you want to change the color, use an effects overlay. None of the built-in color properties apply. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue May 25 11:38:24 2021 From: paul at researchware.com (Paul Dupuis) Date: Tue, 25 May 2021 11:38:24 -0400 Subject: 3-way slider control In-Reply-To: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> Message-ID: <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> Rick and Jacqueline, Thank you for the horizontal slider suggestions. This could suffice for what I need. I was imagining more of the common "circle inside an oval" "switch" control you see on the web and in apps these days. However, beggars can't always be choosers and I the slider works well for what I need. Roger, Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: *compiling at 11:34:54 AM* Type Expression: bad factor Object backBar Line if tx ? tIndEndPos then Hint ? I did not seem to actually impact continue to refine the appearance. From david.bovill at gmail.com Tue May 25 12:53:04 2021 From: david.bovill at gmail.com (David Bovill) Date: Tue, 25 May 2021 17:53:04 +0100 Subject: Browser Widget Issue In-Reply-To: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> References: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> Message-ID: I?m having trouble keeping track of which framework the browser widget uses - on MacOS is it using webkit or Chromium? A url I am trying to access is blank - https://obs.ninja??- while it is showing in Safari and Chrome on the desktop - any suggestions? From irog at mac.com Tue May 25 13:06:12 2021 From: irog at mac.com (Roger Guay) Date: Tue, 25 May 2021 10:06:12 -0700 Subject: 3-way slider control In-Reply-To: <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> Message-ID: <7231A53A-9813-4480-A11A-A896F5F5BE0D@mac.com> Hi Paul, I?m not able to duplicate the error here. Can you tell what control you were adjusting? You should be able to achieve what you want by changing the ?backBar? grc style from roundrect to oval. You might have to play with the code a bit, but it should work. Roger > > Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: > > *compiling at 11:34:54 AM* > > Type Expression: bad factor > > Object backBar > > Line if tx ? tIndEndPos then > > Hint ? > > I did not seem to actually impact continue to refine the appearance. > > _______________________________________________ From keith.clarke at me.com Tue May 25 13:10:08 2021 From: keith.clarke at me.com (Keith Clarke) Date: Tue, 25 May 2021 18:10:08 +0100 Subject: Browser Widget Issue In-Reply-To: References: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> Message-ID: Hi David, Pass on the framework, but regarding the page? FWIW from the message box, I was able to set the url of widget ?Browser? to "https://obs.ninja? (apparently empty...) but then put the htmltext of widget ?Browser? to see that there is indeed some content. So, it?s not scripting itself to hide and there?s some content & potential to investigate why it?s rendering as 'white on white'. However, only inline styling is available as AFAIK there?s no dev tools nor access to any downloaded css files, wherever resources might get cached by the LC browser widget?? Good luck, Keith > On 25 May 2021, at 17:53, David Bovill via use-livecode wrote: > > I?m having trouble keeping track of which framework the browser widget uses - on MacOS is it using webkit or Chromium? > > A url I am trying to access is blank - https://obs.ninja - while it is showing in Safari and Chrome on the desktop - any suggestions? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue May 25 13:11:45 2021 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 May 2021 19:11:45 +0200 Subject: 3-way slider control In-Reply-To: <7231A53A-9813-4480-A11A-A896F5F5BE0D@mac.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <7231A53A-9813-4480-A11A-A896F5F5BE0D@mac.com> Message-ID: <910E4AC6-1699-4EF2-A24F-0851C38B2BC5@major-k.de> Hi freinds, this - ? is a MAC-only character and will throw an error on Windows! Use/replace with: <= >= <> for full platform comatibilty! > Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode : > > Hi Paul, I?m not able to duplicate the error here. Can you tell what control you were adjusting? > > You should be able to achieve what you want by changing the ?backBar? grc style from roundrect to oval. You might have to play with the code a bit, but it should work. > > Roger >> >> Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: >> >> *compiling at 11:34:54 AM* >> >> Type Expression: bad factor >> >> Object backBar >> >> Line if tx ? tIndEndPos then >> >> Hint ? >> >> I did not seem to actually impact continue to refine the appearance. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From harrison at all-auctions.com Tue May 25 13:14:10 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 25 May 2021 13:14:10 -0400 Subject: 3-way slider control In-Reply-To: <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> Message-ID: <6AC9A276-2445-479F-A2D0-8E53D8635001@all-auctions.com> Hi Paul, You can make your own custom controls in LiveCode. Perhaps you just want something more like three radio buttons, or simulate a slider control with buttons and graphics. Give us an example image to help clarify what you want. Thanks, Rick > On May 25, 2021, at 11:38 AM, Paul Dupuis via use-livecode wrote: > > Rick and Jacqueline, > > Thank you for the horizontal slider suggestions. This could suffice for what I need. I was imagining more of the common "circle inside an oval" "switch" control you see on the web and in apps these days. However, beggars can't always be choosers and I the slider works well for what I need. > > Roger, > > Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: > > *compiling at 11:34:54 AM* > > Type Expression: bad factor > > Object backBar > > Line if tx ? tIndEndPos then > > Hint ? > > I did not seem to actually impact continue to refine the appearance. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Tue May 25 13:23:35 2021 From: irog at mac.com (Roger Guay) Date: Tue, 25 May 2021 10:23:35 -0700 Subject: 3-way slider control In-Reply-To: <910E4AC6-1699-4EF2-A24F-0851C38B2BC5@major-k.de> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <7231A53A-9813-4480-A11A-A896F5F5BE0D@mac.com> <910E4AC6-1699-4EF2-A24F-0851C38B2BC5@major-k.de> Message-ID: <7FD29EDA-CCDD-4016-A9E4-6388F2E20A3E@mac.com> Ah yes, I knew that but had forgotten it. Thank you, Klaus! Roger > On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode wrote: > > Hi freinds, > > this - ? > is a MAC-only character and will throw an error on Windows! > Use/replace with: > <= >> = > <> > for full platform comatibilty! > >> Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode : >> >> Hi Paul, I?m not able to duplicate the error here. Can you tell what control you were adjusting? >> >> You should be able to achieve what you want by changing the ?backBar? grc style from roundrect to oval. You might have to play with the code a bit, but it should work. >> >> Roger >>> >>> Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: >>> >>> *compiling at 11:34:54 AM* >>> >>> Type Expression: bad factor >>> >>> Object backBar >>> >>> Line if tx ? tIndEndPos then >>> >>> Hint ? >>> >>> I did not seem to actually impact continue to refine the appearance. > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue May 25 14:18:48 2021 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 25 May 2021 21:18:48 +0300 Subject: 3-way slider control In-Reply-To: <7FD29EDA-CCDD-4016-A9E4-6388F2E20A3E@mac.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <7231A53A-9813-4480-A11A-A896F5F5BE0D@mac.com> <910E4AC6-1699-4EF2-A24F-0851C38B2BC5@major-k.de> <7FD29EDA-CCDD-4016-A9E4-6388F2E20A3E@mac.com> Message-ID: Sorry: went a bit bonkers: https://forums.livecode.com/viewtopic.php?f=7&t=35903 Richmond. On 25.05.21 20:23, Roger Guay via use-livecode wrote: > Ah yes, I knew that but had forgotten it. Thank you, Klaus! > > Roger > >> On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode wrote: >> >> Hi freinds, >> >> this - ? >> is a MAC-only character and will throw an error on Windows! >> Use/replace with: >> <= >>> = >> <> >> for full platform comatibilty! >> >>> Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode : >>> >>> Hi Paul, I?m not able to duplicate the error here. Can you tell what control you were adjusting? >>> >>> You should be able to achieve what you want by changing the ?backBar? grc style from roundrect to oval. You might have to play with the code a bit, but it should work. >>> >>> Roger >>>> Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: >>>> >>>> *compiling at 11:34:54 AM* >>>> >>>> Type Expression: bad factor >>>> >>>> Object backBar >>>> >>>> Line if tx ? tIndEndPos then >>>> >>>> Hint ? >>>> >>>> I did not seem to actually impact continue to refine the appearance. >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Tue May 25 15:01:04 2021 From: irog at mac.com (Roger Guay) Date: Tue, 25 May 2021 12:01:04 -0700 Subject: 3-way slider control In-Reply-To: References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <7231A53A-9813-4480-A11A-A896F5F5BE0D@mac.com> <910E4AC6-1699-4EF2-A24F-0851C38B2BC5@major-k.de> <7FD29EDA-CCDD-4016-A9E4-6388F2E20A3E@mac.com> Message-ID: <9C573C98-205F-4B83-895C-14619DDC2714@mac.com> Nice! I like the idea of this because it gets the readout away from the cursor so that you can read it. Roger > On May 25, 2021, at 11:18 AM, Richmond via use-livecode wrote: > > Sorry: went a bit bonkers: > > https://forums.livecode.com/viewtopic.php?f=7&t=35903 > > Richmond. > > On 25.05.21 20:23, Roger Guay via use-livecode wrote: >> Ah yes, I knew that but had forgotten it. Thank you, Klaus! >> >> Roger >> >>> On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode wrote: >>> >>> Hi freinds, >>> >>> this - ? >>> is a MAC-only character and will throw an error on Windows! >>> Use/replace with: >>> <= >>>> = >>> <> >>> for full platform comatibilty! >>> >>>> Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode : >>>> >>>> Hi Paul, I?m not able to duplicate the error here. Can you tell what control you were adjusting? >>>> >>>> You should be able to achieve what you want by changing the ?backBar? grc style from roundrect to oval. You might have to play with the code a bit, but it should work. >>>> >>>> Roger >>>>> Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: >>>>> >>>>> *compiling at 11:34:54 AM* >>>>> >>>>> Type Expression: bad factor >>>>> >>>>> Object backBar >>>>> >>>>> Line if tx ? tIndEndPos then >>>>> >>>>> Hint ? >>>>> >>>>> I did not seem to actually impact continue to refine the appearance. >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> https://www.major-k.de >>> https://www.major-k.de/bass >>> klaus at major-k.de >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue May 25 15:06:50 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 25 May 2021 14:06:50 -0500 Subject: macOS and the default font in fields In-Reply-To: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> References: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> Message-ID: On 5/24/21 4:19 PM, Paul Dupuis via use-livecode wrote: > My objective is to store the defaults for a given OS and version on startup of my application, > so that if the user uses existing controls to change fonts in various places, I cna provide a > means to "Reset" them to the defaults The fonts in parentheses are special placeholders for the current system's various text fonts or styles, created so we don't have to figure out what that is. You should be able to reset the fields by assigning one of those, probably either ("Text") or ("Default"), as the font and let LC figure out what to use. That should work on all operating systems, including mobile. I can't explain the discrepancy when getting the effective textFont but I've been using "(Text)" most of the time with good results. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue May 25 15:36:41 2021 From: paul at researchware.com (Paul Dupuis) Date: Tue, 25 May 2021 15:36:41 -0400 Subject: macOS and the default font in fields In-Reply-To: References: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> Message-ID: <5341897f-3a89-79bd-adce-f99d8df4b9db@researchware.com> On 5/25/2021 3:06 PM, J. Landman Gay via use-livecode wrote: > On 5/24/21 4:19 PM, Paul Dupuis via use-livecode wrote: >> My objective is to store the defaults for a given OS and version on >> startup of my application, so that if the user uses existing controls >> to change fonts in various places, I cna provide a means to "Reset" >> them to the defaults > > The fonts in parentheses are special placeholders for the current > system's various text fonts or styles, created so we don't have to > figure out what that is. You should be able to reset the fields by > assigning one of those, probably either ("Text") or ("Default"), as > the font and let LC figure out what to use. That should work on all > operating systems, including mobile. > > I can't explain the discrepancy when getting the effective textFont > but I've been using "(Text)" most of the time with good results. > Yup, that's the solution I went with -- set the textFont of tObject to "(Text)" -- where tObject is always a field reference and it works well. As an old school programmer, it just bugs me that some piece of software (the macOS, LiveCode, whatever) is trying to hide the actual font from me for whatever reasons. As always, thanks for replying with the tip. From paul at researchware.com Tue May 25 15:46:24 2021 From: paul at researchware.com (Paul Dupuis) Date: Tue, 25 May 2021 15:46:24 -0400 Subject: 3-way slider control In-Reply-To: <6AC9A276-2445-479F-A2D0-8E53D8635001@all-auctions.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <6AC9A276-2445-479F-A2D0-8E53D8635001@all-auctions.com> Message-ID: <0e7b45cc-2801-cfc8-9a52-0a09bc8ae205@researchware.com> Yea, I know I can make my own custom controls and have on numerous occasions. I *MUCH* prefer to use existing controls as I dislike UI coding. To me it is the most tedious part of app development. This google search shows (at least the majority of initial images) a bunch of 2-position on/off switches that are often circular or squares "thumbs" in a oval or rectangular "switch". I was looking for something like that (or LC's switch widget) but with 3 positions. https://www.google.com/search?q=sliding+switch+icons&tbm=isch&ved=2ahUKEwiR6vXFyuXwAhU517sIHfbeA-kQ2-cCegQIABAA&oq=sliding+switch+icons&gs_lcp=CgNpbWcQAzoGCAAQBxAeOggIABAIEAcQHlCFMFijOWC_PWgAcAB4AIABnwGIAeEIkgEDMC44mAEAoAEBqgELZ3dzLXdpei1pbWfAAQE&sclient=img&ei=BFKtYJHYH7mu7_UP9r2PyA4&bih=910&biw=1920 Regardless, I have decided to use a standard LC slider set to -1,0,+1 with some labels grouped to it. It works like a charm and minimizes the number of graphics/objects and code. Thanks, On 5/25/2021 1:14 PM, Rick Harrison via use-livecode wrote: > Hi Paul, > > You can make your own custom controls in LiveCode. > > Perhaps you just want something more like three radio buttons, > or simulate a slider control with buttons and graphics. > > Give us an example image to help clarify what you want. > > Thanks, > > Rick > >> On May 25, 2021, at 11:38 AM, Paul Dupuis via use-livecode wrote: >> >> Rick and Jacqueline, >> >> Thank you for the horizontal slider suggestions. This could suffice for what I need. I was imagining more of the common "circle inside an oval" "switch" control you see on the web and in apps these days. However, beggars can't always be choosers and I the slider works well for what I need. >> >> Roger, >> >> Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting the controls to get the style I am seeking the following error popped up: >> >> *compiling at 11:34:54 AM* >> >> Type Expression: bad factor >> >> Object backBar >> >> Line if tx ? tIndEndPos then >> >> Hint ? >> >> I did not seem to actually impact continue to refine the appearance. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue May 25 21:08:21 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 25 May 2021 20:08:21 -0500 Subject: 3-way slider control In-Reply-To: <0e7b45cc-2801-cfc8-9a52-0a09bc8ae205@researchware.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <6AC9A276-2445-479F-A2D0-8E53D8635001@all-auctions.com> <0e7b45cc-2801-cfc8-9a52-0a09bc8ae205@researchware.com> Message-ID: <179a6371f88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> > Regardless, I have decided to use a standard LC slider set to > -1,0,+1 with some labels grouped to it. It works like a charm > and minimizes the number of graphics/objects and code. I was interested to see that; it's clever, and it does work if you click in the slider bar. But dragging the indicator allows partial decimal positions. I don't know if that matters for your purposes. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From david.bovill at gmail.com Wed May 26 06:29:04 2021 From: david.bovill at gmail.com (David Bovill) Date: Wed, 26 May 2021 11:29:04 +0100 Subject: Browser Widget Issue In-Reply-To: References: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> Message-ID: <27db0720-b286-4e0e-ab57-3f6e08867fd8@Spark> Thanks Keith - the issue is with the HTML5 that uses modern webrtc standards for video - either the javascript is excluding the type of embedded framework Livecode is no using on MacOS - or the framework doesn?t;t yet support those. Features - I?d like to check - but not sure what Livecode is using under the hood. Would be nice if it were in the dictionary entry. On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode , wrote: > Hi David, > Pass on the framework, but regarding the page? > > FWIW from the message box, I was able to set the url of widget ?Browser? to "https://obs.ninja? (apparently empty...) but then put the htmltext of widget ?Browser? to see that there is indeed some content. > > So, it?s not scripting itself to hide and there?s some content & potential to investigate why it?s rendering as 'white on white'. However, only inline styling is available as AFAIK there?s no dev tools nor access to any downloaded css files, wherever resources might get cached by the LC browser widget?? > > Good luck, > Keith > > > On 25 May 2021, at 17:53, David Bovill via use-livecode wrote: > > > > I?m having trouble keeping track of which framework the browser widget uses - on MacOS is it using webkit or Chromium? > > > > A url I am trying to access is blank - https://obs.ninja - while it is showing in Safari and Chrome on the desktop - any suggestions? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed May 26 11:00:17 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 May 2021 11:00:17 -0400 Subject: 3-way slider control In-Reply-To: <179a6371f88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <6AC9A276-2445-479F-A2D0-8E53D8635001@all-auctions.com> <0e7b45cc-2801-cfc8-9a52-0a09bc8ae205@researchware.com> <179a6371f88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <05232754-ba66-a551-c285-171881553a66@researchware.com> On 5/25/2021 9:08 PM, J. Landman Gay via use-livecode wrote: >> Regardless, I have decided to use a standard LC slider set to >> -1,0,+1 with some labels grouped to it. It works like a charm >> and minimizes the number of graphics/objects and code. > > I was interested to see that; it's clever, and it does work if you > click in the slider bar. But dragging the indicator allows partial > decimal positions. I don't know if that matters for your purposes. > I created a slider with a label on the left and right in a group. The slider is set to min 0, max 2, inc 1 and it's script is: on scrollbarDrag pNewPosition ? switch pNewPosition ??? case 0 ????? enable fld "CiC_Label" ????? disable fld "Src_Label" ????? set the tooltip of me to "Text style changes will be applied to CiC only" ????? set the thumbPosition of me to 0 ????? break ??? case 1 ????? enable fld "CiC_Label" ????? enable fld "Src_Label" ????? set the tooltip of me to "Text style changes will be applied to both CiC and Source" ????? set the thumbPosition of me to 1 ????? break ??? case 2 ????? disable fld "CiC_Label" ????? enable fld "Src_Label" ????? set the tooltip of me to "Text style changes will be applied to Source only" ????? set the thumbPosition of me to 2 ????? break ? end switch end scrollbarDrag The set the thumbPosition forces any attempt at sliding to move to only left, center, and right positions. When left, the left label is enabled, the right label is disabled, and the tooltip for the slider reflects the choice. When right, the right label is enabled, left label disabled and the tooltip updated. When center, both labels are enabled and the tool tip updated. From harrison at all-auctions.com Wed May 26 11:52:57 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 26 May 2021 11:52:57 -0400 Subject: 3-way slider control In-Reply-To: <179a6371f88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <837452f0-9794-55ce-a185-043d66c47b3a@researchware.com> <831712cf-1f75-c2c0-19d8-90188a29f745@researchware.com> <6AC9A276-2445-479F-A2D0-8E53D8635001@all-auctions.com> <0e7b45cc-2801-cfc8-9a52-0a09bc8ae205@researchware.com> <179a6371f88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I thought of this before I saw Paul?s solution: Name the scrollbar: ScrollbarThreeStateButtonValue on mouseUp put the thumbposition of me into ScrollbarThreeStateButtonValue put the round of ScrollbarThreeStateButtonValue into VarScrollbarThreeStateButton2 set the thumbposition of me to VarScrollbarThreeStateButton2 end mouseUp > On May 25, 2021, at 9:08 PM, J. Landman Gay via use-livecode wrote: > >> Regardless, I have decided to use a standard LC slider set to >> -1,0,+1 with some labels grouped to it. It works like a charm >> and minimizes the number of graphics/objects and code. > > I was interested to see that; it's clever, and it does work if you click in the slider bar. But dragging the indicator allows partial decimal positions. I don't know if that matters for your purposes. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Wed May 26 12:16:46 2021 From: curry at pair.com (Curry Kenworthy) Date: Wed, 26 May 2021 12:16:46 -0400 Subject: 3-way slider control In-Reply-To: <05232754-ba66-a551-c285-171881553a66@researchware.com> References: <05232754-ba66-a551-c285-171881553a66@researchware.com> Message-ID: <954d5a9a-cb4a-ea2c-b676-0c4fb1f65c7e@pair.com> Paul: > I created a slider with a label on the left and right in a group. > The slider is set to min 0, max 2, inc 1 and it's script is: > on scrollbarDrag pNewPosition > [...] I like this UI approach! Your script could be shorter. A 4-liner or 5-liner would be ideal; just eliminate the switch. (The current code is essentially repeating the same commands 3 times.) Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From paul at researchware.com Wed May 26 13:28:55 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 May 2021 13:28:55 -0400 Subject: 3-way slider control In-Reply-To: <954d5a9a-cb4a-ea2c-b676-0c4fb1f65c7e@pair.com> References: <05232754-ba66-a551-c285-171881553a66@researchware.com> <954d5a9a-cb4a-ea2c-b676-0c4fb1f65c7e@pair.com> Message-ID: <3a041112-d5e4-7bdf-c6de-82cc74fd3471@researchware.com> On 5/26/2021 12:16 PM, Curry Kenworthy via use-livecode wrote: > > Paul: > > > I created a slider with a label on the left and right in a group. > > The slider is set to min 0, max 2, inc 1 and it's script is: > > on scrollbarDrag pNewPosition > > [...] > > I like this UI approach! Your script could be shorter. > A 4-liner or 5-liner would be ideal; just eliminate the switch. > (The current code is essentially repeating the same commands 3 times.) > What, like this: on scrollbarDrag pNewPosition ? local tToolTip = "CiC only,both CiC and Source,Source only" ? set the thumbPosition of me to pNewPosition ? set the tooltip of me to "Text style changes will be applied to"&&(item pNewPosition+1 of tToolTip) ? if pNewPosition=0 or pNewPosition=1 then enable fld "CiC_Label" else disable fld "CiC_Label" ? if pNewPosition=1 or pNewPosition=2 then enable fld "Src_Label" else disable fld "Src_Label" end scrollbarDrag From alex at tweedly.net Wed May 26 15:36:06 2021 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 26 May 2021 20:36:06 +0100 Subject: 3-way slider control In-Reply-To: <3a041112-d5e4-7bdf-c6de-82cc74fd3471@researchware.com> References: <05232754-ba66-a551-c285-171881553a66@researchware.com> <954d5a9a-cb4a-ea2c-b676-0c4fb1f65c7e@pair.com> <3a041112-d5e4-7bdf-c6de-82cc74fd3471@researchware.com> Message-ID: <938a936b-6d72-fe4c-177e-0e1bb10ca437@tweedly.net> I'd prefer it like ... On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote: > What, like this: > > on scrollbarDrag pNewPosition > ? local tToolTip = "CiC only,both CiC and Source,Source only" > ? set the thumbPosition of me to pNewPosition > ? set the tooltip of me to "Text style changes will be applied > to"&&(item pNewPosition+1 of tToolTip) ??? set the enabled of fld "CiC_Label" to (pNewPosition=0 or pNewPosition=1) ??? set the enabled of fld "Src_Label" to (pNewPosition=1 or pNewPosition=2) end scrollbarDrag or, of course, ?? set the enabled of fld "CiC_Label" to (pNewPosition <= 1) ?? set the enabled of fld "Src_Label" to (pNewPosition >= 1) All a matter of personal preference :-) Alex. From jeejeestudio at gmail.com Wed May 26 15:41:07 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Wed, 26 May 2021 21:41:07 +0200 Subject: After 2 years still no Server notes in the zip Message-ID: <5c27969b-3918-8186-f320-051d727d535e@gmail.com> Hi, why are there still no Server notes in the Server zip file on the downloads page. It only contains the release notes, which do not contain instructions on how to install. You can't expect new users to search into version 6 to find the release notes (which I have by the way) The notes needs also updating to which conf file needs editing, it has changed for a while it's not httpd.conf anymore. Yes you can search the forum, but that's not user friendly. How can one expect new users to start using the LC server to give it more fuel, when there are no instructions included? I Updated the bug report from 2 !! years ago: https://quality.livecode.com/show_bug.cgi?id=22405 An awesome server needs more attention. From jiml at netrin.com Wed May 26 15:41:18 2021 From: jiml at netrin.com (Jim Lambert) Date: Wed, 26 May 2021 12:41:18 -0700 Subject: 3-way slider control In-Reply-To: References: Message-ID: go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode" This stack contains a group which is a three-state toggle switch. The myState of the group contains its current state which is either "ON","OFF" or "MID" You can customize the states' colors by setting the color constants. See the group script. To use: Either drag the thumb OR Tap at the left, right or center of the control. Feel free to use, change, copy, whatever. Jim Lambert From paul at researchware.com Wed May 26 15:45:22 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 May 2021 15:45:22 -0400 Subject: 3-way slider control In-Reply-To: <938a936b-6d72-fe4c-177e-0e1bb10ca437@tweedly.net> References: <05232754-ba66-a551-c285-171881553a66@researchware.com> <954d5a9a-cb4a-ea2c-b676-0c4fb1f65c7e@pair.com> <3a041112-d5e4-7bdf-c6de-82cc74fd3471@researchware.com> <938a936b-6d72-fe4c-177e-0e1bb10ca437@tweedly.net> Message-ID: :-) On 5/26/2021 3:36 PM, Alex Tweedly via use-livecode wrote: > I'd prefer it like ... > > On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote: >> What, like this: >> >> on scrollbarDrag pNewPosition >> ? local tToolTip = "CiC only,both CiC and Source,Source only" >> ? set the thumbPosition of me to pNewPosition >> ? set the tooltip of me to "Text style changes will be applied >> to"&&(item pNewPosition+1 of tToolTip) > ??? set the enabled of fld "CiC_Label" to (pNewPosition=0 or > pNewPosition=1) > ??? set the enabled of fld "Src_Label" to (pNewPosition=1 or > pNewPosition=2) > end scrollbarDrag > > or, of course, > > ?? set the enabled of fld "CiC_Label" to (pNewPosition <= 1) > ?? set the enabled of fld "Src_Label" to (pNewPosition >= 1) > > All a matter of personal preference :-) > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Wed May 26 15:53:49 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 26 May 2021 15:53:49 -0400 Subject: 3-way slider control In-Reply-To: References: Message-ID: <1631D3CA-94D3-4004-B00A-69FB28CA9871@all-auctions.com> Cool custom 3 state toggle switch! A little more work, and code but truly a worth-while result. That will make Paul happy for sure! Thanks! Rick > On May 26, 2021, at 3:41 PM, Jim Lambert via use-livecode wrote: > > go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode" > > This stack contains a group which is a three-state toggle switch. > > The myState of the group contains its current state which is either "ON","OFF" or "MID" > > You can customize the states' colors by setting the color constants. > > See the group script. > > To use: Either drag the thumb OR Tap at the left, right or center of the control. > > Feel free to use, change, copy, whatever. > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed May 26 16:08:56 2021 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 May 2021 16:08:56 -0400 Subject: 3-way slider control In-Reply-To: References: Message-ID: <0d313344-6774-c845-cd95-5d69ba7695dc@researchware.com> Thank you. On 5/26/2021 3:41 PM, Jim Lambert via use-livecode wrote: > go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode" > > This stack contains a group which is a three-state toggle switch. > > The myState of the group contains its current state which is either "ON","OFF" or "MID" > > You can customize the states' colors by setting the color constants. > > See the group script. > > To use: Either drag the thumb OR Tap at the left, right or center of the control. > > Feel free to use, change, copy, whatever. > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andrew at midwestcoastmedia.com Wed May 26 16:45:44 2021 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Wed, 26 May 2021 16:45:44 -0400 Subject: Browser Widget Issue In-Reply-To: References: Message-ID: <84B24A13-2DDF-4573-8D71-9C04D3C3B86F@midwestcoastmedia.com> This lesson hints at the fact that Chromium (CEF) is the default for all platforms except Mac that uses WebKit https://lessons.livecode.com/m/2592/l/278115-create-a-browser-instance-within-your-app -Andrew Bell > > Date: Wed, 26 May 2021 11:29:04 +0100 > From: David Bovill > Subject: Re: Browser Widget Issue > > Thanks Keith - the issue is with the HTML5 that uses modern webrtc standards for video - either the javascript is excluding the type of embedded framework Livecode is no using on MacOS - or the framework doesn?t;t yet support those. Features - I?d like to check - but not sure what Livecode is using under the hood. Would be nice if it were in the dictionary entry. > On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode , wrote: >> Hi David, >> Pass on the framework, but regarding the page? >> >> FWIW from the message box, I was able to set the url of widget ?Browser? to "https://obs.ninja? (apparently empty...) but then put the htmltext of widget ?Browser? to see that there is indeed some content. >> >> So, it?s not scripting itself to hide and there?s some content & potential to investigate why it?s rendering as 'white on white'. However, only inline styling is available as AFAIK there?s no dev tools nor access to any downloaded css files, wherever resources might get cached by the LC browser widget?? >> >> Good luck, >> Keith >> >>> On 25 May 2021, at 17:53, David Bovill via use-livecode wrote: >>> >>> I?m having trouble keeping track of which framework the browser widget uses - on MacOS is it using webkit or Chromium? >>> >>> A url I am trying to access is blank - https://obs.ninja - while it is showing in Safari and Chrome on the desktop - any suggestions? From jacque at hyperactivesw.com Wed May 26 17:56:15 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 26 May 2021 16:56:15 -0500 Subject: 3-way slider control In-Reply-To: References: Message-ID: <61e86b83-5d59-4264-57c2-c3ddb4092090@hyperactivesw.com> On 5/26/21 2:41 PM, Jim Lambert via use-livecode wrote: > go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode" > > This stack contains a group which is a three-state toggle switch. > > The myState of the group contains its current state which is either "ON","OFF" or "MID" > > You can customize the states' colors by setting the color constants. > > See the group script. > > To use: Either drag the thumb OR Tap at the left, right or center of the control. That is perfectly lovely! Thank you. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sean at pidigital.co.uk Wed May 26 23:24:25 2021 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 27 May 2021 04:24:25 +0100 Subject: 3-way slider control In-Reply-To: References: <05232754-ba66-a551-c285-171881553a66@researchware.com> <954d5a9a-cb4a-ea2c-b676-0c4fb1f65c7e@pair.com> <3a041112-d5e4-7bdf-c6de-82cc74fd3471@researchware.com> <938a936b-6d72-fe4c-177e-0e1bb10ca437@tweedly.net> Message-ID: I made a multiway one https://forums.livecode.com/viewtopic.php?f=7&t=35903&p=205657 On Wed, 26 May 2021 at 20:45, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > :-) > > On 5/26/2021 3:36 PM, Alex Tweedly via use-livecode wrote: > > I'd prefer it like ... > > > > On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote: > >> What, like this: > >> > >> on scrollbarDrag pNewPosition > >> local tToolTip = "CiC only,both CiC and Source,Source only" > >> set the thumbPosition of me to pNewPosition > >> set the tooltip of me to "Text style changes will be applied > >> to"&&(item pNewPosition+1 of tToolTip) > > set the enabled of fld "CiC_Label" to (pNewPosition=0 or > > pNewPosition=1) > > set the enabled of fld "Src_Label" to (pNewPosition=1 or > > pNewPosition=2) > > end scrollbarDrag > > > > or, of course, > > > > set the enabled of fld "CiC_Label" to (pNewPosition <= 1) > > set the enabled of fld "Src_Label" to (pNewPosition >= 1) > > > > All a matter of personal preference :-) > > > > Alex. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Thu May 27 13:37:02 2021 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 27 May 2021 18:37:02 +0100 Subject: Memory garbage overrun on windows server Message-ID: Hi I have an LC app running on a server that collects csv files from an email server, analyses the data from each, stores that data to an sql db then creates a pdf which it then uploads to an ftp server. Each iteration of this is followed by my attempt to purge the data in all local and global arrays and variables. The stack which is used to create the pdf is also closed, destroyed and deleted. But with each email that gets processed the memory usage goes up by about 120Mb. That's ok, but it only goes up. It only plateaus once it reaches 100%, which for a 2Gb server instance happens after just 10 emails. After that the resource manager begins to record hard faults/sec spikes and task manager shows the memory usage go up to 14Gb of 14Gb committed memory where it finally gives up and kills the app. Looking through old posts and bugs it does seem related to bug https://quality.livecode.com/show_bug.cgi?id=17434 but this refers to MacOS and heap fragmentation. Is this a problem with windows also? I wouldn't know. Is there some other way of purging this memory intermittently so that it can continue without having to keep closing down LC or the standalone and restarting it? It kind of defeats the object of having a server app when I have to baby sit it processing. Even once it has completed it never frees up the memory used until it is killed and restarted. I'm going to increase the memory allocation for the server instance to 4GB (at great cost) which will alleviate some of the pressure but is only delaying the inevitable. It does seem we need some kind of bare knuckle approach to memory purging in LC somewhere, in my humble opinion. But, in the meantime, if I can get some advice and background it may help to manage it for now. Regards S -- Pi Digital From matthias_livecode_150811 at m-r-d.de Thu May 27 14:01:38 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 May 2021 20:01:38 +0200 Subject: Memory garbage overrun on windows server In-Reply-To: References: Message-ID: Hi Sean, i am not sure if this helps, but are you using tsNet for sending the emails? If so, could you try to execute the command tsNetClose after each iteration? This should close all existing connections and disable tsNet. To use tsNet again you need to run tsNetInit once to initialize tsNet again. If this solves the problem, tsNet is the culprit. If it doesn't, we know tsNet isn't it. ;) Matthias > Am 27.05.2021 um 19:37 schrieb Sean Cole (Pi) via use-livecode : > > Hi > I have an LC app running on a server that collects csv files from an email > server, analyses the data from each, stores that data to an sql db then > creates a pdf which it then uploads to an ftp server. > > Each iteration of this is followed by my attempt to purge the data in all > local and global arrays and variables. The stack which is used to create > the pdf is also closed, destroyed and deleted. > > But with each email that gets processed the memory usage goes up by about > 120Mb. That's ok, but it only goes up. It only plateaus once it reaches > 100%, which for a 2Gb server instance happens after just 10 emails. After > that the resource manager begins to record hard faults/sec spikes and task > manager shows the memory usage go up to 14Gb of 14Gb committed memory where > it finally gives up and kills the app. > > Looking through old posts and bugs it does seem related to bug > https://quality.livecode.com/show_bug.cgi?id=17434 but this refers to MacOS > and heap fragmentation. Is this a problem with windows also? I wouldn't > know. > > Is there some other way of purging this memory intermittently so that it > can continue without having to keep closing down LC or the standalone and > restarting it? It kind of defeats the object of having a server app when I > have to baby sit it processing. Even once it has completed it never frees > up the memory used until it is killed and restarted. I'm going to increase > the memory allocation for the server instance to 4GB (at great cost) which > will alleviate some of the pressure but is only delaying the inevitable. > > It does seem we need some kind of bare knuckle approach to memory purging > in LC somewhere, in my humble opinion. But, in the meantime, if I can get > some advice and background it may help to manage it for now. > > Regards > S > -- > Pi Digital > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu May 27 16:17:25 2021 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 27 May 2021 21:17:25 +0100 Subject: Memory garbage overrun on windows server In-Reply-To: References: Message-ID: Good shout, Matthias. It could well be. Although, I?ve just been running the app for a different clients emails and those aren?t having as huge an effect. It is going up, but not by nearly as much as the first ones I was doing. The main difference between them is the amount of data in their csv files and then the pdf layouts. So, I?m wondering if it?s to do with the types of images used in this particular clients report templates. I?ll check it out once I?ve got through this batch. But I will try the tsNetCustomSync thing and get back to you. Thanks S On Thu, 27 May 2021 at 19:01, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Sean, > > i am not sure if this helps, but are you using tsNet for sending the > emails? > If so, could you try to execute the command tsNetClose after each > iteration? > This should close all existing connections and disable tsNet. > To use tsNet again you need to run tsNetInit once to initialize tsNet > again. > > If this solves the problem, tsNet is the culprit. If it doesn't, we know > tsNet isn't it. ;) > > Matthias > > > > > Am 27.05.2021 um 19:37 schrieb Sean Cole (Pi) via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi > > I have an LC app running on a server that collects csv files from an > email > > server, analyses the data from each, stores that data to an sql db then > > creates a pdf which it then uploads to an ftp server. > > > > Each iteration of this is followed by my attempt to purge the data in all > > local and global arrays and variables. The stack which is used to create > > the pdf is also closed, destroyed and deleted. > > > > But with each email that gets processed the memory usage goes up by about > > 120Mb. That's ok, but it only goes up. It only plateaus once it reaches > > 100%, which for a 2Gb server instance happens after just 10 emails. After > > that the resource manager begins to record hard faults/sec spikes and > task > > manager shows the memory usage go up to 14Gb of 14Gb committed memory > where > > it finally gives up and kills the app. > > > > Looking through old posts and bugs it does seem related to bug > > https://quality.livecode.com/show_bug.cgi?id=17434 but this refers to > MacOS > > and heap fragmentation. Is this a problem with windows also? I wouldn't > > know. > > > > Is there some other way of purging this memory intermittently so that it > > can continue without having to keep closing down LC or the standalone and > > restarting it? It kind of defeats the object of having a server app when > I > > have to baby sit it processing. Even once it has completed it never frees > > up the memory used until it is killed and restarted. I'm going to > increase > > the memory allocation for the server instance to 4GB (at great cost) > which > > will alleviate some of the pressure but is only delaying the inevitable. > > > > It does seem we need some kind of bare knuckle approach to memory purging > > in LC somewhere, in my humble opinion. But, in the meantime, if I can get > > some advice and background it may help to manage it for now. > > > > Regards > > S > > -- > > Pi Digital > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Pi Digital From matthias_livecode_150811 at m-r-d.de Thu May 27 16:34:07 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 May 2021 22:34:07 +0200 Subject: Memory garbage overrun on windows server In-Reply-To: References: Message-ID: tsNetCustomSync? You mean tsNetClose, right? ;) > Am 27.05.2021 um 22:17 schrieb Sean Cole (Pi) via use-livecode : > > Good shout, Matthias. It could well be. > > Although, I?ve just been running the app for a different clients emails and > those aren?t having as huge an effect. It is going up, but not by nearly as > much as the first ones I was doing. The main difference between them is the > amount of data in their csv files and then the pdf layouts. So, I?m > wondering if it?s to do with the types of images used in this particular > clients report templates. I?ll check it out once I?ve got through this > batch. > > But I will try the tsNetCustomSync thing and get back to you. > > Thanks > S > > On Thu, 27 May 2021 at 19:01, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Sean, >> >> i am not sure if this helps, but are you using tsNet for sending the >> emails? >> If so, could you try to execute the command tsNetClose after each >> iteration? >> This should close all existing connections and disable tsNet. >> To use tsNet again you need to run tsNetInit once to initialize tsNet >> again. >> >> If this solves the problem, tsNet is the culprit. If it doesn't, we know >> tsNet isn't it. ;) >> >> Matthias >> >> >> >>> Am 27.05.2021 um 19:37 schrieb Sean Cole (Pi) via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> Hi >>> I have an LC app running on a server that collects csv files from an >> email >>> server, analyses the data from each, stores that data to an sql db then >>> creates a pdf which it then uploads to an ftp server. >>> >>> Each iteration of this is followed by my attempt to purge the data in all >>> local and global arrays and variables. The stack which is used to create >>> the pdf is also closed, destroyed and deleted. >>> >>> But with each email that gets processed the memory usage goes up by about >>> 120Mb. That's ok, but it only goes up. It only plateaus once it reaches >>> 100%, which for a 2Gb server instance happens after just 10 emails. After >>> that the resource manager begins to record hard faults/sec spikes and >> task >>> manager shows the memory usage go up to 14Gb of 14Gb committed memory >> where >>> it finally gives up and kills the app. >>> >>> Looking through old posts and bugs it does seem related to bug >>> https://quality.livecode.com/show_bug.cgi?id=17434 but this refers to >> MacOS >>> and heap fragmentation. Is this a problem with windows also? I wouldn't >>> know. >>> >>> Is there some other way of purging this memory intermittently so that it >>> can continue without having to keep closing down LC or the standalone and >>> restarting it? It kind of defeats the object of having a server app when >> I >>> have to baby sit it processing. Even once it has completed it never frees >>> up the memory used until it is killed and restarted. I'm going to >> increase >>> the memory allocation for the server instance to 4GB (at great cost) >> which >>> will alleviate some of the pressure but is only delaying the inevitable. >>> >>> It does seem we need some kind of bare knuckle approach to memory purging >>> in LC somewhere, in my humble opinion. But, in the meantime, if I can get >>> some advice and background it may help to manage it for now. >>> >>> Regards >>> S >>> -- >>> Pi Digital >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > -- > Pi Digital > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu May 27 17:06:09 2021 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 27 May 2021 22:06:09 +0100 Subject: Memory garbage overrun on windows server In-Reply-To: References: Message-ID: What the. It autoincorrected to that! Bizarre technology. :/ On Thu, 27 May 2021 at 21:34, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > tsNetCustomSync? You mean tsNetClose, right? ;) > > > Am 27.05.2021 um 22:17 schrieb Sean Cole (Pi) via use-livecode < > use-livecode at lists.runrev.com>: > > > > Good shout, Matthias. It could well be. > > > > Although, I?ve just been running the app for a different clients emails > and > > those aren?t having as huge an effect. It is going up, but not by nearly > as > > much as the first ones I was doing. The main difference between them is > the > > amount of data in their csv files and then the pdf layouts. So, I?m > > wondering if it?s to do with the types of images used in this particular > > clients report templates. I?ll check it out once I?ve got through this > > batch. > > > > But I will try the tsNetCustomSync thing and get back to you. > > > > Thanks > > S > > > > On Thu, 27 May 2021 at 19:01, matthias rebbe via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Sean, > >> > >> i am not sure if this helps, but are you using tsNet for sending the > >> emails? > >> If so, could you try to execute the command tsNetClose after each > >> iteration? > >> This should close all existing connections and disable tsNet. > >> To use tsNet again you need to run tsNetInit once to initialize tsNet > >> again. > >> > >> If this solves the problem, tsNet is the culprit. If it doesn't, we know > >> tsNet isn't it. ;) > >> > >> Matthias > >> > >> > >> > >>> Am 27.05.2021 um 19:37 schrieb Sean Cole (Pi) via use-livecode < > >> use-livecode at lists.runrev.com>: > >>> > >>> Hi > >>> I have an LC app running on a server that collects csv files from an > >> email > >>> server, analyses the data from each, stores that data to an sql db then > >>> creates a pdf which it then uploads to an ftp server. > >>> > >>> Each iteration of this is followed by my attempt to purge the data in > all > >>> local and global arrays and variables. The stack which is used to > create > >>> the pdf is also closed, destroyed and deleted. > >>> > >>> But with each email that gets processed the memory usage goes up by > about > >>> 120Mb. That's ok, but it only goes up. It only plateaus once it reaches > >>> 100%, which for a 2Gb server instance happens after just 10 emails. > After > >>> that the resource manager begins to record hard faults/sec spikes and > >> task > >>> manager shows the memory usage go up to 14Gb of 14Gb committed memory > >> where > >>> it finally gives up and kills the app. > >>> > >>> Looking through old posts and bugs it does seem related to bug > >>> https://quality.livecode.com/show_bug.cgi?id=17434 but this refers to > >> MacOS > >>> and heap fragmentation. Is this a problem with windows also? I wouldn't > >>> know. > >>> > >>> Is there some other way of purging this memory intermittently so that > it > >>> can continue without having to keep closing down LC or the standalone > and > >>> restarting it? It kind of defeats the object of having a server app > when > >> I > >>> have to baby sit it processing. Even once it has completed it never > frees > >>> up the memory used until it is killed and restarted. I'm going to > >> increase > >>> the memory allocation for the server instance to 4GB (at great cost) > >> which > >>> will alleviate some of the pressure but is only delaying the > inevitable. > >>> > >>> It does seem we need some kind of bare knuckle approach to memory > purging > >>> in LC somewhere, in my humble opinion. But, in the meantime, if I can > get > >>> some advice and background it may help to manage it for now. > >>> > >>> Regards > >>> S > >>> -- > >>> Pi Digital > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at 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 at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > -- > > Pi Digital > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Pi Digital From martyknappster at gmail.com Sat May 29 13:20:04 2021 From: martyknappster at gmail.com (Marty Knapp) Date: Sat, 29 May 2021 10:20:04 -0700 Subject: Lock screen working on Big Sur? Message-ID: <241DD705-1C4C-4483-A411-4FFE668A82E4@gmail.com> I have an app that a user can load customer info from a popup and it loads the info into several fields. There is also a ?Clear? button to clear these fields. In both case I lock the screen before and unlock it afterwards. The standalone running under Mojave works fine. But under Big Sur it?s really slow and it acts like "lock screen" isn?t working - you can watch the screen draw one by one with each field. Anybody else seeing this? Marty From tom at makeshyft.com Sat May 29 13:43:47 2021 From: tom at makeshyft.com (Tom Glod) Date: Sat, 29 May 2021 13:43:47 -0400 Subject: Browser Widget Issue In-Reply-To: <27db0720-b286-4e0e-ab57-3f6e08867fd8@Spark> References: <87aa7acc-0b9e-1255-b159-bf4a8dc3319b@researchware.com> <27db0720-b286-4e0e-ab57-3f6e08867fd8@Spark> Message-ID: following On Wed, May 26, 2021 at 6:30 AM David Bovill via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Keith - the issue is with the HTML5 that uses modern webrtc > standards for video - either the javascript is excluding the type of > embedded framework Livecode is no using on MacOS - or the framework > doesn?t;t yet support those. Features - I?d like to check - but not sure > what Livecode is using under the hood. Would be nice if it were in the > dictionary entry. > On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > Hi David, > > Pass on the framework, but regarding the page? > > > > FWIW from the message box, I was able to set the url of widget ?Browser? > to "https://obs.ninja? (apparently empty...) but then put the htmltext of > widget ?Browser? to see that there is indeed some content. > > > > So, it?s not scripting itself to hide and there?s some content & > potential to investigate why it?s rendering as 'white on white'. However, > only inline styling is available as AFAIK there?s no dev tools nor access > to any downloaded css files, wherever resources might get cached by the LC > browser widget?? > > > > Good luck, > > Keith > > > > > On 25 May 2021, at 17:53, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > > I?m having trouble keeping track of which framework the browser widget > uses - on MacOS is it using webkit or Chromium? > > > > > > A url I am trying to access is blank - https://obs.ninja - while it > is showing in Safari and Chrome on the desktop - any suggestions? > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From benr_mc at cogapp.com Mon May 31 08:39:53 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 31 May 2021 13:39:53 +0100 Subject: Spurious characters from html files - text encoding issues? In-Reply-To: References: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> <15C84F37-C33A-46F3-A89E-499410D45DBA@me.com> <253f2a9a-c17c-0bd1-8bc1-9acbe8fd4194@cogapp.com> Message-ID: <23ec51ca-2a4e-3636-9dad-8f44449fb6d0@cogapp.com> Also relevant enhancement requests: https://quality.livecode.com/show_bug.cgi?id=13581 https://quality.livecode.com/show_bug.cgi?id=12205 On 21/05/2021 15:57, Paul Dupuis via use-livecode wrote: > BBEdit has a built in "guess encoding" function to try to determine the > encoding of a text file. > > I have had this bug in to LC now for 6 years: > https://quality.livecode.com/show_bug.cgi?id=14474 > > Even Frasier, who did much of the Unicode work for LC7 agreed there should be > a guessEncoding function in Livecode. Instead, anyone who needs one either has > to write their own or find someone who has written one to get one from. > > While you can never tell with 100% accurate the encoding for all text files, > there are algorithms that make pretty good guesses. I'd still like to see it > as a build in function in the LC engine. > > > On 5/21/2021 8:19 AM, Keith Clarke via use-livecode wrote: >> Hi Ben, >> Thanks for the further details and tips - my problem is now solved! >> >> The BBedit tip re file 'open-as UTF-8' was a great help. I?d not noticed >> these options before (as I tend to open files from PathFinder folder lists >> not via apps). However, this did indeed reveal format errors on these cache >> files when they were saved with the raw (UTF-8 confirmed) htmltext of widget >> ?browser?. Text encoding to UTF-8 before saving fixed this issue and >> re-crawling the source pages has resulted in files that BBEdit recognises as >> ?regular? UTF-8. >> >> This reduced the anomaly count but whilst testing, I also noticed that the >> read-write cycle updating the output csv file was spawning anomalies and >> expanding those already present. So I wrapped this function to also force >> UTF-8 decoding/encoding - and now all is now good. >> >> No longer will I assume that a simple text file is a simple text file! :-) >> >> Thanks & regards, >> Keith >> >>> On 19 May 2021, at 19:01, Ben Rubinstein via use-livecode >>> wrote: >>> >>> Hi Keith, >>> >>> This might need input from the mothership, but I think if you've obtained >>> the text from the browser widget's htmlText, it will probably be in the >>> special 'internal' format. I'm not entirely sure what happens when you save >>> that as text - I suspect it depends on the platform. >>> >>> So for clarity (if you have the opportunity to re-save this material; and >>> if it won't confuse things because existing files are in one format, and >>> new ones another) it would probably be best to textEncode it into UTF-8, >>> then save it as binfile. That way the files on disk should be UTF-8, which >>> is something like a standard. >>> >>> What I tend to do in this situation where I have text files and I'm not >>> sure what the format is (and I spend quite a lot of time messing with text >>> files from various sources, some unknown and many not under my control) is >>> use a good text editor - I use BBedit on Mac, not sure what suitable >>> alternatives would be on Windows or Linux - to investigate the file. BBEdit >>> makes a guess when it opens the file, but allows you to try re-opening in >>> different encodings, and then warns you if there are byte sequences that >>> don't make sense with that encoding. So by doing this I can often figure >>> out what the encoding of the file is - once you've got that, you're off to >>> the races. >>> >>> But if you have the opportunity to re-collect the whole set, then I *think* >>> the above formula of textEncoding from LC's internal format to UTF-8, then >>> saving as binary file; and reversing the process when you load them back in >>> to process; and then doing the same again - possibly to a different format >>> - when you output the CSV, should see you clear. >>> >>> HTH, >>> >>> Ben >>> >>> >>> On 17/05/2021 15:58, Keith Clarke via use-livecode wrote: >>>> Thanks Ben, that?s really interesting. It never occurred to me that these >>>> html files might be anything other than simple plain text files, as I?d >>>> work with in Coda, etc., for years. >>>> The local HTML files are storage of the HTML text pulled from the LiveCode >>>> browser widget, saved using the URL ?file:? option. I?d been working >>>> ?live? from the Browser widget?s html text until recently, when I?ve >>>> introduced these local files to split page ?crawling? and analysis >>>> activities without needing a database. >>>> Reading the files back into LiveCode with the URL ?file:? option works >>>> quite happily with no text anomalies when put into a field to read. The >>>> problem seems to arise when I load the HTML text into a variable and then >>>> start to extract elements using LiveCode's text chunking. For example >>>> pulling the text between the offsets of say

&

tags is when these >>>> character anomalies have started to pop into the strings. >>>> A quick test on reading in the local HTML files with the URL ?binfile:? >>>> option and then textDecode(tString, ?UTF-8?) seems to reduce the frequency >>>> and size of anomalies, but some remain. So, I?ll see if re-crawling pages >>>> and saving the HTML text from the browser widget as binfiles reduces this >>>> further. >>>> Thanks & regards, >>>> Keith >>>>> On 17 May 2021, at 12:57, Ben Rubinstein via use-livecode >>>>> wrote: >>>>> >>>>> Hi Keith, >>>>> >>>>> The thing with character encoding is that you always need to know where >>>>> it's coming from and where it's going. >>>>> >>>>> Do you know how the HTML documents were obtained? Saved from a browser, >>>>> fetched by curl, fetched by Livecode? Or generated on disk by something >>>>> else? >>>>> >>>>> If it was saved from a browser or fetched by curl, then the format is >>>>> most likely to be UTF-8. In order to see it correctly in LiveCode, you'd >>>>> need to two things: >>>>> ????- read it in as a binary file, rather than text (e.g. use URL >>>>> "binfile://..." or "open file ... for binary read") >>>>> ????- convert it to the internal text format FROM UTF-8 - which means use >>>>> textDecode(tString, "UTF-8"), rather than textEncode >>>>> >>>>> If it was fetched by LiveCode, then it most likely arrived over the wire >>>>> as UTF-8, but if it was saved by LiveCode as text (not binary) then it >>>>> _may_ have got corrupted. >>>>> >>>>> If you can see the text looking as you expect in LiveCode, you've solved >>>>> half the problem. Then you need to consider where it's going: who (that) >>>>> is going to consume the CSV. This is the time to use textEncode, and then >>>>> be sure to save it as a binary file. If the consumer will be something >>>>> reasonably modern, then again UTF-8 is a good default. If it's something >>>>> much older, you might need to use "CP1252" or similar. >>>>> >>>>> HTH, >>>>> >>>>> Ben >>>>> >>>>> >>>>> On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: >>>>>> Hi folks, >>>>>> I?m using LiveCode to summarise text from HTML documents into csv >>>>>> summary files and am noticing that when I extract strings from html >>>>>> documents stored on disk - rather than visiting the sites via the >>>>>> browser widget & grabbing the HTML text - weird characters being >>>>>> inserted in place of what appear to be ?regular? characters. >>>>>> The number of characters inserted can run into the thousands per >>>>>> instance, making my csv ?summary? file run into gigabytes! Has anyone >>>>>> seen the following type of string before, happen to know what might be >>>>>> causing it and offer a fix? >>>>>> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? >>>>>> >>>>>> I?ve tried deliberately setting UTF-8 on the extracted strings, with put >>>>>> textEncode(tString, "UTF-8") into tString. Currently I?m not attempting >>>>>> to force any text format on the local HTML documents. >>>>>> Thanks & regards, >>>>>> Keith >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon May 31 10:39:44 2021 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 May 2021 10:39:44 -0400 Subject: Spurious characters from html files - text encoding issues? In-Reply-To: <23ec51ca-2a4e-3636-9dad-8f44449fb6d0@cogapp.com> References: <07860cf2-80b6-0bfa-aee1-0cf0addbc08f@cogapp.com> <15C84F37-C33A-46F3-A89E-499410D45DBA@me.com> <253f2a9a-c17c-0bd1-8bc1-9acbe8fd4194@cogapp.com> <23ec51ca-2a4e-3636-9dad-8f44449fb6d0@cogapp.com> Message-ID: <84baae29-e910-56e9-e8fe-bdd336c35b9e@researchware.com> Thanks for posting these. The later one (https://quality.livecode.com/show_bug.cgi?id=12205) I was already following because I think I raised the issue originally and Mark kindly added a bug entry. The former I was unaware, but would also be a convenient enhancement - especially along with a built-in 'guessEncoding' function. On 5/31/2021 8:39 AM, Ben Rubinstein via use-livecode wrote: > Also relevant enhancement requests: > https://quality.livecode.com/show_bug.cgi?id=13581 > https://quality.livecode.com/show_bug.cgi?id=12205 > > On 21/05/2021 15:57, Paul Dupuis via use-livecode wrote: >> BBEdit has a built in "guess encoding" function to try to determine >> the encoding of a text file. >> >> I have had this bug in to LC now for 6 years: >> https://quality.livecode.com/show_bug.cgi?id=14474 >> >> Even Frasier, who did much of the Unicode work for LC7 agreed there >> should be a guessEncoding function in Livecode. Instead, anyone who >> needs one either has to write their own or find someone who has >> written one to get one from. >> >> While you can never tell with 100% accurate the encoding for all text >> files, there are algorithms that make pretty good guesses. I'd still >> like to see it as a build in function in the LC engine. >> >> >> On 5/21/2021 8:19 AM, Keith Clarke via use-livecode wrote: >>> Hi Ben, >>> Thanks for the further details and tips - my problem is now solved! >>> >>> The BBedit tip re file 'open-as UTF-8' was a great help. I?d not >>> noticed these options before (as I tend to open files from >>> PathFinder folder lists not via apps). However, this did indeed >>> reveal format errors on these cache files when they were saved with >>> the raw (UTF-8 confirmed) htmltext of widget ?browser?. Text >>> encoding to UTF-8 before saving fixed this issue and re-crawling the >>> source pages has resulted in files that BBEdit recognises as >>> ?regular? UTF-8. >>> >>> This reduced the anomaly count but whilst testing, I also noticed >>> that the read-write cycle updating the output csv file was spawning >>> anomalies and expanding those already present. So I wrapped this >>> function to also force UTF-8 decoding/encoding - and now all is now >>> good. >>> >>> No longer will I assume that a simple text file is a simple text >>> file! :-) >>> >>> Thanks & regards, >>> Keith >>> >>>> On 19 May 2021, at 19:01, Ben Rubinstein via use-livecode >>>> wrote: >>>> >>>> Hi Keith, >>>> >>>> This might need input from the mothership, but I think if you've >>>> obtained the text from the browser widget's htmlText, it will >>>> probably be in the special 'internal' format. I'm not entirely sure >>>> what happens when you save that as text - I suspect it depends on >>>> the platform. >>>> >>>> So for clarity (if you have the opportunity to re-save this >>>> material; and if it won't confuse things because existing files are >>>> in one format, and new ones another) it would probably be best to >>>> textEncode it into UTF-8, then save it as binfile. That way the >>>> files on disk should be UTF-8, which is something like a standard. >>>> >>>> What I tend to do in this situation where I have text files and I'm >>>> not sure what the format is (and I spend quite a lot of time >>>> messing with text files from various sources, some unknown and many >>>> not under my control) is use a good text editor - I use BBedit on >>>> Mac, not sure what suitable alternatives would be on Windows or >>>> Linux - to investigate the file. BBEdit makes a guess when it opens >>>> the file, but allows you to try re-opening in different encodings, >>>> and then warns you if there are byte sequences that don't make >>>> sense with that encoding. So by doing this I can often figure out >>>> what the encoding of the file is - once you've got that, you're off >>>> to the races. >>>> >>>> But if you have the opportunity to re-collect the whole set, then I >>>> *think* the above formula of textEncoding from LC's internal format >>>> to UTF-8, then saving as binary file; and reversing the process >>>> when you load them back in to process; and then doing the same >>>> again - possibly to a different format - when you output the CSV, >>>> should see you clear. >>>> >>>> HTH, >>>> >>>> Ben >>>> >>>> >>>> On 17/05/2021 15:58, Keith Clarke via use-livecode wrote: >>>>> Thanks Ben, that?s really interesting. It never occurred to me >>>>> that these html files might be anything other than simple plain >>>>> text files, as I?d work with in Coda, etc., for years. >>>>> The local HTML files are storage of the HTML text pulled from the >>>>> LiveCode browser widget, saved using the URL ?file:? option. I?d >>>>> been working ?live? from the Browser widget?s html text until >>>>> recently, when I?ve introduced these local files to split page >>>>> ?crawling? and analysis activities without needing a database. >>>>> Reading the files back into LiveCode with the URL ?file:? option >>>>> works quite happily with no text anomalies when put into a field >>>>> to read. The problem seems to arise when I load the HTML text into >>>>> a variable and then start to extract elements using LiveCode's >>>>> text chunking. For example pulling the text between the offsets of >>>>> say

&

tags is when these character anomalies have started >>>>> to pop into the strings. >>>>> A quick test on reading in the local HTML files with the URL >>>>> ?binfile:? option and then textDecode(tString, ?UTF-8?) seems to >>>>> reduce the frequency and size of anomalies, but some remain. So, >>>>> I?ll see if re-crawling pages and saving the HTML text from the >>>>> browser widget as binfiles reduces this further. >>>>> Thanks & regards, >>>>> Keith >>>>>> On 17 May 2021, at 12:57, Ben Rubinstein via use-livecode >>>>>> wrote: >>>>>> >>>>>> Hi Keith, >>>>>> >>>>>> The thing with character encoding is that you always need to know >>>>>> where it's coming from and where it's going. >>>>>> >>>>>> Do you know how the HTML documents were obtained? Saved from a >>>>>> browser, fetched by curl, fetched by Livecode? Or generated on >>>>>> disk by something else? >>>>>> >>>>>> If it was saved from a browser or fetched by curl, then the >>>>>> format is most likely to be UTF-8. In order to see it correctly >>>>>> in LiveCode, you'd need to two things: >>>>>> ????- read it in as a binary file, rather than text (e.g. use URL >>>>>> "binfile://..." or "open file ... for binary read") >>>>>> ????- convert it to the internal text format FROM UTF-8 - which >>>>>> means use textDecode(tString, "UTF-8"), rather than textEncode >>>>>> >>>>>> If it was fetched by LiveCode, then it most likely arrived over >>>>>> the wire as UTF-8, but if it was saved by LiveCode as text (not >>>>>> binary) then it _may_ have got corrupted. >>>>>> >>>>>> If you can see the text looking as you expect in LiveCode, you've >>>>>> solved half the problem. Then you need to consider where it's >>>>>> going: who (that) is going to consume the CSV. This is the time >>>>>> to use textEncode, and then be sure to save it as a binary file. >>>>>> If the consumer will be something reasonably modern, then again >>>>>> UTF-8 is a good default. If it's something much older, you might >>>>>> need to use "CP1252" or similar. >>>>>> >>>>>> HTH, >>>>>> >>>>>> Ben >>>>>> >>>>>> >>>>>> On 17/05/2021 09:28, Keith Clarke via use-livecode wrote: >>>>>>> Hi folks, >>>>>>> I?m using LiveCode to summarise text from HTML documents into >>>>>>> csv summary files and am noticing that when I extract strings >>>>>>> from html documents stored on disk - rather than visiting the >>>>>>> sites via the browser widget & grabbing the HTML text - weird >>>>>>> characters being inserted in place of what appear to be >>>>>>> ?regular? characters. >>>>>>> The number of characters inserted can run into the thousands per >>>>>>> instance, making my csv ?summary? file run into gigabytes! Has >>>>>>> anyone seen the following type of string before, happen to know >>>>>>> what might be causing it and offer a fix? >>>>>>> ???????????????????????????????????????????????????????????????????????????????????????????????????????????????? >>>>>>> >>>>>>> I?ve tried deliberately setting UTF-8 on the extracted strings, >>>>>>> with put textEncode(tString, "UTF-8") into tString. Currently >>>>>>> I?m not attempting to force any text format on the local HTML >>>>>>> documents. >>>>>>> Thanks & regards, >>>>>>> Keith >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon May 31 11:39:38 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 31 May 2021 18:39:38 +0300 Subject: [ANN] This Week in LiveCode 267 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #267 here: https://bit.ly/3yPwCSB This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps