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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:36:00+00:00 2026-05-27T21:36:00+00:00

When I use an .xib, I connect a view’s delegate to the File’s Owner

  • 0

When I use an .xib, I connect a view’s delegate to the File’s Owner via interface builder, then go into the view controller’s .h file and set it as the delegate to complete the connection via .

However in storyboard mode, there is no file’s owner object. I am using an engine called NinevehGL, which simplifies the process of rendering models with openGL. This engine requires that I create a view, set it’s class to NGLView, connect it’s delegate to the file’s owner object, and add to the header file of the view controller .h file to complete the connection (and then implement the appropriate methods such as drawView in the view controller). This all work’s great via .xib files, but how do I accomplish this via a storyboard?

I would obviously prefer to adopt the new storyboarding technique in xcode, but I cant seem to figure out how to mimic the process I normally do in an .xib with a storyboard. The apple docs mention the using the rootViewController, but the explanation is a little fuzzy.

Can anyone explain the process to me?

  • 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-27T21:36:00+00:00Added an answer on May 27, 2026 at 9:36 pm

    In nibs earlier, typically the file’s owner was just the view controller that loaded its view from that nib.

    Now with storyboards, the view controller that implements a particular scene is included with the scene itself. You can see it in the bar below the scene (see pic)

    So where you made connections to the file’s owner before, now you make them directly to the view controller. Don’t forget to set the class of that view controller object to the correct class.

    enter image description here

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

Sidebar

Related Questions

I want to use CustomTableViewCell.xib in several classes. But file's owner is only one.
Assuming I want to use a xib in interface builder, to add a UIViewController
Can I use a diffrent .xib file when the iPad is rotated into landscape
I'm looking into creating a simple iPhone app without using the interface builder, i.e.
When I create a new xib in interface builder the Interface Builder Document (Versioning)
I want to use two picker view in one xib. How can i do
I have basic *.xib file, which have NSView. How can I use another nib
Without using Interface builder or xib files, what is the correct way to instantiate
I have an UITableView showing custom view cells that I've designed in interface builder.
I need to use a custom view into a NSMenuItem. I've created a new

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.