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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:40:09+00:00 2026-05-25T19:40:09+00:00

I’m having some issues with understanding how to work with NSViewControllers on Mac. I’m

  • 0

I’m having some issues with understanding how to work with NSViewControllers on Mac. I’m trying to create custom table cells for NSTableView. In one of the delegates of the NSTableView, it can return a view, instead of a cell.

I have a subclass of NSViewController, and in the .xib everything is linked up correctly, but when I initialize the NSViewController, its UI components is not initialized… not even the default view that comes with it. I have tried it with a clean, stock, untouched implementation of NSViewController, just to make sure that the issue is not with something I’m doing. It is probably. I am initializing the NSViewController as follows:

testview *tmpChannel = [[testview alloc] initWithNibName:@"testview" bundle:nil];

The .xib does exist, and all the outlets are linked up correctly. Could anyone explain what is happening here? I’m using xCode 4.1 with Lion OS

Thanks.

  • 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-25T19:40:09+00:00Added an answer on May 25, 2026 at 7:40 pm

    Check your initialization with

    NSLog(@"%@", [tmpChannel description]);
    

    From your code I would assume, that you do get an object address here. That means the error is probably in the code that is supposed to display it.

    BTW, I recommend using capitalized class names, such as TestView.

    EDIT:

    Additional Information for loading xibs: The name of the xib file has to be the exact same as the class name. In this case you can actually completely omit the initWithNibName:bundle: part:

    // xib file is "ViewController.xib"
    // Class is defined as "ViewController"
    
    ViewController *newController = [[ViewController alloc] init];  // this is enough
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I'm trying to create an if statement in PHP that prevents a single post
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm having trouble keeping the paragraph square between the quote marks. In firefox the

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.