I thought I understood it clearly from this question --> Should IBOutlets be strong or weak under ARC? but I recently had a discussion which left me totally confused. Can someone just confirm if the following is correct? (if this is a duplicate I didn't mean to break any rules.. just need clarification as I can understand diagrams better than words..)
Under ARC (MacOSx)
- view1 = strong
- MainView = weak (In WindowControllerA)
- MainView = strong (In ViewControllerB)
- view2 = strong
- view3 = weak (In ViewcontrollerB)
- view3 = strong (In ViewControllerC)
If this is correct then can someone confirm please..
In the diagram above, we have a windowControllerA that is on the screen. In windowControllerA's view, there are 2 NSViews. view1 belongs to the windowController, but mainView belongs to the view of the instianciated viewController, ViewControllerB.
ViewControllerB also contains 2 views within its mainView. View2 is owned by viewControllerB while view3 belongs to another instanced viewController, ViewControllerC.
ViewController C has one view which it owns.