ARC refactor misses IBOutlets?
ARC refactor misses IBOutlets?
- Subject: ARC refactor misses IBOutlets?
- From: Rick Mann <email@hidden>
- Date: Sat, 27 Oct 2012 01:28:21 -0700
I'm using the convert-to-ARC refactor tool to update an older project. It seems to have gone okay, but it has made all my IBOutlet properties that were retain into strong, instead of making them weak, which is what I thought one was supposed to do.
It also left IBOutlet ivars without qualifiers (__weak).
As I understand it, only top-level IB objects should be marked strong, and all others weak. I guess Xcode can't tell what they're pointing to, and so makes them all strong?
I think I would've preferred it make them all weak; I have far fewer that should be strong than weak.
Have I been wrong all this time making my IBOutlets retain instead of assign? I always set them to nil in -viewDidUnload, released them in -dealloc.
If someone could verify my reasoning, I'd appreciate it. Thanks!
--
Rick
_______________________________________________
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