Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added a proxyController outlet so you can set up an NSObjectControlle…

…r to bind through. When you call releaseTopLevelObjects, that controller's reference to the UKNibOwner is set to NIL, thus breaking out of the circular retain that bindings put us into.

git-svn-id: svn:// 378c4bed-2673-4746-83ae-d22ddc8c5b7c
  • Loading branch information...
1 parent 6b785b9 commit 1a03e3eaf2b28e60aefb5f7d58d3d7dcbf858008 uli committed
Showing with 3 additions and 1 deletion.
  1. +2 −1  UKNibOwner.h
  2. +1 −0  UKNibOwner.m
3  UKNibOwner.h
@@ -32,7 +32,8 @@
@interface UKNibOwner : NSResponder
- NSMutableArray* topLevelObjects;
+ NSMutableArray* topLevelObjects;
+ IBOutlet NSObjectController* proxyController; // Hook this up to this object and back, and bind to the object controller. -releaseTopLevelObjects will do a setContents:nil on it to release all bindings correctly.
-(id) init;
1  UKNibOwner.m
@@ -80,6 +80,7 @@ -(void) dealloc
-(void) releaseTopLevelObjects
+ [proxyController setContent: nil];
[topLevelObjects release];
topLevelObjects = nil;

0 comments on commit 1a03e3e

Please sign in to comment.
Something went wrong with that request. Please try again.