I have an object calander as
MyDate * calander = [[MyDate alloc] init];
in MyDate I have:
-(void) setDate:(NSDate *) NewDate {
self.aDate = NewDate;
.
.
.
}
the statement: [calander setDate:mdr.cDate]; issues a warning “MyDate may not respond to setDate.”
Did you include the
MyDate.hheader file in the class that is trying to callsetDate:? Usually when I bump into this error it’s because I forgot an#include.