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 7698483
In Process

The Archive Base Latest Questions

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

I have used the Convert to Objective C ARC option in Xcode 4.3 to

  • 0

I have used the “Convert to Objective C ARC” option in Xcode 4.3 to convert a project started in Xcode 4.0 to use ARC. After fixing errors that the tool found, I went trough the process where the migration tool has removed all the release messages as well as retain attributes in my properties declarations. So now I have all of my properties having only (nonatomic) attribute. From reading the documentation I still don’t have a clear answer on what to do.

So my question is: In case you omit the keyword regarding the setter semantics (strong, weak, retain, assign) in the property declaration, what is the default attribute on properties when using ARC?

I found in the documentation that the default property attribute is assign. However, they also say that now the default attribute for ivars, in case you omit it, is strong.

To better explain my question, here is an example. I header file we have the declaration:

@property (nonatomic) MyClass *objectToUse;

and in our implementation we just have

@synthesize objectToUse;

If we then write inside some method:

self.objectToUse = [[MyClass alloc] init];

have we created an strong (retain) or weak (assign) reference? If we instead write

objectToUse = [[MyClass alloc] init];

by using the ivar have we changed the situation regarding the object retention policy? It seems to me that now with ARC, the best practice of using the properties for memory management is not the same practice anymore.

  • 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:12+00:00Added an answer on May 31, 2026 at 10:15 pm

    I’ve opened an Technical Support Incident. The engineer verified that the default was changed from “assign” to “strong”. The reason is exactly the inconsistency you described. Now ivars and @properties have the same default.

    He said both the documentation (and warnings some people are getting) are wrong and will be fixed. (The conversion tool is correct.) Until that is done, I would avoid the implicit default altogether. Always explicitly specify “strong”, “weak”, or “assign”.

    Edit: The clang documentation now officially documents this change.

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

Sidebar

Related Questions

I have used swiffy to convert my swf to HTML5. I use aspx, its
I have used many of the Convert.To..... functions for conversion , but I didn't
I'm trying to convert a sample from objective C to Monotouch, and I have
I have used Bitmap class to convert tiff to Gif but it couldn't make
I have used the 2to3 utility to convert code from the command line. What
I have used the following cod in my program to convert byte to public
I have used http://readysetraphael.com/ to convert a svg to a path in raphaeljs. I
i have used zend pagination in my controller action.it returns zend paginator object that
I have an AIR app that I am wanting to convert to a IOS
We currently use subversion as our version control system, we have decided that we

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.