Retained Outlet
Retained Outlet
- Subject: Retained Outlet
- From: Richard Somers <email@hidden>
- Date: Fri, 18 Nov 2011 09:23:08 -0700
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 myController = _myController
The application runs fine with no memory leaks reported by Instruments so I assume that the frameworks are releasing myController.
Is this ok?
--Richard
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden