• 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: Retain cycle problem with bindings & NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retain cycle problem with bindings & NSWindowController


  • Subject: Re: Retain cycle problem with bindings & NSWindowController
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 8 Jun 2004 11:46:31 +0200

On 8. Jun 2004, at 11:06, Dennis C. De Mars wrote:

So, even in this simplest of examples the NSWindowController object is caught in a deadly embrace with the view object binding to it, which the NSDocument seems to be able to break.

The problem I had did involve NSDocument, but I do think that a window controller is more susceptible to the retain-cycle problem.

My solution was to send unbind: messages in the windowWillClose:-notification.
_______________________________________________
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: Retain cycle problem with bindings & NSWindowController
      • From: "Dennis C. De Mars" <email@hidden>
References: 
 >Retain cycle problem with bindings & NSWindowController (From: "Dennis C. De Mars" <email@hidden>)
 >Re: Retain cycle problem with bindings & NSWindowController (From: Allan Odgaard <email@hidden>)
 >Re: Retain cycle problem with bindings & NSWindowController (From: "Dennis C. De Mars" <email@hidden>)

  • Prev by Date: Re: Java or C++ for cross-platform Cocoa/.NET?
  • Next by Date: Re: Rasterizing an NSString to a bitmap
  • Previous by thread: Re: Retain cycle problem with bindings & NSWindowController
  • Next by thread: Re: Retain cycle problem with bindings & NSWindowController
  • Index(es):
    • Date
    • Thread