Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How do I quit?

How do I quit?
Thread Tools
Senior User
Join Date: Jun 2002
Location: UK
Status: Offline
Reply With Quote
Jan 1, 2003, 12:13 PM
 
I've tried to use something like

performSelector(terminate

but I can't find a way to make it work...
HOW TO I MAKE MY APPLICATION AUTO QUIT????
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jan 1, 2003, 02:37 PM
 
Does this work?

[NSApp terminate:nil];
[Wevah setPostCount:[Wevah postCount] + 1];
     
VEGAN  (op)
Senior User
Join Date: Jun 2002
Location: UK
Status: Offline
Reply With Quote
Jan 2, 2003, 12:08 PM
 
Originally posted by Wevah:
Does this work?

[NSApp terminate:nil];

I knew it had to be something VERY simple!!!
     
Junior Member
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jan 2, 2003, 05:10 PM
 
Code:
exit(status);
I be that insane n***a from the psycho ward.
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jan 2, 2003, 08:45 PM
 
I'm assuming he's talking about GUI Cocoa applications, though...
[Wevah setPostCount:[Wevah postCount] + 1];
     
VEGAN  (op)
Senior User
Join Date: Jun 2002
Location: UK
Status: Offline
Reply With Quote
Jan 4, 2003, 12:26 PM
 
Originally posted by Wevah:
I'm assuming he's talking about GUI Cocoa applications, though...
I haven't tried the `exit(status)' one, but I would like to know if it would work the same [same result!] as `[NSApp terminate:nil]'?

What's their difference?
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jan 4, 2003, 12:33 PM
 
exit(status) is (IIRC) a straight C function. It will kill an NSApplication outright, without allowing its delegate (or whatever) to perform whatever cleanup you have assigned...at least, IIRC.
[Wevah setPostCount:[Wevah postCount] + 1];
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2