Re: Simple Question: How to exit gracefully from any method
Re: Simple Question: How to exit gracefully from any method
- Subject: Re: Simple Question: How to exit gracefully from any method
- From: Thomas Dibble <email@hidden>
- Date: Tue, 30 Mar 2004 07:44:27 -0800
If you are using Cocoa, you can use the "sharedApplication" method on
NSApplication to get the running NSApplication object, then call
"terminate" on it to quit the application gracefully.
If you are looking for something a little "harsher" you can send a halt
signal to your process.
---- Tom Dibble
On Mar 30, 2004, at 7:01 AM, Frederick C. Lee wrote:
Simple Question:
I want to be able to exit a program at will, as in Java
(System.exit()). For example, if the user enters a null value in a
field, then exit the program gracefully.
There must be some sort of system call for that.
Thanks in Advance!
Ric.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.