• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode suddenly not generating @synthesize when @property added
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Xcode suddenly not generating @synthesize when @property added
      • From: Peter Teeson <email@hidden>
References: 
 >Xcode suddenly not generating @synthesize when @property added (From: Peter Teeson <email@hidden>)

  • Prev by Date: Would you expect to see a warning about things that aren't supported in the deployment target OS?
  • Next by Date: Re: Would you expect to see a warning about things that aren't supported in the deployment target OS?
  • Previous by thread: Re: Xcode suddenly not generating @synthesize when @property added
  • Next by thread: Re: Xcode suddenly not generating @synthesize when @property added
  • Index(es):
    • Date
    • Thread