Ask the Expert

Mac OS X The Complete Reference: code fix

I recently received your terrific book on Mac OS X The Complete Reference. I am trying to learn Object C++ for Cocoa and have managed to get the Calculator running but in Java. The Objective-C version comes up with 11 errors when I try to build it, and the code doesn't come up as
@implementation

    Requires Free Membership to View

Calculator
-(void) divide: (id) sender
(id) numerator; etc etc but
-(IBAction) divide: (id) sender
{
}
@end
I wonder if it would be possible to get a copy of the Calculator.h and the Calculator.m file as text if you have them or where I could obtain an example of the correct build of this application in Objective-C. Thank you for your book.
There was an error on page 710. The correct code is at www.philmontmill.com in the Mac OS X section.

This was first published in August 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: