I'm reading Apple's document on Acquiring Foundational Programming skills. I've read that references should be weak to outlets that are not to top-level objects, if it is to a top level object like "a window, view, view controller, or other controller". In the mixer tutorial I see that the app delegate has:
@property (assign) IBOutlet NSWindow *window;
@property (weak) IBOutlet NSTextField *textField;
@property (weak) IBOutlet NSSlider *slider;
It tells me certain classes like NSWindow
use assign
instead. Since objects without a strong reference are removed, I was wondering how the objects in the window - the slider, text field, etc., persist, since I don't write any code for them other than dragging some stuff for the outlets and methods for app delegate that contain weak references - perhaps its all in the xib file and I haven't learned enough yet to see any flaws in the question, but I imagine each element of the interface needs to persist.