Learning from the other side

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
richmond62
Posts: 2764
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Learning from the other side

Post by richmond62 »

We would be churlish (and so would they) to ignore somethings going on 'up north', especially when they impinge directly on what we have inherited from them.

The 'thing' that caught my eye this morning was this:

https://forums.livecode.com/viewtopic.p ... ma#p226539

and, to save anyone the bother of 'taking a walk on the tame side', I will quote the meaty bits here:

"

Code: Select all

on mouseUp
set the useSystemDate to true
put the long date into field "f1"
end mouseUp
Gives me "Wednesday, November 1, 2023" yet my system date is set to Australia (day before month), my Mac showing "Wed 1 Nov" in the menu bar and elsewhere showing local date format at all times.

Same with "put the system date" into the message box, gives me "11/1/23" not "1/11/23", as does "put the date" of course.

MacOS 14.0"

As (Sunday) I am at home, and my machine running MacOS 14 is now at school (so check tomorrow), I can ONLY see what happens 'here' on my MacOS 12 machine:
-
Screenshot 2023-11-05 at 9.11.53.png
Screenshot 2023-11-05 at 9.11.53.png (64.47 KiB) Viewed 668 times
-

Code: Select all

on mouseUp
   set the useSystemDate to true
   put the long date into field "f1"
   put the system date into field "f2"
end mouseUp
Certainly, 'over here' (MacOS 12) I can see no obvious problems.
Attachments
Datoid.livecode.zip
Stack
(1009 Bytes) Downloaded 54 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 2764
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning from the other side

Post by richmond62 »

Let's be TOTALLY INFANTILE and set the Calendar to something obscure:
-
Persian_Date.jpg
Persian_Date.jpg (172.18 KiB) Viewed 662 times
-
Screenshot 1402-08-14 at 9.23.50.png
Screenshot 1402-08-14 at 9.23.50.png (62.7 KiB) Viewed 661 times
-
Completely unacceptable!
-
Screenshot 1402-08-14 at 9.25.04.png
Screenshot 1402-08-14 at 9.25.04.png (6.47 KiB) Viewed 661 times
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1531
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning from the other side

Post by tperry2x »

Whenever I've reliably needed to get the date in Livecode / OXT, I've always used the dateitems function. This is so regardless of what the system is set to, it'll always return the same output:
date.png
date.png (3.86 KiB) Viewed 659 times
date-script.png
date-script.png (10.24 KiB) Viewed 659 times
date.oxtstack.zip
(614 Bytes) Downloaded 60 times
Can you try this on Sonoma and see what output you get?
User avatar
richmond62
Posts: 2764
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning from the other side

Post by richmond62 »

Can you try this on Sonoma and see what output you get?
Please read the first posting re me, my Sonoma machine, and testing . . .

Not until tomorrow. 8-)
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1531
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning from the other side

Post by tperry2x »

Haha, - Yes, don't worry. No rush :lol:
User avatar
richmond62
Posts: 2764
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning from the other side

Post by richmond62 »

Wow! Dead-sexy effect on right-clicking on your file and selecting OXT Lite 0.93:
-
Screenshot 2023-11-05 at 9.35.51.png
Screenshot 2023-11-05 at 9.35.51.png (201.99 KiB) Viewed 655 times
-
Here's the MacOS 12 result: although the IDE opened, inconsistently in Lightmode when the system is set to darkmode:
-
Screenshot 2023-11-05 at 9.38.37.png
Screenshot 2023-11-05 at 9.38.37.png (63.37 KiB) Viewed 653 times
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1531
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning from the other side

Post by tperry2x »

That's weird. Or is the tools palette supposed to look like that on your build?
User avatar
tperry2x
Posts: 1531
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Learning from the other side

Post by tperry2x »

richmond62 wrote: Sun Nov 05, 2023 7:37 am ..the IDE opened, inconsistently in Lightmode when the system is set to darkmode
Yes, it always does. It takes a few seconds for Paul's MacOS dark mode lci to snap in.
As I mentioned, it's because it's kind of tacked-on, and not a native method. However, if it's not loaded by the time you come to open a stack, that suggests to me that something else is wrong.
User avatar
richmond62
Posts: 2764
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Learning from the other side

Post by richmond62 »

After 10 minutes it had not gone dark.
https://richmondmathewson.owlstown.net/
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests