OK, I'm confused. I have a class Employee, that I declare several properties for, which of course, synthesize and work fine. But in the implementation class, I extend the class like so:
@interface Employee ()
@property (nonatomic) unsigned int employeeId;
@end
which I would think would allow me to do the following in main.m:
Employee emp = [[Employee alloc] init];
//use some other property accessor methods...
[emp setEmployeeId:123456];
//do some other stuff...
But the compiler chokes on the use of setEmployeeId
with the following error "No visible interface for 'Employee' declares the selector 'setEmployeeId.'
Can anyone tell me why I shouldn't be able to use the extension the same way I'd use the other properties? Thanks for your help!!!