In PSPoemsViewController.h I have a protocol declared as:
@protocol PSPoemsViewControllerDelegate <NSObject>
- (void) savePoem:(Poem *)thePoem withText:(PSTextStorage *)theText;
@end
and in the .m file I have its declaration:
- (void) savePoem:(Poem *)thePoem withText:(PSTextStorage *)theText;
{
...
}
In PSVersionViewController.h I have:
@interface PSVersionViewController : UIPageViewController <PSPoemsViewControllerDelegate, UIPageViewControllerDataSource>
When I compile this the compiler throws the warning:
/Users/Keith/Documents/My Projects/Poem Shed/Poem Shed/PSVersionViewController.m:28:17: Method 'savePoem:withText:' in protocol 'PSPoemsViewControllerDelegate' not implemented
The thing is the code executes and finds the method that is supposed to be missing. BUT there is a weird problem - it sometimes breaks on the method even though there is no break set, and then it crashes. This suggests some sort of corruption. I've tried doing a clean build, removing the method and putting it back, but nothing shifts the warning. I am using Xcode 6.1 (it also failed on beta copies).