Nat! bio photo

Nat!

Senior Mull

Twitter Github Twitch

@property with a struct member


@interface Foo : NSObject
{
   struct
   {
      NSUInteger  bar;
   } info;
}
@end


@implementation Foo

@synthesize bar = _info.bar;

@end

That doesn't work, I would assume because it's a limitation of the @synthesize syntax, not for technical reasons. The work around is doing it by hand...