I’m starting Objective-C Development and I’m trying to wrap my head around how some things work.
I’m creating a Twitter Client and have a class “Tweet”. This is just a DTO – a class that has some variables.
Should this just be a class or should it inherit from NSObject?
Why? Or why not?
Every normal class should subclass from NSObject. Basic memory management like
-retainand-release, and runtime introspection like-isKindOfClass:,-respondsToSelector:cannot work without it.