Why is the ARC converter marking properties as weak?
Why is the ARC converter marking properties as weak?
- Subject: Why is the ARC converter marking properties as weak?
- From: Jens Alfke <email@hidden>
- Date: Wed, 28 Dec 2011 11:04:27 -0800
I'm experimentally converting a project to use ARC. The converter is doing some things that don't make sense to me. In particular, it's adding a "weak" modifier to the declarations of properties that are both read-only and not synthesized from an ivar. From my understanding of what "weak" means, it shouldn't apply to such a property at all.
For example, in the header file:
@property (readonly) NSArray* allViews;
turns into
@property (weak, readonly) NSArray* allViews;
and in the .m file, there is an -allViews method whose implementation creates and returns a new NSArray object. The implementation was not changed.
—Jens
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden