Re: NSWindowController with NSObjectController doesn't dealloc
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