• 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: Unable to Terminate Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to Terminate Application


  • Subject: Re: Unable to Terminate Application
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Tue, 30 Mar 2004 13:51:37 -0800

You're probably right.
I'm a novice at this.

I'm in my application's controller object (MVC) of a simple test application.
I want to terminate the application manually. For example, when the user enters null data.
I thought I could just 'terminate' the application. Apparently this is more involved.


Hence, I would like to know the proper procedure to terminate a Cocoa application (without documents).
This is a simple application involving a simple window, essentially.


Ric.

On Mar 30, 2004, at 1:19 PM, Markus Hitter wrote:

Am 30.03.2004 um 22:04 schrieb Frederick C. Lee:

- (void)dealloc
{
	NSLog(@"Inside dealloc.");
	[NSApp terminate];

Are you sure this is good design? From within the child you try to terminate the parent. The parent whould try to deallocate the child again ... until stack fills up ...



Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Unable to Terminate Application
      • From: Smith Kennedy <email@hidden>
    • Re: Unable to Terminate Application
      • From: Markus Hitter <email@hidden>
References: 
 >Unable to Terminate Application (From: "Frederick C. Lee" <email@hidden>)
 >Re: Unable to Terminate Application (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: Unable to Terminate Application
  • Next by Date: Re: Unable to Terminate Application
  • Previous by thread: Re: Unable to Terminate Application
  • Next by thread: Re: Unable to Terminate Application
  • Index(es):
    • Date
    • Thread