Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7698477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:15:06+00:00 2026-05-31T22:15:06+00:00

I just converted an old project to ARC using Xcode’s automatic refactoring. @property (nonatomic,

  • 0

I just converted an old project to ARC using Xcode’s automatic refactoring.

@property (nonatomic, retain) NSMutableArray *cards;

was replaced by:

@property (nonatomic) NSMutableArray *cards;

This makes sense because what I’ve read is that “strong” is the default state. However, the following line is giving me the error in the title:

self.cards = [[NSMutableArray alloc] initWithCapacity:54];

The error is solved by adding strong back in where retain used to be:

@property (nonatomic, strong) NSMutableArray *cards;

However… if I need to go back and put strong in to every @property declaration that was retain… why did the ARC refactoring remove them all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:15:07+00:00Added an answer on May 31, 2026 at 10:15 pm

    I’ve run into the same warning and opened an Technical Support Incident. The engineer verified that the default was changed from “assign” to “strong” for reasons of consistency within ARC.

    He said both the warning and the documentation are wrong and will be fixed. Until that is done, I would avoid the implicit default altogether!

    Explicitly adding “strong” (as BJ Homer suggested) is a safe way to silence the warning and be compatible. But don’t assume properties to be unretained by default. Always put “weak” or “assign” there, too.

    Edit: The clang documentation now officially documents this change. The warning has been fixed.

    Edit 2: Xcode 4.4 apparently includes the fix.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a 3 year old svn repo I just converted to git using
[ Old question title used to be ARC is set to YES, but xcode
I just converted an Objective-C library to a C library in the hopes of
I just converted a WebSite to a Web application and put in a new
I just converted a VB.net solution into C# solution. But lots of variables have
i have just converted an app i was making from a navigation controller app
I have a link in a cell converted to hyperlink. I looks just fine,
I'm using Office 2010 interop and C# 4. How can I convert just the
I am using this code for on android just trying to convert string to
I just recently bumped into a strange behavior of JSoup library 1.3.3 (quite old,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.