• 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: DRY properties - setting default @synthesize instead of @dynamic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DRY properties - setting default @synthesize instead of @dynamic


  • Subject: Re: DRY properties - setting default @synthesize instead of @dynamic
  • From: Bill Bumgarner <email@hidden>
  • Date: Sun, 4 Nov 2007 13:23:26 -0800

On Nov 4, 2007, at 1:15 PM, Izidor Jerebic wrote:
It is stated in documentation that default property implementation setting is @dynamic.

I can understand there are reasons for this choice, but I wonder if there is a compiler switch that would make the default @synthesize (at least in GC situation this would be quite handy) ?

It is probably quite common situation in GC environment for one to just declare "@property SomeClass *ivar" and want to have its accessors synthesized. Currently one must re-type the property declaration in implementation section with "@synthesize ivar". If the default would be @synthesize, no duplication would occur and we could simply declare properties in headers and use them without any additional typing in most cases.

Is there such a flag anywhere?

There is not. File a bug, please.

b.bum

_______________________________________________

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: 
 >DRY properties - setting default @synthesize instead of @dynamic (From: Izidor Jerebic <email@hidden>)

  • Prev by Date: DRY properties - setting default @synthesize instead of @dynamic
  • Next by Date: Re: FYI - installer packages are the preferred deployment method now
  • Previous by thread: DRY properties - setting default @synthesize instead of @dynamic
  • Next by thread: Re: NSSortDescriptor not working with array of custom classes
  • Index(es):
    • Date
    • Thread