Re: Browser widget doesn't display PDF
Hello Panos, thanks for reminding me of bug 22534. I should have remember it. That bug report is based on a support request i filed. ;) > Am 29.11.2022 um 18:38 schrieb panagiotis m via use-livecode > : > > Hello Matthias, > > See: > > https://quality.livecode.com/show_bug.cgi?id=18378 Thanks, i was not aware of that report. Btw. you are commenting in that report, that you could replicate the problem with a 316 page PDF, but not with a 5 page pdf. In my case the PDF has only 1 page. > https://quality.livecode.com/show_bug.cgi?id=22534 > I knew that one already, because its a bug report based on a support request i filed. ;) To be honest, i almost forget about it. Rereading my comments i remembered that one hast remove the plugins and logoff and login again to get it working with the widget. > I suggest using a PDF widget instead of a browser widget to display the pdf > files, until this bug is fixed. Btw. this might be a workaround for me if i need also the Acrobat plugins, but according to the dictionary the PDF widget is only available with a Pro license. So this is not a workaround for everyone. Anyway, thanks again. Matthias > > Kind regards, > Panos > -- > > On Tue, 29 Nov 2022 at 18:59, matthias rebbe via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Hello, >> >> i am currently having problems that a browser widget doesn't display a >> pdf, regardless if remote or local. >> >> I just see a white blank page. Sometime an error message comes up telling >> me that "PDFViewer could not find a compatible version of Adobe Acrobat or >> Adobe Reader for displaying this PDF file." >> Something like that. I get a German error message. >> >> The interesting part is, that Safari does not have a problem with >> displaying the PDF and the folders ~/library/internet-plugins and >> /library/Internet-plugins both contain the Acrobat plugins. >> >> Tried here with LC 9.6.9RC2 and 10DP4 on Ventura 13.0.1. >> >> Does anyone has an idea what might be wrong? >> >> Regards, >> Matthias >> >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[OT] Upgrade to Monterey from Big Sur Update Simulator/Multiple Xcode versions
FYI: I was able to run Xcode 14.1 and invoke the iPhone 14 simulator. I tested an LC app building against Xcode 13.2.1. Clicked the test button and BOOM there was the app on the iPhone 14 simulator. Only one little hiccup. I had to select the hardware keyboard then disable then re-enable to get the keyboard to type into LC fields. After that I could test over and over with no problems. Build time and simulator performance is amazingly fast. M1 Mac Mini LC 9.6.9 rc2 Thanks again to all for your help! Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Browser widget doesn't display PDF
Hello Matthias, See: https://quality.livecode.com/show_bug.cgi?id=18378 https://quality.livecode.com/show_bug.cgi?id=22534 I suggest using a PDF widget instead of a browser widget to display the pdf files, until this bug is fixed. Kind regards, Panos -- On Tue, 29 Nov 2022 at 18:59, matthias rebbe via use-livecode < use-livecode@lists.runrev.com> wrote: > Hello, > > i am currently having problems that a browser widget doesn't display a > pdf, regardless if remote or local. > > I just see a white blank page. Sometime an error message comes up telling > me that "PDFViewer could not find a compatible version of Adobe Acrobat or > Adobe Reader for displaying this PDF file." > Something like that. I get a German error message. > > The interesting part is, that Safari does not have a problem with > displaying the PDF and the folders ~/library/internet-plugins and > /library/Internet-plugins both contain the Acrobat plugins. > > Tried here with LC 9.6.9RC2 and 10DP4 on Ventura 13.0.1. > > Does anyone has an idea what might be wrong? > > Regards, > Matthias > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Browser widget doesn't display PDF
Hello, i am currently having problems that a browser widget doesn't display a pdf, regardless if remote or local. I just see a white blank page. Sometime an error message comes up telling me that "PDFViewer could not find a compatible version of Adobe Acrobat or Adobe Reader for displaying this PDF file." Something like that. I get a German error message. The interesting part is, that Safari does not have a problem with displaying the PDF and the folders ~/library/internet-plugins and /library/Internet-plugins both contain the Acrobat plugins. Tried here with LC 9.6.9RC2 and 10DP4 on Ventura 13.0.1. Does anyone has an idea what might be wrong? Regards, Matthias ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: [OT] Upgrade to Monterey from Big Sur
Matthias, That worked! Thank you so much. The link sent me to the app store. I clicked "Get" and after the download finished the SW update pref appeared. Then the installation dialog started. Not that it made any difference, the SW update pref then spun for a second and showed the Ventura update again. But the Monterey installer was still on the screen. I clicked "install" and I was off to the races. I was done in about 30-40 minutes. I have an iPhone 14 pro simulator running using Xcode 14.1. I'm now going to see if I can get LC to install an app on it. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of matthias rebbe via use-livecode Sent: Monday, November 28, 2022 2:27 PM To: How to use LiveCode Cc: matthias_livecode_150...@m-r-d.de Subject: Re: [OT] Upgrade to Monterey from Big Sur I think under software updates only the newest os version is listed. The older versions need to be downloaded from the App Store Does this link work for you to download Monterey. https://apps.apple.com/us/app/macos-monterey/id1576738294?mt=12 > Am 28.11.2022 um 20:09 schrieb Ralph DiMola via use-livecode : > > Is it possible for me to upgrade my M1 Mac mini Big Sur to Monterey? I did some searches but I can't find anything. Software update only lists Ventura as an upgrade option. > > Thanks! > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Field content as parametres in a function
Your original is the same as: put field «test» into tParam answer testFunction(tParam) So yes, whatever is placed as a parameter to a function is not expanded. Think about doing the same thing with an arbitrary block of text in the field and what would be the expected result. Brian Milby br...@milby7.com > On Nov 29, 2022, at 6:26 AM, Tore Nilsen via use-livecode > wrote: > > > >> 29. nov. 2022 kl. 12:08 skrev Alex Tweedly via use-livecode >> : >> >> Yes, your description is correct (except for saying the behavior is >> "puzzling" :-) >> >> The first case you are passing a single parameter (which happens to have >> commas in its current content). You could have said " paramcount() >> returns 1 as expected". >> >> The second case you pass 5 values. >> >> And the third case, as you say, expands the value first, so it becomes a >> call with 5 parameters. >> >> Alex. > > What is «puzzling» to me, among a whole lot of other things I fail to grasp, > is why in the first example, the value in field «test» is treated as a single > parameter, but in the last example it is treated as five parameters, since > nothing has changed with the values in the field itself. I do however accept > the reality of it, but I wanted to understand why this is the way it is. My > original thinking was that by referencing the field as parameter, the values > of the field would then become de facto parameters passed on to the function. > I guess it is just another item in the long list of things I do not fully > understand. :-) > > Best regards > Tore > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Field content as parametres in a function
> 29. nov. 2022 kl. 12:08 skrev Alex Tweedly via use-livecode > : > > Yes, your description is correct (except for saying the behavior is > "puzzling" :-) > > The first case you are passing a single parameter (which happens to have > commas in its current content). You could have said " paramcount() > returns 1 as expected". > > The second case you pass 5 values. > > And the third case, as you say, expands the value first, so it becomes a call > with 5 parameters. > > Alex. What is «puzzling» to me, among a whole lot of other things I fail to grasp, is why in the first example, the value in field «test» is treated as a single parameter, but in the last example it is treated as five parameters, since nothing has changed with the values in the field itself. I do however accept the reality of it, but I wanted to understand why this is the way it is. My original thinking was that by referencing the field as parameter, the values of the field would then become de facto parameters passed on to the function. I guess it is just another item in the long list of things I do not fully understand. :-) Best regards Tore ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Field content as parametres in a function
Yes, your description is correct (except for saying the behavior is "puzzling" :-) The first case you are passing a single parameter (which happens to have commas in its current content). You could have said " paramcount() returns 1 as expected". The second case you pass 5 values. And the third case, as you say, expands the value first, so it becomes a call with 5 parameters. Alex. On 29/11/2022 08:03, Tore Nilsen via use-livecode wrote: I have come across a puzzling behavior when trying to use the content of a field as parametres in a function, and I am trying to understand why. I put the following in a field called «test»: 1,2,3,4,5 When I then call the function like this: answer testFunction(field «test»), the paramCount() returns 1 If I use the values directly in the script: answer testFunction(1,2,3,4,5), the paramCount() returns 5 as expected I will also get the expected result if a do the following: put "answer testFunction(" & field «test» & ")" into tScript do tScript I guess the reason for this is that in the last example, LiveCode compiles the content of the variable tScript before execution, and that this turns what is first treated as a single block of text into a list of parametres. The reason why I want to understand what is happening is that I am about to teach my students how to write reusable code that will behave correctly for any number of parametres. So my question is if I am on the right track? Best regards Tore Nilsen ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Field content as parametres in a function
I have come across a puzzling behavior when trying to use the content of a field as parametres in a function, and I am trying to understand why. I put the following in a field called «test»: 1,2,3,4,5 When I then call the function like this: answer testFunction(field «test»), the paramCount() returns 1 If I use the values directly in the script: answer testFunction(1,2,3,4,5), the paramCount() returns 5 as expected I will also get the expected result if a do the following: put "answer testFunction(" & field «test» & ")" into tScript do tScript I guess the reason for this is that in the last example, LiveCode compiles the content of the variable tScript before execution, and that this turns what is first treated as a single block of text into a list of parametres. The reason why I want to understand what is happening is that I am about to teach my students how to write reusable code that will behave correctly for any number of parametres. So my question is if I am on the right track? Best regards Tore Nilsen ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode