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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:29:02+00:00 2026-05-15T13:29:02+00:00

In most of the samples the return value from loadNibNamed value is not used,

  • 0

In most of the samples the return value from loadNibNamed value is not used, so I guess it’s using the owner argument. But how does it work and make the connection to the owner object? What kind of requirements should my owner class meet in order to load a nib in such way?

The only requirements I can guess is that

  1. the owner class must have an outlet defined on or many of the objects in the nib file
  2. the nib file’s owner SHOULD be set to the class where the nib is being loaded, then the owner param in loadNibNamed can be set to self
  3. the nib file should have all connections set to outlets defined in owner class

Am I right in my assumptions or is there anything else I have to consider while using loadNibNamed?

  • 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-15T13:29:03+00:00Added an answer on May 15, 2026 at 1:29 pm

    You have a basic understanding of what is required, though you should also consider memory management (which is slightly different for iPhone versus Mac). To really understand what is going on with this method, you should read the Nib Files section of the Resources Programming Guide. It covers the actual methods used to make the connections (which can be important), and the retain counts that various objects will have when it is done. Again, these are all slightly different between Mac and iPhone. iPhone has generally improved the consistency of how nib objects are handled.

    For good measure, I always recommend that people read Memory Management of Nib Objects from the Memory Management Programming Guide. It’s critical reading whether you use the lower-level methods or not.

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

Sidebar

Related Questions

I am using python urllib2 to download pages from the web. I am not
In most samples I have seen on the web, DI in MVC Controllers is
Most of us write conditionals like: if (resultIndex == 0) ...but occaisionally I come
Most video codecs are optimized for movies. However, not all videos look like real-world
I'm using g++ on fedora linux 13. I'm just practicing some exercises from my
Our DBA requires us to return all tabular data from stored procedures in a
i'm trying to extract from proper noun from a tagged file. But the problem
What is the most efficient way of setting values in C# multi-dimensional arrays using
I'm looking for a simple method to read a hex value from a text
i am looking for a longest common words c# implementation. Most of the samples

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.