How to call a method through the object created by interface in Objective-C
- by Cathy
Hi,
I need to call a method through the object created by the interface ie
id<MyProtocol>obj;
Now i have created this obj in my main class where i am not implementing the methods of this protocol but i need to access the method which is already implemented in someother class.I am now calling the method as follows
[obj load];
in my main class in the applicationDidFinishLaunching, but i not able to access the method?
Pls do suggest me the correct way of calling the methods through protocols...