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

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -