Re: Second edition of Programming LiveCode for the Real Beginner

2019-12-30 Thread Drs Mark Schonewille via use-livecode

Thanks Tom!

Mark Schonewille
Economy-x-Talk
https://ecxtalk.nl
https://www.nt2.nu

Programming LiveCode for the Real Beginner
http://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner

Op 12/31/2019 om 1:40 AM schreef Tom Glod via use-livecode:

Right on Mark...wishing you success with the book.




___
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: LiveCode won't recognize my stack

2019-12-30 Thread Richard Gaskin via use-livecode

Bill Vlahos wrote:

> My program is correctly setting the defaultFolder but is getting the
> same result of not recognizing the file as a LiveCode stack when I
> build using LiveCode version 9.5.1.
>
> Any idea what might have changed between version 7 and 8 and how I can
> get the old behavior when I’m referencing the stack?

I wonder if the change has to do with macOS' alteration of contents 
within the app bundle.


What is the full path to the stack file, what is the wording of "the 
result", and what integer is returned from sysError() when the result is 
not empty?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode won't recognize my stack

2019-12-30 Thread Bill Vlahos via use-livecode
Mark,

Thanks for commenting.

This behavior changed between version 7 (and earlier) and version 8 (and later).

When I am in LC version 7 or earlier and go File menu/Open Stack I am able to 
select my stack named “LicenseKey.IW” without specifying “All Files”.

When I am in LC version 8 or 9 on the same computer opening the same 
“LicenseKey.IW”, file it is grayed out on the Mac when Open Stack. On Windows 
the file is not visible until I select All Files.

My program is correctly setting the defaultFolder but is getting the same 
result of not recognizing the file as a LiveCode stack when I build using 
LiveCode version 9.5.1.

Any idea what might have changed between version 7 and 8 and how I can get the 
old behavior when I’m referencing the stack?

Thank you,
Bill Vlahos

> On Dec 30, 2019, at 9:21 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2019-12-27 22:51, Bill Vlahos via use-livecode wrote:
>> List,
>> Version 9.x of LiveCode doesn’t recognize stacks unless the file name
>> ends with either .rev or .livecode. Previous versions (I don’t know
>> when this changed) were able to.
> 
> Nothing has changed here in any recent version.
> 
>> I use a stack file as the Preferences file for InfoWallet but the file
>> name is “LicenseKey.IW”. When I execute the following command to read
>> custom properties in the stack it fails with an error. Type: Chunk:
>> can't find stack
>> put the uDefaultWallet of stack "LicenseKey.IW" into vDefault
> 
> This is most likely because you haven't got the stackFiles property set up, 
> or the defaultFolder is not what you are expecting it to be - i.e. the engine 
> cannot find the stack with filename "LicenseKey.IW" relative to the current 
> folder.
> 
>> I can also see this when opening a stack from LiveCode. the
>> LicenseKey.IW file is greyed out unless I look for All Files when then
>> opens it correctly.
> 
> The IDE still uses the form of 'answer file' which specifies a 
> creator/filetype and an extension. I suspect either one of:
> 
>  A) the creator/filetype is actually recognised by more recent versions of 
> macOS (i.e. they are ignored completely - I don't recall a report against 
> Mojave, but it is entirely possible Catalina no longer supports them)
> 
>  B) The file has just lost its creator/filetype and thus is being filtered 
> out (this can happen if a file is archived via a format which doesn't support 
> these attributes, or has transmitted through an FS which doesn't).
> 
>> How can I open the stack file in LiveCode 9.5.1 without changing the
>> name of the file?
> 
> Use All Files and select it that way, as you have been doing :)

___
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: Second edition of Programming LiveCode for the Real Beginner

2019-12-30 Thread Tom Glod via use-livecode
Right on Mark...wishing you success with the book.

