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 3305236
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:08:45+00:00 2026-05-17T21:08:45+00:00

got a quick question for you (pretty much the title): is the book Cocoa

  • 0

got a quick question for you (pretty much the title): is the book Cocoa Programming for Mac OS X (3rd Edition) outdated?

It’s just that I read a little in it, until page 36 (in a .PDF ebook version) where I came across a problem. The chapter introduces you to Objective-C and Cocoa, and you already have to write a program by yourself. Exciting. But when he makes a class called Foo.h and Foo.m, my Xcode doesn’t follow the guide.

  1. His Interface Builder is different from my Interface Builder.
  2. When he is about to make outlets and actions, I can’t do it. They just won’t show up.

I am sure I entered the correct info in my Foo.h file:

#import <Cocoa/Cocoa.h>


@interface Foo : NSObject {
 IBOutlet NSTextField *textField;
}

-(IBAction)seed:(id)sender;
-(IBAction)generate:(id)sender;
@end

the Foo.m file:

#import "Foo.h"

@implementation Foo

@end

and I dragged them both to the “Class” folder,
but it still won’t show them in IB.
Besides that, Xcode shows three warnings:

  • Incomplete implementation of class ‘Foo’
  • Method definition for ‘-generate:’ not found
  • Method definition for ‘-seed:’ not found

This is why I think the book is outdated, but these are not errors, just warnings.

Here’s some screenies:

How his looks
vs. how mine look

How his looks
vs. how mine look

This just made me think that the book might be outdated, and if I can use it all (if there are mistakes in every chapters).
Is it me that made a stupid mistake, or is the book really outdated?

Please help me out on this one, as I really want to learn Objective-C and Cocoa 🙂
Thank you.

  • 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-17T21:08:46+00:00Added an answer on May 17, 2026 at 9:08 pm

    The book worked fine when I started building apps on Snow Leopard. A few things like “NIB” vs. “XIB” crop up, but the concepts are the same. Now on to your problem.

    You won’t see any connections in the Identity tab for your class when using a version of Interface Builder that is later than was used in the book. You want the connections tab for that.

    Best I can tell from your screenshots, your class is in IB but the connections aren’t listed. Are you actually referencing the correct class? Perhaps you have a few “foo.h” files floating around and grabbed the wrong one. Here’s how to tell. Open the Library window in IB if it’s not already open. In the search box at the bottom, type “foo”.
    alt text

    In the pulldown that says “Inheritance”, change it to “Definitions”. You’ll see something similar to this:
    alt text

    If it doesn’t say “2 actions, and 1 outlet”, you’ve got the wrong file (I know your file works because I pasted it in to write this up). Confirm the contents of the file that IB is using by clicking “foo.h”. That will open the file in Xcode. Make sure it contains what you think it contains.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a quick question about running a directX application (C++) in a managed
I've got a quick question about default values in PL/SQL functions in Oracle. Take
I've got to get a quick and dirty configuration editor up and running. The
I've got this nasty problem where sending multiple, large messages in quick succession from
Got a class that serializes into xml with XMLEncoder nicely with all the variables
Got a bluescreen in windows while cloning a mercurial repository. After reboot, I now
got a new blog at wordpress few days ago ( http://ghads.wordpress.com ) and I
Got myself in a bit of a pickle here ... working on a CMS
Got a problem with ADOMD.NET 8.0, SQL2008 and our app. It isn't giving us
Got a bit of a mind freeze at the moment. I have the following

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.