• 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: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?


  • Subject: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 21 May 2015 08:41:16 -0700

> On May 21, 2015, at 6:43 AM, Alex Zavatone <email@hidden> wrote:
>
> Also, you can turn it off autosynthesis?  How?  That would be a big help for me to straighten out this iOS project where the original developers thought everything needed to be a java bean.

As Graham said, go to the build settings and turn on the warning for “Implicit Synthesized Properties”. While you’re at it, turn on “Treat Warnings As Errors”. You’ll now get a compile error any time you forget to add an @synthesize directive (or implement explicit accessor methods.)

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar? (From: Alex Zavatone <email@hidden>)
 >Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar? (From: Eric Wing <email@hidden>)
 >Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar? (From: Jens Alfke <email@hidden>)
 >Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar? (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Next by Date: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Previous by thread: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Next by thread: Disabling auto-synthesis of property accessors.
  • Index(es):
    • Date
    • Thread