Results 1 to 7 of 7
  1. ansond's Avatar
    Posts
    64 Posts
    Global Posts
    65 Global Posts
       #1  
    I am building an application that has a disclaimer screen - if the user selects to "decline" the disclaimer, then I want the application to exit.

    I've looked on developer.palm.com in the API section and could not find anything.

    What I'm looking for is an exit(status) function - is there one somewhere in Mojo that will allow the application to exit cleanly?

    Thanks,

    Doug
  2. #2  
    As far as I know, there isn't.
  3. #3  
    this.controller.appController.closeAllStages() work?
  4. #4  
    I have no idea if this would work but since it's javascript what about window.close() ?
  5. ansond's Avatar
    Posts
    64 Posts
    Global Posts
    65 Global Posts
       #5  
    I did try this.controller.appController.closeAllStages() - no bueno.
    I'll give window.close() a try...
  6. ansond's Avatar
    Posts
    64 Posts
    Global Posts
    65 Global Posts
       #6  
    @mdmogren - YOU ROCK! window.close() works great... thanks for the pointer.

    Out of completeness, my app does
    this.controller.stageController.getAppController().closeAllStages()
    window.close()

    seems to work great. Thanks folks!

    Doug
  7. #7  
    this.controller.stageController.popScene()

Posting Permissions