[self fido]


#1

In the book, the implementation of the incrementFido method using the accessor looks like this:

- (IBAction)incrementFido:(id)sender
{
[self setFido:[self fido] + 1]; }

I’m wondering about the [self fido] part, since fido is an int, isn’t [self fido] the same as fido?

FWIW, the following lines of code do work:

-(IBAction)incrementFido:(id)sender
{
    [self setFido:fido+1];
}