On Mon, Dec 30, 2019 at 7:30 PM Drs Mark Schonewille via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi everyone,,
>
> I hope you have a great Chrsitmas and a great year behind you. This ear
> I've been busier than ever. One of my projects was the second edition of
> my book Programming LiveCode for the Real Beginner.
>
>
> https://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner
>
> The book has been updated to include the changes in recent versions of
> LiveCode. Important changes concern the properties inspector and the
> standalone application settings window. Large parts of the chapter about
> properties have been rewritten and several pictures have been updated.
>
> Almost no sample scripts needed to be updated, apart from a number of
> Unicode-related scripts. I've decided, however, to discuss both the
> unicodeEncode/unicodeDecode as well as the textEncode/textDecode
> functions. It seems to me that the old functions are still useful, even
> if only for the sake of backward compatibility. (Not so long ago, I had
> a project where direct conversion using uniEncode and uniDecode seemed
> the easiest route).
>
> Currently, we're in the process of updating the website. I have replaced
> the old (red) cover picture with a picture of the new, fresh, yellow
> cover. A few details still need to be adjusted. Soon, we will raise the
> price of the book. The price change is due to DHL's decision to increase
> the tarrif for books. The current price is 32 euro but we are forced to
> raise the price, prrobably by 4 euro to 36 euro. As long as the price on
> the website hasn't been changed, you can still purchase the book at the
> old price.
>
> IF you have any questions, please write to supp...@economy-x-talk.com.
> Don't use an e-mail address that is affiliated with Apple (for instance
> mac.com, apple.com, icloud.com; we won't be able to confirm your address
> and send you a book). The book is available as a paperback and not in an
> electronic format and we ship all over the world (with China as a
> possible exception; contact support if you're in China).
>
> --
> Mark Schonewille
> Economy-x-Talk
> https://ecxtalk.nl
> https://www.nt2.nu
>
> Programming LiveCode for the Real Beginner
>
> http://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner
>
>
> ___
> 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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Office:226-706-9339
Mobile:226-706-9793
___
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


Second edition of Programming LiveCode for the Real Beginner

2019-12-30 Thread Drs Mark Schonewille via use-livecode

Hi everyone,,

I hope you have a great Chrsitmas and a great year behind you. This ear 
I've been busier than ever. One of my projects was the second edition of 
my book Programming LiveCode for the Real Beginner.


https://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner

The book has been updated to include the changes in recent versions of 
LiveCode. Important changes concern the properties inspector and the 
standalone application settings window. Large parts of the chapter about 
properties have been rewritten and several pictures have been updated.


Almost no sample scripts needed to be updated, apart from a number of 
Unicode-related scripts. I've decided, however, to discuss both the 
unicodeEncode/unicodeDecode as well as the textEncode/textDecode 
functions. It seems to me that the old functions are still useful, even 
if only for the sake of backward compatibility. (Not so long ago, I had 
a project where direct conversion using uniEncode and uniDecode seemed 
the easiest route).


Currently, we're in the process of updating the website. I have replaced 
the old (red) cover picture with a picture of the new, fresh, yellow 
cover. A few details still need to be adjusted. Soon, we will raise the 
price of the book. The price change is due to DHL's decision to increase 
the tarrif for books. The current price is 32 euro but we are forced to 
raise the price, prrobably by 4 euro to 36 euro. As long as the price on 
the website hasn't been changed, you can still purchase the book at the 
old price.


IF you have any questions, please write to supp...@economy-x-talk.com. 
Don't use an e-mail address that is affiliated with Apple (for instance 
mac.com, apple.com, icloud.com; we won't be able to confirm your address 
and send you a book). The book is available as a paperback and not in an 
electronic format and we ship all over the world (with China as a 
possible exception; contact support if you're in China).


--
Mark Schonewille
Economy-x-Talk
https://ecxtalk.nl
https://www.nt2.nu

Programming LiveCode for the Real Beginner
http://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner


___
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: LiveCode won't recognize my stack

2019-12-30 Thread Sannyasin Brahmanathaswami via use-livecode
Trashing prefs will bring back LC to the main monitor, no fiddling with loc of 
stacks.

then, later in the week, after loading on Macbook Pro while at Java Café. LC 
loses track -- or something, does not always happen this way. Then back to 
multi-monitors. I learned to shut down my lap top *before* reconnecting. That 
helps…

Would be nice to save out your current prefs to a json file or a LC array file, 
and load then again. Save time going through and fixing them each time you 
trash the LC prefs.

The point being that I never have a problem saving, only that I have to
reset the loc of the topStack and the others each time I do.
___
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


Android adaptive icons

2019-12-30 Thread J. Landman Gay via use-livecode

I need to implement an adaptive app icon for Android, as described here:


I'm not sure how to do this, or whether LC supports it. It seems that 
Android Studio will create the icons somehow, but we need to update the 
manifest as well?


Has anyone managed this? Without an adaptive icon, the artwork is very 
tiny inside a large background. Also, the Play Store says it will no 
longer accept new apps without an adaptive icon.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode won't recognize my stack

2019-12-30 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

> ...saving stacks in Windows has proven to be time consuming.

Curious.  Haven't seen that, but there may be something specific there 
worth knowing about.


Recipe/bug ID#?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode won't recognize my stack

2019-12-30 Thread Richmond via use-livecode
I wander a bit as well, but as long as it isn't too much I'm no that 
fashed; and
with my Macintosh I've got 3 monitors, so however far things wander 
aiblins it isnae

farther than 'that'.

Richmond.

On 30.12.19 21:14, Bob Sneidar via use-livecode wrote:

My stacks wander a bit too. I wrote a routine to reposition my stacks to their 
last position when they were closed, because saving stacks in Windows has 
proven to be time consuming. But on the Mac and Windows, the restored position 
is always slightly off from the last position and I have never been able to 
come up with a reliable formula to account for this.

Bob S



On Dec 30, 2019, at 10:27 , dunbarx--- via use-livecode 
 wrote:

Hi.

I have two monitors as well. And I use a key combination and a plug-in to
reset the loc of the very stacks you mentioned, plus the SE. These change
each time I save a stack.

The point being that I never have a problem saving, only that I have to
reset the loc of the topStack and the others each time I do.

More than worth it to have two monitors, though.

Craig


___
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: LiveCode won't recognize my stack

2019-12-30 Thread Bob Sneidar via use-livecode
My stacks wander a bit too. I wrote a routine to reposition my stacks to their 
last position when they were closed, because saving stacks in Windows has 
proven to be time consuming. But on the Mac and Windows, the restored position 
is always slightly off from the last position and I have never been able to 
come up with a reliable formula to account for this. 

Bob S


> On Dec 30, 2019, at 10:27 , dunbarx--- via use-livecode 
>  wrote:
> 
> Hi.
> 
> I have two monitors as well. And I use a key combination and a plug-in to
> reset the loc of the very stacks you mentioned, plus the SE. These change
> each time I save a stack. 
> 
> The point being that I never have a problem saving, only that I have to
> reset the loc of the topStack and the others each time I do.
> 
> More than worth it to have two monitors, though.
> 
> Craig 


___
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: LiveCode won't recognize my stack

2019-12-30 Thread dunbarx--- via use-livecode
Hi.

I have two monitors as well. And I use a key combination and a plug-in to
reset the loc of the very stacks you mentioned, plus the SE. These change
each time I save a stack. 

The point being that I never have a problem saving, only that I have to
reset the loc of the topStack and the others each time I do.

More than worth it to have two monitors, though.

Craig 


-Original Message-
From: Mark Waddingham via use-livecode 
To: How to use LiveCode 
Cc: Mark Waddingham 
Sent: Mon, Dec 30, 2019 12:22 pm
Subject: Re: LiveCode won't recognize my stack

On 2019-12-27 22:51, Bill Vlahos via use-livecode wrote:
> List,
> 
> Version 9.x of LiveCode doesn’t recognize stacks unless the file name
> ends with either .rev or .livecode. Previous versions (I don’t know
> when this changed) were able to.

Nothing has changed here in any recent version.

> I use a stack file as the Preferences file for InfoWallet but the file
> name is “LicenseKey.IW”. When I execute the following command to read
> custom properties in the stack it fails with an error. Type: Chunk:
> can't find stack
> 
> put the uDefaultWallet of stack "LicenseKey.IW" into vDefault

This is most likely because you haven't got the stackFiles property set 
up, or the defaultFolder is not what you are expecting it to be - i.e. 
the engine cannot find the stack with filename "LicenseKey.IW" relative 
to the current folder.

> I can also see this when opening a stack from LiveCode. the
> LicenseKey.IW file is greyed out unless I look for All Files when then
> opens it correctly.

The IDE still uses the form of 'answer file' which specifies a 
creator/filetype and an extension. I suspect either one of:

  A) the creator/filetype is actually recognised by more recent versions 
