• 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
autorelease problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: Developers love new G5 performance ?
  • Next by Date: Re: Online Documentation
  • Previous by thread: Re: NSDictionary key's (copyWithZone?)
  • Next by thread: Properly handling mouseEntered: events
  • Index(es):
    • Date
    • Thread