Re: dealloc not called?
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.