• 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: Window controllers and memory leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window controllers and memory leaks


  • Subject: Re: Window controllers and memory leaks
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 19 Sep 2013 12:48:42 -0700

Although the problem in this thread has been solved, a project I'm working needed a systematic way to hang on to transient windows.  And subclassing NSWindowController as I suggested last week is costly due to lack of multiple inheritance in Objective-C.  So today I wrote a new class which…

/*
 @brief    Provides a place for window controllers that control transient
 windows to "hang out" without being deallocced, so that you don't junk
 up your app delegate with repeated boilerplate code and instance variables.
 */

Now any time I want a window controller to simply stick around until its window closes,

[SSYWindowHangout hangOutWindowController:windowController] ;

A little more code this time.  Also comes in a demo project.

https://github.com/jerrykrinock/SSYWindowHangoutDemo


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Window controllers and memory leaks (From: Jonathan Taylor <email@hidden>)
 >Re: Window controllers and memory leaks (From: Kyle Sluder <email@hidden>)
 >Re: Window controllers and memory leaks (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: iOS Calendar Question
  • Next by Date: Still can't get autolayout to work the way I want
  • Previous by thread: Re: Window controllers and memory leaks
  • Next by thread: Re: Window controllers and memory leaks
  • Index(es):
    • Date
    • Thread