Possible errata p229


#1

I like things to be right, and I think there is an errata on p229.

When you declare the action method from the XIB it builds a stub of:

- (IBAction)takePicture:(id)sender {
}

On p229 you put contents into this stub to handle the picture taking, and you state the method

- (void)takePicture:(id)sender
{
    // stuff in here

They both seem to work (although I have not got to the end of chapter 13) - Which is right?


#2

Hello, i’m new myself so I may be wrong. IBOutlet is actually type defined to void. Its just a heads up to the compiler that this object points to something in a xib.