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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:00:43+00:00 2026-06-10T06:00:43+00:00

Created an empty project in Xcode, which merely sets up the App Delegate with

  • 0

Created an empty project in Xcode, which merely sets up the App Delegate with a window object.

While AppDelegate.h creates a @property for window:

@property (strong, nonatomic) UIWindow *window;

There is no mention in either the .h or .m of the ivar _window however the dealloc shows:

- (void)dealloc
{
[_window release];
[super dealloc];
}

So my question is, does an @property automatically create an ivar with an underscore for the associate ivar for the property? I thought that unless you write something like @synthesize window=_window then properties and ivars have the same name. However there is no such (or any) @synthesize statement in the .m so where is the _window coming from?

  • 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-10T06:00:44+00:00Added an answer on June 10, 2026 at 6:00 am

    LLVM 4.0, the default compiler for Xcode 4.4, provides a new feature called auto-synthesis that will automatically synthesize declared properties (unless they’re declared in a protocol). In addition to synthesizing getter and setter (if necessary) implementations, auto-synthesis will also synthesize an instance variable prefixed with an underscore. So given the following declaration…

    @property (strong, nonatomic) NSString *foo;
    

    …the compiler will synthesize an instance variable named _foo as well asfoo and setFoo: method implementations that access _foo.

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

Sidebar

Related Questions

I have created an empty json object having an array itemlist(which further contains itemid
I have created a simple Xcode 4.2 project with a empty view controller. I
I have created an empty project (XCode 4.2 IOS SDK 5), I have added
I created a empty project in ASP.Net and then I manually add it view,controller
I created an Empty Project in Visual C++, but now I need the Console
I created a empty test project (static library type) with enabling the unit test.
For a new project I have created a local folder tree with empty Visual
I am building an Day View calendar app. I have already created the empty
I have a relatively confusing problem: I created several empty Xcode projects and ran
I just created an empty iOS project and added a UIViewController with a nib

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.