Binding to the file's owner has the side effect of retaining it. Owner owns the view, the view owns the owner through binding -> this is a retain cycle.
Another thing that may interest you is that top-level objects in a nib should be explicitly released when no NSWindowController is used to load the nib (or NSViewController). Raphael On Wed, Nov 5, 2008 at 8:26 AM, Tomaž Kragelj <[EMAIL PROTECTED]> wrote: > Hello > > My application should be tiger compatible, so I can't use NSViewController. > I created a custom view controller class with similar interface albeit much > simpler. However I am not sure about the following (taken from > NSViewController documentation): "...taking the same care to prevent > reference cycles when controls are bound to the nib file's owner". > > Since my view controlle's dealloc is never called although I release it and > it is set as nib file's owner, I suspect this is the problem. Can someone > point me in direction of what is meant with "preventing reference cycles" in > this situation? > > Thanks, Tom > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/raphael.sebbe%40gmail.com > > This email sent to [EMAIL PROTECTED] > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]