• 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: NSWindowController with NSObjectController doesn't dealloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController with NSObjectController doesn't dealloc


  • Subject: Re: NSWindowController with NSObjectController doesn't dealloc
  • From: Peter Schmidt <email@hidden>
  • Date: Mon, 11 Oct 2004 22:48:34 +0200

Am 11.10.2004 um 19:52 schrieb Shaun Wexler:

You are experiencing a glaring bug in Cocoa bindings and/or NSArrayController and IB. Sorry, but this affects us all. If you bind anything thru File's Owner (if it is the NSWindowController). The workaround is to use a different object as File's Owner, such as an NSDocument subclass, or a category on NSApplication as glue. What I do is to have the document create a window controller in -makeWindowControllers, with self as owner. All IB outlets are in the document's header, and you must pass them to the window controller via accessor methods, or an array, etc. This becomes increasingly inconvenient with large numbers of outlets, and especially problematic with multiple window controllers, effectively trashing the benefits of the document architecture. The final solution: don't use bindings, until Apple fixes this huge bug, or leak like crazy.

That's very bad. But the hint from Frédéric Testuz (send an unbind message to the controller, e.g. [myObjController unbind: @"contentObject"]) works also as a workaround.

Greetings,
Peter

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSWindowController with NSObjectController doesn't dealloc (From: Peter Schmidt <email@hidden>)
 >Re: NSWindowController with NSObjectController doesn't dealloc (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: NSUserDefaults Password
  • Next by Date: setTitleWithRepresentedFilename weirdness
  • Previous by thread: Re: NSWindowController with NSObjectController doesn't dealloc
  • Next by thread: Re: NSWindowController with NSObjectController doesn't dealloc
  • Index(es):
    • Date
    • Thread