• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ARC refactor misses IBOutlets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: ARC refactor misses IBOutlets?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: How to make a path relative to the current Xcode application?
  • Next by Date: Re: ARC refactor misses IBOutlets?
  • Previous by thread: Re: Stepping through out of order?
  • Next by thread: Re: ARC refactor misses IBOutlets?
  • Index(es):
    • Date
    • Thread