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
On Fri, Nov 18, 2011 at 8:23 AM, Richard Somers
rsomers.li...@infowest.com 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
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
On Fri, Nov 18, 2011 at 11:22 AM, Richard Somers
rsomers.li...@infowest.com 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
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
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
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 window
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 OS X Retained Outlet
Thanks for everyones comments. Here