iphone Programming Glossary: myextendeddelegate
Warning while adding and using a new method in external library protocol http://stackoverflow.com/questions/5771957/warning-while-adding-and-using-a-new-method-in-external-library-protocol fine but I am getting a warning that this newly added method is not part of the protocol. This is my Class @protocol MyExtendedDelegate LibraryDelegate @optional void actionTaken @end @interface MyController UITableController MyExtendedDelegate @end And inside.. @protocol MyExtendedDelegate LibraryDelegate @optional void actionTaken @end @interface MyController UITableController MyExtendedDelegate @end And inside my controller I am registering self as delegate for library controller LibraryController libController LibraryController.. libraryController.delegate is defined in the external library to conform to LibraryDelegate . Try to downcast to MyExtendedDelegate before you call the method from your extended protocol. if self.libraryController.delegate conformsToProtocol @protocol..
|