For a discussion of why IBOutlet links should be weak, see Resource Programming Guide: Nib Files . I quote the manual:
Sockets should usually be weak, except for those that belong to the file owner, for the top-level objects in the nib file (or in iOS, storyboard scene), which should be strong. Therefore, the videos you create should be weak, because:
- The outputs that are created for viewing in the view of the view manager or window windows, for example, are arbitrary links between objects that do not imply ownership.
- Strong sockets are often defined by wireframe classes (for example,
UIViewController s view outlet or NSWindowController s).
For my two cents, I do things strong if I own it, or I need a strong link if the owner leaves, and I need it to be saved, none of which apply here. Therefore, instead of asking, βWhy can't I make it strong ?β, I would ask, βWhy do I want to make it strong ?β? If there is no good reason for this, I would let Interface Builder do this and make it weak .
source share