• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Retained Outlet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Retained Outlet
      • From: Richard Somers <email@hidden>
    • Re: Retained Outlet
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
  • Next by Date: Re: Retained Outlet
  • Previous by thread: Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
  • Next by thread: Re: Retained Outlet
  • Index(es):
    • Date
    • Thread