Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

@synthesize not added

I'm using Xcode 4.6.3.


When I right-click and drag on an object in the xib pane into the ViewController.h to create an Outlet connection, Xcode creates the property declaration in the header file, but the corresponding @synthesize entry and deallocation related statement that sets the property to nil is not being generated in the implementation file.


Am I missing something or is the a bug?


TIA

iMac, Mac OS X (10.7.5)

Posted on Aug 16, 2013 7:23 PM

Reply
Question marked as Best reply

Posted on Aug 17, 2013 1:48 AM

No longer needed. An automatic, implicit, synthesize is generated. The backing variable is prefixed with a "_". For example @property (nonatomic, strong) NSString *foo has backing var of _foo. You can turn this off in the build settings for the project. And because of ARC you don't need a dealloc nil.

2 replies

@synthesize not added

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.