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

  • Home
  • SEARCH
  • 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 7721281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:53:04+00:00 2026-06-01T03:53:04+00:00

In a recent Xcode 4.3 project template, some @synthesze are declared as: @synthesize window

  • 0

In a recent Xcode 4.3 project template, some @synthesze are declared as:

@synthesize window = _window;
@synthesize managedObjectContext = __managedObjectContext;
@synthesize managedObjectModel = __managedObjectModel;
@synthesize persistentStoreCoordinator = __persistentStoreCoordinator;
@synthesize navigationController = _navigationController;

Some come with a double underscore (__) as prefix. Why?

Anything to do with readonly attribute?

@property (strong, nonatomic) UIWindow *window;
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property (strong, nonatomic) UINavigationController *navigationController;
  • 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-01T03:53:05+00:00Added an answer on June 1, 2026 at 3:53 am

    They probably shouldn’t use a double underscore, if they’re intended for use in your own program. I expect it’s just an oversight on the part of whoever wrote that template example. In practice, it’s unlikely that they’ll cause any problems.

    The C standard reserves all identifiers starting with a double underscore for the implementation’s own use. Since Objective-C is a superset of C, you shouldn’t be using those identifiers in Objective-C programs either. From the C spec, section 7.1.3 Reserved identifiers:

    All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use.

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

Sidebar

Related Questions

For example when you start Xcode, a welcome window appears. You select recent project
I am currently developing a game with Xcode 4.1.1 (MBP recent, 8Gb mem). The
EDIT: This is weird... if I double-click the Recent Projects item for the project
Update: It appears that a recent XCode update may have changed this macro, please
I switch in Xcode between working on a lot of different projects frequently (some
I'm about to download Xcode 4 and was wondering, will project files from the
I really don't understand this. I downloaded the recent version of xCode 3.2.5 and
Take this scenario: after a compile from scratch of a Cocoa Touch project, Xcode
I'm a fairly recent convert to Xcode and OS X. Even though I have
If I create a new iOS 5 project using one of XCode's templates and

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.