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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:34:57+00:00 2026-06-01T00:34:57+00:00

In non-ARC code retained properties handily take care of memory management for you using

  • 0

In non-ARC code retained properties handily take care of memory management for you using the self.property = syntax, so we were taught to use them for practically everything.

But now with ARC this memory management is no longer an issue, so does the reason for using properties evaporate? is there still any good reason (obviously other than providing public access to instance variables) to use properties 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-06-01T00:34:58+00:00Added an answer on June 1, 2026 at 12:34 am

    But now with ARC this memory management is no longer an issue, so does
    the reason for using properties evaporate? is there still any good
    reason (obviously other than providing public access to instance
    variables) to use properties anymore?

    Yes — by using @property and @synthesized getters/setters, you guarantee that:

    • your getter/setter can be subclassed and subclasses can override storage and/or behavior
    • everything remains nicely encapsulated
    • you can use observation hooks — KVO, etc… — to monitor changes internally and externally
    • you have a convenient spot to set a breakpoint on read and/or write to the property
    • if that “internal only” instance variable were need to be exposed, it is a matter of copying the @property declaration itself; much less refactoring.
    • you can leverage the declarative power of all the various modifier keywords — copy, strong, weak, atomic, etc.. — which the compiler is taking more and more advantage of over thime

    Even internally to a class, I generally lean to using properties and dot syntax to maintain state within the object. That isn’t universally true — there will be some instance variables that I directly manipulate (exclusively directly manipulate; no @property at all) if my design is such that exposure would imply a massive refactoring anyway.

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

Sidebar

Related Questions

The following code compiles fine with manual memory management, but fails under ARC: CALayer
Under ARC, is it possible to encode/decode a CGMutablePathRef (or its non-mutable form) using
I'm using blocks to handle the response of async http requests in a non-ARC
I have an app with both ARC code and non-ARC code. The compiler will
I have to convert simple ARC code to non ARC. While it was relatively
I just marked all of my CocoaAsyncSocket code as non-ARC code, and it's given
I am using a non-ARC framework in my ARC-enabled app. Now I get a
Is it possible to combine ARC and non-ARC projects? I haven't really tried it
Using non-thread safe libraries with threads. Say I have a library that makes a
I'm fairly new to Objective-C, and am currently reading up on memory management. I'd

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.