From reading Property vs. ivar in times of ARC, I understand that ARC will use the __strong
ownership qualifier when I directly get or set a strong
property's autosynthesized associated instance variable but will neither call custom getters or setters nor trigger KVO.
But, if I declare a property as weak
like so:
@property (weak, nonatomic) id <XYZExampleViewDelegate> delegate;
Will the autosynthesized associated instance variable take on the
__weak
ownership qualifier?For example, will
_delegate = delegate
(vsself.delegate = delegate
) in my implementation of- (id)initWithDelegate:(id <XYZExampleViewDelegate>)delegate
perform assignment according to the
__weak
qualification?What about for a property declared with
copy
?