Objective-C Class Question?
Posted
by tarnfeld
on Stack Overflow
See other posts from Stack Overflow
or by tarnfeld
Published on 2010-03-13T19:01:25Z
Indexed on
2010/03/13
19:05 UTC
Read the original article
Hit count: 311
Hey, My head is about to explode with this logic, can anyone help?
Class A #imports Class B. Class A calls Method A in Class B.
This works great
Class B wants to send a response back to Class A from another method that is called from Method A. If you #import Class A from Class B, it is in effect an infinite loop and the whole thing crashes.
Is there a way to do this properly, like a parent type thing?
BTW, I'm developing for iPhone.
© Stack Overflow or respective owner