Re: How to make my application quit?
Re: How to make my application quit?
- Subject: Re: How to make my application quit?
- From: Ondra Cada <email@hidden>
- Date: Thu, 4 Jul 2002 01:41:06 +0200
On Thursday, July 4, 2002, at 12:19 , Arthur VIGAN wrote:
I would like to make my app quit in particular cases, but as there is no
menubar, I can't use the application menu.
I tried to user the terminate(Object sender) function, but I got the error
"Undefined symbols: _terminate" at compile time. Maybe I didn't use the
function in the rigth way. Could someone help me?
I'm not sure, since I rather don't understand the question.
If you wanna terminate programmatically, the (well documented) way is
[NSApp terminate:nil] (or perhaps [[NSApplication sharedApplication]
terminate:nil] in case your code might be part of a dynamically loaded
bundle). There's no such thing as "terminate(Object sender) function" so
far as I know Cocoa.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.