Say for example I have two objects A and B and that object B has a method called 'update'.
Within object A I have a line which sends the message [objectB update]
.
However I get the message:
error 'objectB' undeclared (first use in this function).
The thing is that objectB was declared in my Appdelegate along with objectA. Seems a bit silly that objectA cannot message objectB directly. I realise this may be some kind of scope issue but my question is really do I try to make objectA global? or do I setup a system of passing pointers back and forth making things quite messy?