I have myClass instantiated by my appDelegate, I have another class, newClass instantiated by myClass. From the newClass instance, I want to access a property in the myClass instance that created it. I have done this by:
[[[UIApplication sharedApplication].delegate myClass] property]
This works, I can actually get the property but I get this warning from Xcode:
warning: "-myClass" not found in protocols
warning: no "-myClass" method found
(messages without a matching signature will be assumed to return "id" and accept "..." as arguments)
The newClass property has been correctly declared in the .h and .m files, it's properties have been set and it has been synthesized.
It compiles and runs and I can actually get the property's value.
Should I ignore the warning in Xcode?
Is there a better way to access the myClass instance's property?