• 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: deallocating instances instantiated in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deallocating instances instantiated in IB


  • Subject: Re: deallocating instances instantiated in IB
  • From: Development <email@hidden>
  • Date: Fri, 12 Jul 2002 15:43:59 +0200

Hi,

Am Mittwoch den, 10. Juli 2002, um 23:35, schrieb Chaz:

Hello:

Any instances I use by instantiating in IB do not get deallocated, so I'm guessing it must be somehow my responsibility to do so. So where and how do I do this?

a few days ago, I spawned a thread (with subject "dealloc not beeing called... why?") with similiar question and situation:

just one main window, the app controller object (subclass of NSObject)
creating some objects which should be deallocated on exiting the
program; but the -dealloc method of my app controller object never got
called.
I merely put

- (void)applicationWillTerminate:(NSNotification *)aNotification{
//do clean up stuff here
}

into the controller object and connected it to the File's Owner as its
delegate, and so this delegate method is properly called evrey time the user
quits the app.

hth,
Dirk Stegemann
_______________________________________________
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: 
 >deallocating instances instantiated in IB (From: Chaz <email@hidden>)

  • Prev by Date: OmniGraffle & ProjectBuilder
  • Next by Date: black rectangle around cell
  • Previous by thread: Re: deallocating instances instantiated in IB
  • Next by thread: Is it possible to use NSBezierPath as pen shapes???
  • Index(es):
    • Date
    • Thread