objective c - Dot syntax & synthesize -
i wondering if synthesize has sort of support dot syntax. goal here learn more - realize can achieve goal defining getter myself. have been looking info on topic without success far.
example of want do:
@synthesize name = self.someobject.name;
which, getter, along lines of:
-(nsstring*)name { return self.someobject.name; }
no, can't this. value after =
in @synthesize
must reference ivar of current class. you're free implement above getter you've noted, @synthesize
won't it.
Comments
Post a Comment