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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:19:09+00:00 2026-05-16T23:19:09+00:00

Do Nib files automatically initialize certain properties? In most objective-c code I’ve seen, you

  • 0

Do Nib files automatically initialize certain properties?
In most objective-c code I’ve seen, you initialize a pointer with:

MyObject* obj = [MyObject alloc];
[MyObject doStuff];
[obj release];

However, with certain objects (like ViewController Subclasses) UIView objects are used without being initialized, and aren’t ever released. Does UIKit automatically look for a .xib file and manage all of the ViewController instances for you?

If so, that is extremely confusing. How does all of this actually work? How can you declare a pointer in a header file, and then magically find it allocated when you need it?

Any help?

(Just a c++ guy complaining about objective-c)

  • 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-16T23:19:09+00:00Added an answer on May 16, 2026 at 11:19 pm

    NIBs are ‘frozen’ objects, plus the object graph. The objects are instantiated when the NIB is loaded. All links between objects are restored. Also set are pointers in the “Files Owner”, the IBOutlets, so the Owner of the NIB has references to the objects just loaded.

    Edit: your Info.plist may also refer to a “main” NIB which’ll get loaded during app launch. This often contains the main view controllers & views.

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

Sidebar

Related Questions

I've been trying to convert NIB files to Objective C code. I found the
In objective c (iphone) are the nib files (xib) the View part of the
I'm creating a ios application without nib files and want to initialize the window
Is it possible to initialize a NSRunLoop without loading any NIB files (i.e., without
i have a problem with switch view between 2 views with nib files !
In iOS apps, we have to register nib files with our table view before
How/where in the code does the nib file get related to its *.m and
I know nib files are serialized objects and they have owner, outlets to make
I have a problem loading different nib files in one tableView. I saw this
Are there any good reasons why I should not use XIB / NIB files

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.