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

Unable to Terminate Application


  • Subject: Unable to Terminate Application
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Tue, 30 Mar 2004 12:04:08 -0800

Greetings:
	I tried to terminate an application manually, by calling my 'dealloc'
method.  In it, I have [NSApp terminate] to terminate the application.
It appeared to be straight forward, but I've encountered the
'...selector not recognized'.

Question: what selector?  ... and what's the remedy?

Thanks in advance!

...meanwhile, I'm thumbing through the books.

Ric.


- (void)dealloc
{
	NSLog(@"Inside dealloc.");
	[NSApp terminate];
     [myAreaCode release];
     // pass the ball to Controller's parent class so it can do its own
deallocation
     [super dealloc];
}

====================================================
2004-03-30 11:53:06.280 AreaCode[3711] Inside dealloc.
2004-03-30 11:53:06.281 AreaCode[3711] *** -[NSApplication terminate]:
selector not recognized
2004-03-30 11:53:06.281 AreaCode[3711] Exception raised during posting
of notification.  Ignored.  exception: *** -[NSApplication terminate]:
selector not recognized
_______________________________________________
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: Shawn Erickson <email@hidden>
    • Re: Unable to Terminate Application
      • From: Markus Hitter <email@hidden>
  • Prev by Date: Re: Warnings during build resulting in disallowing further builds
  • Next by Date: Re: Warnings during build resulting in disallowing further builds
  • Previous by thread: Re: Warnings during build resulting in disallowing further builds
  • Next by thread: Re: Unable to Terminate Application
  • Index(es):
    • Date
    • Thread