NSLog an object's memory address in overridden description method?

To print address use %p format specifier and self pointer.

To print address use %p format specifier and self pointer: -(NSString *) description { return NSString stringWithFormat:@"\nparmeterOne: %@\nparameterTwo: %@", self, self. ParameterOne, self. ParamterTwo; }.

Nice. I thought that would cause recursion. Thanks a lot.

– 1ndivisible Sep 26 at 12:51 2 using self with '%@' specifier would indeed cause recursion as that will make -description method call again. %p specifier just outputs pointer address – Vladimir Sep 26 at 12:53.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions