I am looking at this question (the answer with 179 upvotes - How do I create delegates in Objective-C?) and need help understanding this:
#import "MyClass.h"
@implementation MyClass
@synthesize delegate; //synthesise MyClassDelegate delegate
- (void) myMethodToDoStuff {
[self.delegate myClassDelegateMethod:self]; //this will call the method implemented in your other class
}
@end
What does 'myMethodToDoStuff' do? Does it have to be called somewhere in MyClass.m?