Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6611113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:55:43+00:00 2026-05-25T19:55:43+00:00

I started my intrepid journey into learning objective-c for ios, and got as far

  • 0

I started my intrepid journey into learning objective-c for ios, and got as far as trying to build my view in the interface builder, when I realized that I can’t link up the buttons I’m creating to my File’s Owner. I have made sure that my File’s owner has my view controller selected, and have tried restarting xcode and the interface builder. Here’s the contents of both my .h and .m files:

My CalculatorViewController.h file:

#import <UIKit/UIKit.h>
#import "CalculatorBrain.h"
@interface CalculatorViewController : UIViewController {
     IBOutlet UILabel *display;
     CalculatorBrain *brain;
}
- (IBAction):digitPressed:(UIButton *)sender;
- (IBAction):operationPressed:(UIButton *)sender;

@end

And the CalculatorViewController.m file:

#import "CalculatorViewController.h"

@implementation CalculatorViewController

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];

    // Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}

@end

In short, every time I click on a button in my Interface Builder View, hold CTRL, and drag the blue line over to “File’s Owner,” nothing happens. In the tutorial I’m watching (The Stanford Fall 2010 IOS tutorials, lesson 2 – if that helps) shows File’s Owner highlighting and working like a champ. Any help would be much appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:55:43+00:00Added an answer on May 25, 2026 at 7:55 pm

    Invalid definition of IBActions. (Extra colon)

    Change

    - (IBAction):digitPressed:(UIButton *)sender;
    - (IBAction):operationPressed:(UIButton *)sender;
    

    To

    - (IBAction) digitPressed:(UIButton *)sender;
    - (IBAction) operationPressed:(UIButton *)sender;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just started learning NServiceBus and trying to understand the concept. When it talks about
I started trying to play with Mono, mostly for fun at the moment. I
Started learning octave recently. How do I generate a matrix from another matrix by
Started to learn haskell today for school and I run into a problem with
Started experimenting with building classes, and I've began by converting my user registration/login into
Started learning java a week ago and also decided learning the right way to
Started learning javascript yesterday at CodeAcademy and decided I could actually write code. Just
I started learning Jquery mobile, I followed this http://dev.jtsage.com/jQM-SimpleDialog/demos/string.html . Nothing happens when I
Started using omnifocus recently and really like it. I prefer gmail's web interface, so
I started working with phonegap on ios. Ive been building the samples on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.