of macOS (i.e. they are ignored completely - I don't recall a report 
against Mojave, but it is entirely possible Catalina no longer supports 
them)

  B) The file has just lost its creator/filetype and thus is being 
filtered out (this can happen if a file is archived via a format which 
doesn't support these attributes, or has transmitted through an FS which 
doesn't).

> How can I open the stack file in LiveCode 9.5.1 without changing the
> name of the file?

Use All Files and select it that way, as you have been doing :)

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: LiveCode won't recognize my stack

2019-12-30 Thread Mark Waddingham via use-livecode

On 2019-12-27 22:51, Bill Vlahos via use-livecode wrote:

List,

Version 9.x of LiveCode doesn’t recognize stacks unless the file name
ends with either .rev or .livecode. Previous versions (I don’t know
when this changed) were able to.


Nothing has changed here in any recent version.


I use a stack file as the Preferences file for InfoWallet but the file
name is “LicenseKey.IW”. When I execute the following command to read
custom properties in the stack it fails with an error. Type: Chunk:
can't find stack

put the uDefaultWallet of stack "LicenseKey.IW" into vDefault


This is most likely because you haven't got the stackFiles property set 
up, or the defaultFolder is not what you are expecting it to be - i.e. 
the engine cannot find the stack with filename "LicenseKey.IW" relative 
to the current folder.



