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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:01:54+00:00 2026-06-10T11:01:54+00:00

Now with the release of the new Xcode it has been said that properties

  • 0

Now with the release of the new Xcode it has been said that properties get synthesized automatically, and indeed they are accessible without synthesizing as long as you use the '_' prefix. But I recently found out that Xcode allows me to access those properties in another way – using a 'self.*' prefix (where the * is the name of the property).

Is this correct? Should I use it? Could it harm my code?

Thanks you.

  • 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-10T11:01:56+00:00Added an answer on June 10, 2026 at 11:01 am

    With _yourProperty you access the instance variable, with self.yourProperty its getter/setter. As long you are sure you have no costumized getter/setter, both is the same (with a very small performance penalty for getter/setter). However, in general, you should use the getter/setter approach (except in getter/setter themself) in case you will change your code later.

    EDIT:

    @Vanthel: The underline is pure convention. Without @synthesize (or with @synthesize foo), the compiler generates for a property foo a variable _foo. However, by @synthesize foo = my_bar you assign the variable my_bar to be accessed by the accessors of foo.

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

Sidebar

Related Questions

Now that Google Earth has been released for Android 2.1, does anyone know what,
I've been working normally in Debug scheme, now I changed to Release and Im
I have an application that has been running fine since its launch over a
I ve lost the signing keystore and now new release of my application gives
Right now when I release a new build of my .NET app, the UserAppDataPath
For each new release of Xcode, you lose the previous SDK. On Xcode 3.2.5
Now with the release of new android NDK, given the fragmentation of android devices,
I just installed the new version of Xcode/ios6. viewDidUnload is now depreciated. In the
I upgraded to groovy 2 release and now my build is broken. It fails
According to the release notes of Eclipse 3.3 you can now join lines together

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.