ARC and NSNib: How to release top-level objects?

2011-11-18 Thread Charles Srstka
Okay, I know you’re supposed to use the likes of NSWindowController and NSViewController to load nibs, since they will automatically take care of releasing the top-level objects. However, for the sake of curiosity, I created a new project with ARC just to see what would happen with NSNib. The

Re: ARC and NSNib: How to release top-level objects?

2011-11-18 Thread Kyle Sluder
On Fri, Nov 18, 2011 at 1:47 PM, Charles Srstka cocoa...@charlessoft.com wrote: How is one supposed to manage this? You can easily get the array of the top-level objects, but since ARC doesn’t let you send -release to them, it doesn’t help much. The only ways I can think of to avoid leaking