MacOS Sheets not working?

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderator: Klaus

stam
Posts: 3069
Joined: Sun Jun 04, 2006 9:39 pm

MacOS Sheets not working?

Post by stam » Tue Sep 27, 2022 1:01 am

Hi all,

i'm on MacOS 12.6 Monterey and using LC 9.6.8.

The sheet command is not working as I would expect - the statement:

Code: Select all

sheet stack "<stackName>"
presents the stack as a window modal (as one would expect on Windows and Linux) but not as a sheet (as should be happening on MacOS if i understood the documentation correctly). In my case, the stack "<stackName>" is a substack of the calling stack.

Is this expected behaviour?
If not, i'll submit a bug report - grateful for views on this,

Thanks
Stam

stam
Posts: 3069
Joined: Sun Jun 04, 2006 9:39 pm

Re: MacOS Sheets not working?

Post by stam » Tue Sep 27, 2022 1:38 am

Furthermore, running the above command seems to do nothing - no stack/dialog is presented unless i also set the visible of the substack to true, ie the only way i can see to show the substack is

Code: Select all

sheet stack "<stackName>"
show stack "<stackName>"
The stack still then shows up as a window modal, not a sheet, but there is a very brief animation showing it move from titlebar down to the middle of the parent stack.
Again, not what I would expect, and seems like a bug to me, but posting it here in case "i'm doing it wrong"...

Many thanks
Stam

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10315
Joined: Wed May 06, 2009 2:28 pm

Re: MacOS Sheets not working?

Post by dunbarx » Tue Sep 27, 2022 2:21 am

Stam.

Have you restarted LC? Does this happen in a lower version of LC?

Craig

PBH
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 132
Joined: Sun Feb 20, 2011 4:26 pm
Contact:

Re: MacOS Sheets not working?

Post by PBH » Tue Sep 27, 2022 6:08 am

stam wrote:
Tue Sep 27, 2022 1:01 am
Is this expected behaviour?
If not, i'll submit a bug report - grateful for views on this,
I would say this is not the expected behaviour, I am seeing exactly the same result on macOS and LC9.6.8 as well as LC10.0.0 (dp4).

So yes, I think you should report this as a bug. :)

Paul

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: MacOS Sheets not working?

Post by bn » Tue Sep 27, 2022 8:33 am

Hi Stam,

have you tried

Code: Select all

open stack "xyz" to as sheet
or to terminate "sheet" mode

Code: Select all

open stack "xyz" to as topLevel
I tried this from the message box and from buttons of the two stack where "xyz" is a substack and "xyz" had a button

Code: Select all

on mouseUp
   open this stack as topLevel
end mouseUp
to get it out of "sheet" mode.

This is on "Monterey" using LC 9.6.9 rc 1

Kind regards
Bernd

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: MacOS Sheets not working?

Post by Klaus » Tue Sep 27, 2022 8:35 am

Hi guys,

if I remember correctly, it was Apple who removed the SHEET feature in macOS 12.xx or a version earlier.
So this is no LC bug!


Best

Klaus

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: MacOS Sheets not working?

Post by bn » Tue Sep 27, 2022 9:02 am

Klaus wrote:
Tue Sep 27, 2022 8:35 am
if I remember correctly, it was Apple who removed the SHEET feature in macOS 12.xx or a version earlier.
So this is no LC bug!
It works for me in macOS 12.5.1

Kind regards
Bernd

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: MacOS Sheets not working?

Post by Klaus » Tue Sep 27, 2022 9:15 am

No "SHEET" here with macOS 12.6. and LC 9.6.9 RC1 on my MacMini Late 2014 (INTEL).

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: MacOS Sheets not working?

Post by bn » Tue Sep 27, 2022 9:29 am

Hi Klaus,

could you try this stack? Just one button on the mainstack and one button on the substack.

IAmAMainstack.livecode.zip
(836 Bytes) Downloaded 79 times

Kind regards
Bernd

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: MacOS Sheets not working?

Post by Klaus » Tue Sep 27, 2022 9:44 am

Hi Bernd,

sure it works, just like my little test stack, but I think this is a matter of what you exspect!

The term "sheet" is still used in Apple docs, however in earlier version (macOS < 12 or 11) a
"SHEET" would slide out of the calling stack's title bar.

This is not the case anymore, the "sheet" will appear with a very slight move out of nowhere
to the center of the calling stack. And that is not what we used to call "sheet".

I think this is the actual problem here. :D


Best

Klaus

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: MacOS Sheets not working?

Post by bn » Tue Sep 27, 2022 9:50 am

Klaus wrote:
Tue Sep 27, 2022 9:44 am
sure it works, just like my little test stack, but I think this is a matter of what you exspect!

The term "sheet" is still used in Apple docs, however in earlier version (macOS < 12 or 11) a
"SHEET" would slide out of the calling stack's title bar.

This is not the case anymore, the "sheet" will appear with a very slight move out of nowhere
to the center of the calling stack. And that is not what we used to call "sheet".
I think this is the actual problem here. :D
OK, I get it. I thought it was not working at all. But I can live with the current behavior if it is the current User Interface.
Covering the mainstack with a dark color and showing the "sheeted" stack at the center of the mainstack is very similar to the old "sheet".
Thanks
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4171
Joined: Sun Jan 07, 2007 9:12 pm

Re: MacOS Sheets not working?

Post by bn » Tue Sep 27, 2022 9:56 am

It seems like "drawer" is not supported by the current macOS anymore.
In some circumstances it came in very handy.
Kind regards
Bernd

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: MacOS Sheets not working?

Post by Klaus » Tue Sep 27, 2022 10:07 am

I think we can say:
Sheets still work, but are less dramatic than they used to be. :-)

stam
Posts: 3069
Joined: Sun Jun 04, 2006 9:39 pm

Re: MacOS Sheets not working?

Post by stam » Tue Sep 27, 2022 11:04 am

Thanks everyone for the responses :)
Klaus wrote:
Tue Sep 27, 2022 9:44 am
The term "sheet" is still used in Apple docs, however in earlier version (macOS < 12 or 11) a
"SHEET" would slide out of the calling stack's title bar.

This is not the case anymore, the "sheet" will appear with a very slight move out of nowhere
to the center of the calling stack. And that is not what we used to call "sheet".

I think this is the actual problem here. :D
That does seem like the most likely answer - i had thought of this as well and did try to find out more from apple, but couldn't quite find the right page, as they now merge all apple platforms into one. I did find it finally today: https://developer.apple.com/design/huma ... on/sheets/

Seems like even though on iOS seems work as they used to on MacOS (only they slide up from the bottom), on MacOS they are a centred window-modal that dims the parent window.

So yes, Klaus is entirely correct - this isn't a bug, just a recent OS change... pity, because i used to like sheets :-(

The documentation needs changing then:
Dictionary - 'Sheet' command wrote:Cross-platform note:* The appearance of sheets on OS X, in which they slide into view from the title bar, is unique to that OS and does not happen on Windows or Linux.
Probably worth logging that to avoid confusion for future users...

Thanks everyone!

PS: For others that haven't tried this, this is the new 'sheet' look:
Screenshot 2022-09-27 at 10.36.13.jpg

This was the 'old' look: Image
Last edited by stam on Tue Sep 27, 2022 12:05 pm, edited 2 times in total.

stam
Posts: 3069
Joined: Sun Jun 04, 2006 9:39 pm

Re: MacOS Sheets not working?

Post by stam » Tue Sep 27, 2022 11:22 am


Post Reply