I need to send an integer back to my AppDelegate instance, from a class instance created by it.
This presumes the method in AppDelegate is +(void)setNumber and hence won't allow access to my instance variables. I understand I'm sending a message to AppDelegate and not an instance of it..
Am I missing a keyword (such as self) to access the instance of AppDelegate?
Thanks
Code:
[AppDelegate setNumber:1];
This presumes the method in AppDelegate is +(void)setNumber and hence won't allow access to my instance variables. I understand I'm sending a message to AppDelegate and not an instance of it..
Am I missing a keyword (such as self) to access the instance of AppDelegate?
Thanks