Re: Xcode suddenly not generating @synthesize when @property added
Re: Xcode suddenly not generating @synthesize when @property added
- Subject: Re: Xcode suddenly not generating @synthesize when @property added
- From: Fritz Anderson <email@hidden>
- Date: Tue, 17 Apr 2012 16:42:46 -0500
On 17 Apr 2012, at 3:37 PM, Peter Teeson wrote:
> I just created a new non-document project using XCode 4.3.2 and did New File to create a new .m/.h pair for a sub-class of NSView.
> When I add @property to the .h file the @synthesize is not added to the .m and a warning issue is indicated.
> This used to work properly for me and I have not deliberately changed anything in Xcode.
Surely it didn't work properly? In a future version of llvm, the compiler will silently (without amending your code) @synthesize @propertys for which you provide no other implementation, but that's not yet in any released Xcode, and you wouldn't have seen it before.
The nearest I can think of to what you are expecting is that when you control-drag from an item in a XIB to an @interface, Xcode would create the @property and insert the necessary support (including @synthesize-ing outlets) automatically.
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden