@synthesize comma separated list

Posted by Frooditz Furs on Stack Overflow See other posts from Stack Overflow or by Frooditz Furs
Published on 2010-04-14T19:17:27Z Indexed on 2010/04/14 19:23 UTC
Read the original article Hit count: 198

Filed under:
|

Hi,

I've read apple's Objective-C doc and am curious about using @synthesize. I've seen classes with a long list of @synthesizes and I've seen classes with one @synthesize then a long comma-separated list of ivars. So what's the difference between:

@synthesize ivar1;
@synthesize ivar2;
@synthesize ivar3;

and

@synthesize ivar1, ivar2, ivar3;

????

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone