autorelease problem
autorelease problem
- Subject: autorelease problem
- From: "mohit gupta" <email@hidden>
- Date: Wed, 25 Jun 2003 11:00:55 +0000
Hi,
I am working on a screen which has the controller as a subclass of
NSWindowController. I am facing the following problem:
When the window is closed, the windowWillClose method has the statement
[self autorelease]; Also have implemented the dealloc method for my class
wide variables. Problem here is that the window doesn't always get released.
When I open the screen again the old values are retained in the drop dows
and text fields. This doesn't happen always. Could you give me some clues as
to why this is happening.
From my understanding, after self autorelease, the Autorelease-pool will
de-alloc the object when it runs. But I would not like the window to open
with old values as this means that the fields may not have the latest data
populated in them.
Kindly help me out on this.
Regards,
Mohit
_________________________________________________________________
Chill out. Win a Himalayan holiday!
http://server1.msn.co.in/sp03/summerfun/index.asp
_______________________________________________
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.