Page 1 of 1

PostPosted: Tue Feb 18, 2003 1:01 am
by vradenburg
Is there any way to exit an application without going straight to the system preferences in a standalone app? I realize that you can use launch() to close your app and open another, but I want to just close my app and go back to my menu. Thanks for any help.


PostPosted: Tue Feb 18, 2003 1:17 am
by jstadolnik
Use the exit() command.


The PToolboxLib guy.

PostPosted: Tue Feb 18, 2003 9:42 am
by artosoft
Try to tap application launcher icon.

It work for me :D

Best regards, Dian Suharto.

PostPosted: Tue Feb 18, 2003 2:01 pm
by vradenburg
Thanks, the exit() is what I was looking for.


PostPosted: Sat Jan 24, 2004 10:18 am
by Astragali
I've also got a problem with exiting apps - I think I've got a reasonable idea of how to use event() in conjunction with hookhard/hooksilk - but is it possible to make PocketC intercept a hard/silk button, perform any necessary saves and then jump to the correct application?

e.g. I've got WordSmith on my Memo Pad button, so I can't simply make the assumption that pressing Memo Pad should cause Memo Pad to be launched...

Sorry if I'm being really dense here.

PostPosted: Tue Jan 27, 2004 2:15 pm
by dewey
To do some processing right before your app exits, you should use the atexit() function. See the docs for details on how it works.

PostPosted: Wed Feb 04, 2004 9:16 am
by Astragali
Thanks! I'll have an investigate of that.