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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -