Re: how to terminate app?
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