• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to make my application quit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >How to make my application quit? (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: NSEnumerator ordering ?
  • Next by Date: Using CVS
  • Previous by thread: Re: How to make my application quit?
  • Next by thread: Re: How to make my application quit?
  • Index(es):
    • Date
    • Thread