Blog Archives

Default String representation of an NSObject

In Actionscript, if you subclass Object, and you want a default string representation of your subclass, you just implement the method ‘toString’. For example the following: In Objective C, it’s very similar, however instead of ‘toString’ you use ‘description’.

Tagged with: ,
Posted in Objective C