• 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
Newbie question about deallocing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie question about deallocing?


  • Subject: Newbie question about deallocing?
  • From: "Collin VanDyck" <email@hidden>
  • Date: Thu, 15 Jan 2004 11:22:36 -0500

Hey

I've got a regular NSApplication built through XCode and Interface Builder.
It is a Cocoa Application, and I have instantiated a subclass of NSObject
(AppController) to act as the main controller for my application.

In my AppController.m file, I have the following method defined:

- (void) dealloc
{
NSLog(@"App Controller deallocating");
[_downloads release];
[_preferenceController release];
[super dealloc];
}

However, I never see this method called. "App Controller deallocating" never
gets written to the console. I would expect that when I quit the application
that my objects that I had instantiated through Interface Builder would
receive a dealloc method call.

I have my app controller acting as a delegate for File's Owner, but I don't
think that would cause this issue.

Any ideas?

thanks.
_______________________________________________
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: Newbie question about deallocing?
      • From: j o a r <email@hidden>
  • Prev by Date: OT: ADC hardware assets, spare or unused before 06/24?
  • Next by Date: Re: Newbie question about deallocing?
  • Previous by thread: Re: OT: ADC hardware assets, spare or unused before 06/24?
  • Next by thread: Re: Newbie question about deallocing?
  • Index(es):
    • Date
    • Thread