Application quit on OS X

Pete pete at mollysrevenge.com
Fri Jan 20 12:23:08 EST 2012


I have to respectfully disagree Mark, this isn't correct behavior.

Haven't used Windows for a long time but one of the major differences
between it and OS X is that there is a system menubar at the top of the
workspace on a Mac, not at the top of every application window.  So you can
close all the windows for an application and the application's menu bar is
still there at the top of the screen, including a Quit item on the
Application menu.

As far as I can tell, all Mac applications work this way.  Closing the last
open window in the app and quitting it are two different activities.  Even
the Livecode IDE works that way on a Mac.

You're right that I would be surprised if a Windows app somehow stayed open
when you closed it's last open window for the reasons you mentioned but I
am surprised that my Mac application behaves that way.

I guess I will have to research the various messages that are sent when an
application wants to quit and see if there's a way to prevent it.  Just
seems odd that I have to write code to handle something that is standard
behavior on a Mac.

Pete



On Fri, Jan 20, 2012 at 2:09 AM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Hi Pete,
>
> This is correct behaviour. You'r be very surprised if you close the last
> window on Windows and your app continues running but is completely
> inaccessible. You'd also be surprised of your standalone behaved
> differently on Mac. Moreoever, without a window, you need a menubar with a
> Quit menu item, but which stack is going to provide the menubar if you just
> closed the last window?
>
> To work around this, you could add a hidden window with a defaultMenubar
> or use a closeStackRequest handler to warn the user that the application
> will quit.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Download the Installer Maker Plugin 1.7 for LiveCode here
> http://qery.us/za
>
> On 20 jan 2012, at 07:25, Pete wrote:
>
> > It seems that when you close the main stack window in an LC standalone
> > application on OS X, the application terminates.  That doesn't seem like
> > normal behavior for an OS X application, at least not the ones I'm
> familiar
> > with.  Maybe there's no right or wrong on this and it's a function of the
> > application functionality?
> >
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>


-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>



More information about the use-livecode mailing list