foundationkit / FoundationKit

Everything that really should be in Foundation, but isn't. Future-proof with ARC
Other
80 stars 9 forks source link

concise synthesize macro #34

Closed myell0w closed 13 years ago

myell0w commented 13 years ago

How about adding a macro for the common task of synthesizing a property?

define $synthesize(PROPERTY) @synthesize PROPERTY = PROPERTY##_

eaigner commented 13 years ago

I use something like that myself, incredibly handy. Also fits as an extension to the embedded ConciseKit. Maybe just $synth?

myell0w commented 13 years ago

I would prefer $synthesize over $synth, just for clarity.

myell0w commented 13 years ago

Got added to FKShorthands.h, feel free to reopen for further discussions.