Re: Retained Outlet

2011-11-18 Thread Richard Somers
perty (retain) IBOutlet NSArrayController *myController; > > // Implementation > @synthesize myController = _myController > > The application runs fine with no memory leaks reported by Instruments so I > assume that the frameworks are releasing myController. SOLVED - Mac O

Re: Retained Outlet

2011-11-18 Thread Richard Somers
On Nov 18, 2011, at 1:33 PM, Corbin Dunn wrote: > You are probably orphaning (which is a leak), your window controller > subclass. Make sure it's dealloc is called; I'm guessing it won't be. This > isn't shown in "leaks", since it isn't a true leak. Good suggestion. I just checked and the windo

Re: Retained Outlet

2011-11-18 Thread Corbin Dunn
You are probably orphaning (which is a leak), your window controller subclass. Make sure it's dealloc is called; I'm guessing it won't be. This isn't shown in "leaks", since it isn't a true leak. corbin On Nov 18, 2011, at 11:22 AM, Richard Somers wrote: > On Nov 18, 2011, at 9:31 AM, Kyle Slu

Re: Retained Outlet

2011-11-18 Thread Richard Somers
On Nov 18, 2011, at 12:42 PM, Kyle Sluder wrote: > It means that NSWindowController will balance NSNib's extra -retain. > It doesn't balance the additional -retain from calling your setter. Consider the following case. The additional -retain from calling setter is not balanced. The outlet is not

Re: Retained Outlet

2011-11-18 Thread Kyle Sluder
On Fri, Nov 18, 2011 at 11:22 AM, Richard Somers wrote: > The outlet in question is in a custom class and requires a setter with retain > semantics. NSWindowController will use this setter for the outlet when > loading the nib. NSWindowController does not call your setter. NSNib does. > > Obje

Re: Retained Outlet

2011-11-18 Thread Richard Somers
On Nov 18, 2011, at 9:31 AM, Kyle Sluder wrote: > On Fri, Nov 18, 2011 at 8:23 AM, Richard Somers wrote: >> The normal pattern for Interface Builder Outlets is assign but I have an >> outlet that must be retained to work corectly. The outlet is not in File's >> Owner but is in a custom view in a

Re: Retained Outlet

2011-11-18 Thread Kyle Sluder
On Fri, Nov 18, 2011 at 8:23 AM, Richard Somers wrote: > The normal pattern for Interface Builder Outlets is assign but I have an > outlet that must be retained to work corectly. The outlet is not in File's > Owner but is in a custom view in a window. It is very important that you specify wheth

Retained Outlet

2011-11-18 Thread Richard Somers
The normal pattern for Interface Builder Outlets is assign but I have an outlet that must be retained to work corectly. The outlet is not in File's Owner but is in a custom view in a window. // Interface @property (retain) IBOutlet NSArrayController *myController; // Implementation @synthesize