NSDocument leak with top-of-NIB object controllers (10.6 ARC)

2011-12-22 Thread Fritz Anderson
Xcode 4.2, 10.7 SDK, target 10.6, ARC (weak pointers must be unsafe_unretained). I had the following problem, which I solved, but I don't trust the solution: When I used heapshotting to see what happened when I repeatedly opened and closed my document, I was accumulating a lot of memory as the

Re: NSDocument leak with top-of-NIB object controllers (10.6 ARC)

2011-12-22 Thread Kyle Sluder
On Thu, Dec 22, 2011 at 11:29 AM, Fritz Anderson fri...@manoverboard.org wrote: The document's NIB (no, I don't put the document in the NIB, and I'm using the window controller that comes with the document) contains an NSObjectController and an NSArrayController at the top level. Per Patterns

Re: NSDocument leak with top-of-NIB object controllers (10.6 ARC)

2011-12-22 Thread Fritz Anderson
On 22 Dec 2011, at 2:05 PM, Kyle Sluder wrote: On Thu, Dec 22, 2011 at 11:29 AM, Fritz Anderson fri...@manoverboard.org wrote: The document's NIB (no, I don't put the document in the NIB, and I'm using the window controller that comes with the document) contains an NSObjectController and

Re: NSDocument leak with top-of-NIB object controllers (10.6 ARC)

2011-12-22 Thread Fritz Anderson
On 22 Dec 2011, at 4:02 PM, Fritz Anderson wrote: Maybe I have to have another look at that horrific little ARC dance. If that's necessary, then I was wrong to declare the object-controller outlets u_u, they should be strong, and I should then do the HLAD. HLAD was harmful — passing the