• 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
Why is the ARC converter marking properties as weak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Xcode double click navigation
  • Next by Date: where are the results of calls to printf, fprintf shown?
  • Previous by thread: Re: Xcode double click navigation
  • Next by thread: where are the results of calls to printf, fprintf shown?
  • Index(es):
    • Date
    • Thread