Amazon.com Widgets Program 21.2 Can't Connect Buttons
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2013, 04:12:52 PM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Old Stuff
| |-+  Chapter Study
| | |-+  Chapter 21 - Writing iPhone Applications
| | | |-+  Program 21.2 Can't Connect Buttons
Pages: [1]   Go Down
Print
Author Topic: Program 21.2 Can't Connect Buttons  (Read 496 times)
diggerbyte
Newbie
*
Posts: 14






« on: September 28, 2011, 05:58:22 AM »

Help!  I can't get the digit buttons to connect to my click digit: method.  What am I doing wrong? It was easy in 21.1.  Is this the correct .xib file?

Fraction_CalculatorViewController.xib
//
//  Fraction_CalculatorViewController.h
//  Fraction_Calculator
//
//  Created by diggerbyte on 28/09/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Calculator.h"

@interface Fraction_CalculatorViewController : UIViewController {
    UILabel           *display;
    char              op;
    int               currentNumber;
    NSMutableString   *displayString;
    BOOL              firstOperand, isNumber;
    Calculator        *myCalculator;
}

@property (nonatomic, retain) IBOutlet UILabel *display;
@property (nonatomic, retain) NSMutableString *displayString;

-(void) processDigit: (int) digit;
-(void) processOp: (char) theOp;
-(void) storeFracPart;

// Numeric keys

-(IBAction) clickDigit: (UIButton *) sender;

// Arithmetic Operation Keys

-(IBAction) clickPlus;
-(IBAction) clickMinus;
-(IBAction) clickMultiply;
-(IBAction) clickDivide;

// Misc Keys

-(IBAction) clickOver;
-(IBAction) clickEquals;
-(IBAction) clickClear;

@end
Logged
fujilla
Global Moderator
Sr. Member
*****
Posts: 270


WWW




« Reply #1 on: September 28, 2011, 07:39:13 AM »

A .xib (or nib) file to us is not a file of code.  It is a graphical representation of a view.

I am not quite sure what you have done here.

Nick
Logged
diggerbyte
Newbie
*
Posts: 14






« Reply #2 on: September 29, 2011, 12:31:19 AM »

Thanks for that.  I'll start again.
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.