• 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
WindowController never released
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WindowController never released


  • Subject: WindowController never released
  • From: Gerben Wierda <email@hidden>
  • Date: Thu, 15 Aug 2002 00:45:26 +0200

I have subclassed NSWindowController and NSDocument. In NSDocument I have added the makeWindowControllers entry following the instructions in the docs:

- (void)makeWindowControllers {
II2WindowController *myController = [[II2WindowController allocWithZone:[self zone]] initWithWindowNibName:@"II2Package"];
[self addWindowController:myController];
}


But both these retain myController. As a result, when I close the window, my windowcontroller is never dealloced (and thus some object housekeeping never took place). So, this seems wrong as it does not follow the 'closing behaviour' as per the docs.

Shall I just release myDocument in makeWindowControllers?

G
_______________________________________________
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: WindowController never released
      • From: Jeff Gilbert <email@hidden>
  • Prev by Date: How do you draw a single pixel line?
  • Next by Date: Re: WindowController never released
  • Previous by thread: Re: How do you draw a single pixel line?
  • Next by thread: Re: WindowController never released
  • Index(es):
    • Date
    • Thread