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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:43:35+00:00 2026-05-20T04:43:35+00:00

So I have: created a couple of custom controllers (add file UIViewController subclass) in

  • 0

So I have:

  • created a couple of custom
    controllers (add file
    UIViewController subclass)
  • in Interface Builder dragged two
    ViewController items from the Library
    to the MainWindow.xib (ie when
    applicationDelegate is, and the main
    window) pane, then set their class
    names to be those of the custom
    controllers respectively

Now that I have done this:

  • should this then automatically take
    care of instantiating these
    controllers for use in the
    Application Delegate’s
    “didFinishLaunchingWithOptions”
    method for example?

  • Or do I still need to create these
    controller for the Application
    Delegate *.h and *.m files?

  • Or in other words again, trying to
    understand what IB actually does for
    you when you create
    customViewControllers and link them
    up…

  • 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-20T04:43:36+00:00Added an answer on May 20, 2026 at 4:43 am

    A bit more detail: when you add objects to a nib/xib file, what happens is that live objects are created, and then archived into the nib file. When you load a nib file, those archived objects are unarchived and “brought back to life” with the same settings they had when they were originally archived. Additionally, any connections that you make in the nib file between actual (UILabel, UIViewController, etc.) objects and proxy objects (“File’s Owner”) are filled in with the pointers to those newly unarchived/created objects. Note the special role of File’s Owner: the class that File’s Owner is assigned to is not created at nib load time. Instead, at the time that the nib file is loaded, e.g., with this call:

    [[NSBundle mainBundle] loadNibNamed:@"MyNib" owner:ownerObject options:nil];
    

    any outlets that have nil value in ownerObject (of the same class type as specified in File’s Owner) which are hooked up to objects in the nib are then set to point to those newly created objects.

    You can use this fact to create self-contained and re-usable bits of View hierarchies that you load and use wherever you want: header/footers/custom cells for UITableViews, reusable-“widgets” that you create/package yourself and use repeatedly throughout the app, etc. Once you understand this, your Cocoa (touch) view programming skills go “up a level” and creating structured, modular view objects gets much, much easier and more fun!

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

Sidebar

Related Questions

I have created a UserControl, and added a couple of custom routed events. The
I have created a web service which has a couple of methods developed using
I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a C# class file by using a XSD-file as an input.
I have created a foreign key (in SQL Server) by: alter table company add
I have created a custom entity in MS CRM 4.0 and am trying to
I have created a custom control that is included in a control library that
I am learning Objective-C and have hit a snag. I have created a custom
Have created a c++ implementation of the Hough transform for detecting lines in images.
I have created a template for Visual Studio 2008 and it currently shows up

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.