• 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
AppController dealloc is never called. Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppController dealloc is never called. Why?


  • Subject: AppController dealloc is never called. Why?
  • From: Alexander Bokovikov <email@hidden>
  • Date: Wed, 13 Jan 2010 09:55:10 +0500

Hi, All,

Perhaps my question is stupid, but this is my first Cocoa project, so I'll try to ask. I've noticed that my main window controller (usually named AppController) is never freed. I don't know where it is allocated, but suppose it happens somewhere within NSApplication. All other windows, used in the program, are freed OK, as I'm doing it explicitly, as well as their initialization.

On the other hand, I'm getting BAD_ACCESS exception, if I insert [self release] within applicationWillTerminate delegate method of my AppController. So, what is the correct way to free AppController?

Thanks,
Alexander
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: AppController dealloc is never called. Why?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Gray Scope Buttons in UISearchBar
  • Next by Date: Re: AppController dealloc is never called. Why?
  • Previous by thread: Gray Scope Buttons in UISearchBar
  • Next by thread: Re: AppController dealloc is never called. Why?
  • Index(es):
    • Date
    • Thread