• 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: app controller's dealloc not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: app controller's dealloc not called


  • Subject: Re: app controller's dealloc not called
  • From: Tito Ciuro <email@hidden>
  • Date: Sat, 18 Mar 2006 01:09:40 -0800

Hi Karim,

Check what the docs (NSApplication) states:

applicationWillTerminate:

- (void)applicationWillTerminate:(NSNotification *)aNotification

Discussion
Sent by the default notification center immediately before the application terminates. aNotification is always an NSApplicationWillTerminateNotification. You can retrieve the NSApplication object in question by sending object to aNotification. Put any necessary cleanup code in this method.



Regards,

-- Tito

On 18/03/2006, at 0:38, Karim Morsy wrote:

Hi,

I have an app controller that I instantiate in interface builder.
I release the objects I allocated in my app controller in its dealloc method.
however, when I quit the application my dealloc method won't get called. I always thought that instances created in IB automatically get sent dealloc when the app terminates....
any ideas what might be missing here ? do I have to work with a delegate for NSApplication or is there a more convinient way ?


many thanks in advance,
Karim
_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: app controller's dealloc not called
      • From: Karim Morsy <email@hidden>
References: 
 >app controller's dealloc not called (From: Karim Morsy <email@hidden>)

  • Prev by Date: Re: Preferences for Applications
  • Next by Date: Re: How to find out if a TCP port is in use?
  • Previous by thread: app controller's dealloc not called
  • Next by thread: Re: app controller's dealloc not called
  • Index(es):
    • Date
    • Thread