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

Re: dealloc not called?


  • Subject: Re: dealloc not called?
  • From: Manfred Lippert <email@hidden>
  • Date: Sat, 09 Feb 2002 13:36:45 +0100

> For example, in Apple's Sketch application, SKTInspectorController's -dealloc
> method is never called.

I found the same problem these days in one of my apps:

I have an Custom NSView in my About-Box of my program. The dealloc method of
this Custom View is _never_ called. This is perhaps because the About-Box is
never destoyed once created and "lives" until the app quits. OK.

But what makes me wonder: The awakeFromNib-Method for this Custom View is
called _twice_ when I open the About-Box!
Can anybody give me a hint why this happens?
I allocate some bitmaps in this method and because dealloc is never called,
I never free them and so they take twice the memory space as it needs to.
(Not to speak of CPU wasting for calculating a second bitmap.)

Regards,
Mani
_______________________________________________
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.

  • Follow-Ups:
    • Re: dealloc not called?
      • From: Raphael Sebbe <email@hidden>
References: 
 >dealloc not called? (From: Eric Wang <email@hidden>)

  • Prev by Date: Re: Why Cocoa source code isn't open? [terribly OT]
  • Next by Date: Re: dealloc not called?
  • Previous by thread: Re: dealloc not called?
  • Next by thread: Re: dealloc not called?
  • Index(es):
    • Date
    • Thread