.h
#import <Foundation/Foundation.h>
#import "Person.h"
extern NSString *const kRemindersWeekly;
extern NSString *const kRemindersDaily;
@interface Reminders : NSObject
+(void)setRemindersForPerson: (Person*) person;
+(void)setEightDayReminder;
@end
.m
#import "Reminders.h"
@implementation Reminders
NSString *const kRemindersWeekly = @"WEEKLY";
NSString *const kRemindersDaily = @"DAILY";
+ (void) setRemindersForPerson: (Person*) person
{
// some code
}
+(void)setEightDayReminder
{
// some more code
}
@end
when I call:
[Reminders setRemindersForPerson: p];
this always works fine. When I call:
[Reminders setEightDayReminder];
I get:
+[Reminders setEightDayReminder]: unrecognized selector sent to class 0xe1b58
Also, [Reminders setRemindersForPerson:];
calls [Person setEightDayReminder]
without any problems. Builds fine and Command clicking on functions in XCode shows it.I think everything is in order as it takes me to the appropriate places.
Must be missing something obvious?! Pulling my hair out.