title: How to reach the main class in a parent object?
body: <p>I'm writing a simple card game for iPhone. The cards are in cardset containers which are subclasses of UIScrollView. The cardsets are in a desk container which is a UIViewController. In the cards i overrode the touchesEnded method but I cannot access the main class which contains the desk. How to do it? Should I give a pointer to all the cards to reach the main? Or can I get the parent container?</p>