The code all appears correct with regard to the implementation of description
and the logging. Since the output only shows a comma it means that your two property both contain empty strings. If they were nil
the string format would display them as (null)
.
There is a difference between a nil
pointer and a reference to the empty string (@""
).