controlling "Quit" in standalones and menubar....


    Jul 21 2006 | 5:10 pm
    I've struggled with this issue before, and have come up with mildly satisfactory solution, but for a current project, it's not really satisfying. I need to run my own "Quit" process in a standalone, which is sort of possible using menubar, but on OSX, there's the "Quit" in the ApplicationName menu (e.g. Max/MSP menu) which will bypass any "Quit" that I put in the File menu with menubar. On windows, I can "disable" the default Quit in File with a message to menubar, which results in an unsightly dual "Quit" (the disabled default + the Quit I create in menubar), but at least it functions. However, if the user clicks the "contatining" window's "X" to close the app, then my all-important "Quit" routine is bypassed. (I guess that is a separate question - can I disable the application window?).
    SO those are my issues that I'd LOVE to be able to workaround...is possible?
    Thanks,
    Peter.

    • Jul 21 2006 | 7:34 pm
      Hi Peter,
      Will closebang not work for whatever you are trying to do at quit time? I've never tried to use it in a standalone, not sure if it works the same as in a Max/MSP based patch...
      Dan
      At 10:10 AM -0700 7/21/06, pnyboer wrote: >I've struggled with this issue before, and have come up with mildly >satisfactory solution, but for a current project, it's not really >satisfying. >I need to run my own "Quit" process in a standalone, which is sort >of possible using menubar, but on OSX, there's the "Quit" in the >ApplicationName menu (e.g. Max/MSP menu) which will bypass any >"Quit" that I put in the File menu with menubar. >On windows, I can "disable" the default Quit in File with a message >to menubar, which results in an unsightly dual "Quit" (the disabled >default + the Quit I create in menubar), but at least it functions. >However, if the user clicks the "contatining" window's "X" to close >the app, then my all-important "Quit" routine is bypassed. (I guess >that is a separate question - can I disable the application window?). > >SO those are my issues that I'd LOVE to be able to workaround...is possible? > >Thanks, > >Peter. >-- >||||||||||||||||||||||||||||||| >Brown Cocktail >3/4 oz light rum >3/4 oz gin >3/4 oz dry vermouth >Shake with ice and serve >in chilled cocktail glass >|||||||||||||||||||||||||||||||
      -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X http://www.defectiverecords.com http://www.jackosx.com
    • Jul 22 2006 | 12:28 am
      oh, sure, do it the easy way! yes, it looks like this will work pretty well, actually, using a closebang in my main interface.
    • Jul 23 2006 | 4:07 pm
      Quote: pnyboer wrote on Fri, 21 July 2006 18:28 ---------------------------------------------------- > oh, sure, do it the easy way! yes, it looks like this will work pretty well, actually, using a closebang in my main interface. ----------------------------------------------------
      auto quitting a standalone usualy just chrashes the runtime for me in mac os classic as well as 10.4