While playing around with ARC, I noticed that when I have a weak String:
@property (weak, nonatomic) NSString *myString;
And then if I were to do this:
self.myString = [[NSString alloc] init];
or even
[[NSString alloc] initWithString:@""]
Xcode immediately warns me "Assigning retained object to weak property; object will be released after assignment". And while I can understand that, because its reference count is 0, why does this work with no warnings:
self.myString = @"";
What difference does it make for ARC?