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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:59:48+00:00 2026-05-31T16:59:48+00:00

I have a XIB file with my controls in it, loaded in the Interface

  • 0

I have a XIB file with my controls in it, loaded in the Interface Builder (Xcode 4.0.2 on Snow Leopard).

The file’s owner is set to, let’s say, the someClassController class, and I’ve also added (in the Interface Builder) an NSObject instance of someClass, as well.

I’ve managed to link e.g. a button with an action in someClassController or someClass – and it works for both of them.

However, whenever I link an outlet to ANY of them, it fails to show up; and NSLog reports NULL pointers.

  • Hint : My issue here could be much more complicated than it seems, since both my someClass and someClassController classes inherit other classes, which inherit other classes and so on (I’m dealing with a huge-to-chaotic codebase, and I don’t really know what else could be helpful to post)… However, I would still like to hear your opinion on what might be going wrong in such a case…
  • 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-31T16:59:49+00:00Added an answer on May 31, 2026 at 4:59 pm

    When you see problems like this, it’s almost always because you have more than one object of the kind that has the outlet. The one in the nib whose outlet you connected is not the one that is examining its outlet.

    To investigate this, add statements in the object’s initializer method(s) and possibly awakeFromNib to log the value of self.

    Some (or all, or none) of the objects may be created in nibs, and some (or all, or none) of them may be created in code; objects in the latter group won’t trip awakeFromNib, since they didn’t.

    Either way, once you’ve inventoried what instances of the class you have, you can kill them off until you’re left with the ones you want.

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

Sidebar

Related Questions

I have a XIB set up like in this screenshot: alt text http://emberapp.com/jxpx777/images/interface-builder/sizes/m.png File's
I have a XIB file with a UITextView, which I'm associating with a UITextView*
In my xib file I have some View. And I have PainView class (UIView).
I have made a UIViewController subclass without a .xib file, thinking I would not
I have a UIViewController I am loading from a xib file and pushing onto
everyone. I have some labels that I draw them in the xib file, and
I have a .xib file for my viewController. It contains a TableView and a
So I have a UITableView in a .xib file. That's all that's in it.
I have one .xib file with an App Delegate. In this App Delegate, I
i have two .xib file like a.xib and b.xib. Now i am in b.xib

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.