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

  • Home
  • SEARCH
  • 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 201801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:13:52+00:00 2026-05-11T17:13:52+00:00

I might not be using IBOutlet correctly, or some other subtlety with how NIB

  • 0

I might not be using IBOutlet correctly, or some other subtlety with how NIB files work is causing me trouble – any help would be much appreciated (feel free to propose an alternate way to accomplish what I want).

I have a View object and a Controller object. Both are in the NIB. The Controller’s init is also called when the NIB is loaded and the View is initialized in the ‘awakeFromNib’ callback.
I need a way to connect these two objects – specifically, enable the ‘View’ object to call functions on the Controller.

Based on documentation online, the way to get these connected is to define an IBOutlet in the View and connect it to the Controller in the Interface Builder. So i created an

IBOutlet Controller* _controller;

in the View interface and graphically connected it to the Controller object in Interface Builder by making a connection from the View to the Controller and assigning the _controller outlet to the Controller (the blue Generic Object box in Interface Builder).

At runtime though, _controller is always _nil. I have verified that the Controller’s init was indeed called.

Is there something obvious I’m missing about this?
Any simpler way to connect these two? Since they’re both created by the NIB I don’t have a common object that has a pointer to both.

  • 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-11T17:13:52+00:00Added an answer on May 11, 2026 at 5:13 pm

    Try accessing the IBOutlet in viewDidLoad instad.

    When awakeFromNib is called not all the IBOutlets are populated (even though the documentation seem to imply it).

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

Sidebar

Related Questions

Is there any condition where finally might not run in java? Thanks.
Possible Duplicate: Howto build a SQL statement with using IDs that might not be
This question might not seem programming related at first, but let me explain. I'm
I know it might not be according to Apple's human interface guidelines for the
To recap for those .NET gurus who might not know the Java API: ConcurrentHashMap
What is their use if when you call the method, it might not exist?
OK, this is an odd request, and it might not even be fully true...
I am not convinced - I think it might be useful to expose your
There might be applications that are not suited for Core Data - image manipulation
Although my question might seem abstract I hope it's not. Suppose I develop an

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.