• 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: NSView subclass never gets dealloced?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView subclass never gets dealloced?


  • Subject: Re: NSView subclass never gets dealloced?
  • From: mmalcolm crawford <email@hidden>
  • Date: Thu, 28 Mar 2002 22:51:33 -0800

On Thursday, March 28, 2002, at 07:31 PM, Jonathan Wight wrote:

I've got a subclass of NSView which nicely cleans up after itself when it
gets dealloc-ed. Or rather _would_ if it ever got the dealloc message.
Whenever I quit the application or close the view's window no dealloc
message gets sent. It's almost as if the quit menu item calls exit(0)
directly :-)

If your window controller inherits from NSWindowController, it should ensure that everything's tidied up.

Is the behavior I'm seeing to be expected? Seems fishy to me.

Pragmatically, if it doesn't get called when the app terminates, then piscine or not, it won't really matter as the OS will clear up the memory for you. If this is happening for a number of windows, then it's more of a problem.

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSView subclass never gets dealloced? (From: Jonathan Wight <email@hidden>)

  • Prev by Date: Re: Bug in g++'s int constructor?
  • Next by Date: Re: newbie notification question.
  • Previous by thread: NSView subclass never gets dealloced?
  • Next by thread: Re: NSView subclass never gets dealloced?
  • Index(es):
    • Date
    • Thread