I am trying to compile some code where I have a class called Card. It has a method called
-(void)setSuit: (NSString *)suit
It is an instance method, but when I say
[Card setSuit:@"Diamonds"]
Xcode says: warning: "Card" may not respond to method +setSuit
And my program doesn't work. I think that Xcode thinks setSuit is a class method, as it says in the warning, so how do I tell it that I am talking about an instance method?
Or maybe that isn't the problem at all, I don't really know as I have never encountered this before.