I have a class called Chair.
I have a view controller that contains an object of type Chair.
At some point, I am trying to assign my viewcontrollers instance to another instance of a Chair object as such:
[viewcontroller setChair: thisChair];
My setter looks as such:
- (void) setChair:(Chair *)thisEntryChair;
{
myVCChair = thisEntryChair;
}
I am getting this error:
[setChair:]: unrecognized selector sent to instance
whether I use a setter function or plainly as such or use a setter:
viewcontroller.myVCChair = thisEntryChair;
This approach, if I have done it in the same manner as I have other variables which I believe I have, I assume is having issues as this is a custom object not an inbuilt one?
Help!