I can also see this when opening a stack from LiveCode. the
LicenseKey.IW file is greyed out unless I look for All Files when then
opens it correctly.


The IDE still uses the form of 'answer file' which specifies a 
creator/filetype and an extension. I suspect either one of:


  A) the creator/filetype is actually recognised by more recent versions 
of macOS (i.e. they are ignored completely - I don't recall a report 
against Mojave, but it is entirely possible Catalina no longer supports 
them)


  B) The file has just lost its creator/filetype and thus is being 
filtered out (this can happen if a file is archived via a format which 
doesn't support these attributes, or has transmitted through an FS which 
doesn't).



How can I open the stack file in LiveCode 9.5.1 without changing the
name of the file?


Use All Files and select it that way, as you have been doing :)

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: mobile dev confusion

2019-12-30 Thread JJS via use-livecode
Mostly i do to real device too. Because on emulator x86 / x86-64 i get 
strange images with every LC app where graphics are in, like mirrored or 
repeated buttons etcetera.


Don't know exactly why or where the fault comes from, maybe it is 
something with accelerated rendering but have not figured out yet.


If i deploy a simple stack with a button and a field to the emultator 
(all standard grey) then all looks ok.


So for that reason i can't really use the Android Emulator

Op 30-12-2019 om 14:29 schreef Sannyasin Brahmanathaswami via use-livecode:

I go straight to my Moto6 device. It so fast. For some reason my "gut" doesn’t  
trust the emulators. In fact, I can never get to work on iOS, it always hangs, tell me I 
can't load etc. It would be a problem it if

a) loaded the emulator
b) failed the device.

Takes 6min 24sec to load to iPhone
Take 42 second to load to my Moto6

"used to be" back in early days of 2018. I could trust that

   1.  If it worked on the Moto6
   2.  it worked on iOS

Now Apple with new "bent on innovation" and coming up with update every couple of weeks… it a 
"crap shoot" to know whether one module (stack) or another maybe be failing on iOS, and since the 
remoteDebugger is not working, it takes a lng time to debug. I put a hard "breakpoint" in the 
scripts, but the Script Editor never opens… to let me step through thru to find out what line is failing. (

Maybe when the IDE in ready for Catalina, this problem with be solved.

Brahmanathaswami


Yes you are right Sannyasin.

And on your desktop you can use the very fast x86 / x86-64 emulator
which you can use directly via the test button in the ide(of course
first load the emulator)
___
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: mobile dev confusion

2019-12-30 Thread Sannyasin Brahmanathaswami via use-livecode
I go straight to my Moto6 device. It so fast. For some reason my "gut" doesn’t  
trust the emulators. In fact, I can never get to work on iOS, it always hangs, 
tell me I can't load etc. It would be a problem it if

a) loaded the emulator
b) failed the device.

Takes 6min 24sec to load to iPhone
Take 42 second to load to my Moto6

"used to be" back in early days of 2018. I could trust that

  1.  If it worked on the Moto6
  2.  it worked on iOS

Now Apple with new "bent on innovation" and coming up with update every couple 
of weeks… it a "crap shoot" to know whether one module (stack) or another maybe 
be failing on iOS, and since the remoteDebugger is not working, it takes a 
lng time to debug. I put a hard "breakpoint" in the scripts, but the Script 
Editor never opens… to let me step through thru to find out what line is 
failing. (

Maybe when the IDE in ready for Catalina, this problem with be solved.

Brahmanathaswami


Yes you are right Sannyasin.

And on your desktop you can use the very fast x86 / x86-64 emulator
which you can use directly via the test button in the ide(of course
first load the emulator)
___
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