I run the following script from a C-program under Mac OS (Snow Leopard) with the system () command:
#!/usr/local/bin/wish
set answer [tk_messageBox -message "Really quit?" -type yesno -icon question]
switch -- $answer {
yes exit 1
no exit 2
}
When returning from the script the C program needs...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.