• 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 terminate app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to terminate app?


  • Subject: Re: how to terminate app?
  • From: Finlay Dobbie <email@hidden>
  • Date: Tue, 15 Mar 2005 22:30:19 +0000

On Tue, 15 Mar 2005 17:07:40 -0500, Luc Vandal <email@hidden> wrote:
> Hi,
>
> within my controller class, I tried to use [NSApp terminate] but it
> doesn't seem to be doing anything! What's the proper way to terminate
> an application?

There is no -[NSApplication terminate]. There is, however, a
-[NSApplication terminate:]

The : is important.

[NSApp terminate:self];
will work

The compiler is almost undoubtedly warning you, as well. Pay attention
to compiler warnings!

 -- Finlay
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >how to terminate app? (From: Luc Vandal <email@hidden>)

  • Prev by Date: Re: how to terminate app?
  • Next by Date: Re: Cocoa-dev Digest, Vol 2, Issue 359
  • Previous by thread: Re: how to terminate app?
  • Next by thread: Re: Cocoa-dev Digest, Vol 2, Issue 359
  • Index(es):
    • Date
    • Thread