Terminating an Xcode app after run?
I'm making an Xcode application, in Cocoa-Applescript, and I'de like to make it quit after it runs through the script. Is that possible? I've tried:
[[UIApplication sharedApplication] terminate];
and
exit(0);
but when I go to build it I get the error "Command /usr/bin/osacompile failed with exit code 1". How can I go about this?