Re: retaining and releasing a Window Controller.

2010-08-09 Thread Quincey Morris
On Aug 8, 2010, at 23:27, Kevin Bracey wrote: > I have a Report WindowController, that opens a Window from it's own nib. This > is great, I can open lots of different Reports all bases on the same > Controller. But I only need the Window and the controller to stay around > while the Window is o

Re: retaining and releasing a Window Controller.

2010-08-09 Thread Negm-Awad Amin
That one, who creates the WC is the owner (probably the App-Delegate or a document). It should retain the WC. The WC can send a message to the owner, when its window is closed. (And the owner probably wants to autorelease the WC in this case.) Problem: When the WC is released by its owner after

retaining and releasing a Window Controller.

2010-08-08 Thread Kevin Bracey
Hi guys, every time I find myself doing something convoluted I think hey I must be doing this wrong:-) I have a Report WindowController, that opens a Window from it's own nib. This is great, I can open lots of different Reports all bases on the same Controller. But I only need the Window and t