-1

Possible Duplicate:
What does @synthesize window=_window do?
Question about @synthesize

Some developers tend to use this convention:

@syntheisze abc = _abc;

What is the true benefit of this? Why do they do it this way? The first thing I notice is that it makes the code a lot harder to read.

Community
  • 1
  • 1
openfrog
  • 40,201
  • 65
  • 225
  • 373

1 Answers1

2

This is a common code convention:

See this Google Objective-C coding directives: http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml?showone=Properties#Properties

ppaulojr
  • 3,579
  • 4
  • 29
  • 56
  • Google's convention is that class member variables have trailing underscores: abc_, not _abc. – Jano Oct 16 '11 at 14:26