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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:08:35+00:00 2026-06-11T21:08:35+00:00

Whilst trying to create a view based table it keeps calling the objectValueForTableColumn function

  • 0

Whilst trying to create a view based table it keeps calling the objectValueForTableColumn function instead of the viewForTableColumn.

I have set the table view to “view based” in its settings. But still I cannot make it call the correct function. I’ve looked at the implementation of apples example (tableviewplayground) and at some points even copy pasted the IB and functions, still no progress.

The relevant code:

// Should run
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row 
{    
    return nil;
}

// Gets run
-(id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
    return nil;
}

Two pictures, not sure how helpful they are but still. https://i.stack.imgur.com/8CKCx.jpg

  • 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-06-11T21:08:36+00:00Added an answer on June 11, 2026 at 9:08 pm

    A few things to check:

    • Does your NSTableView have its delegate set to the class that
      implements the NSTableViewDelegate protocol? (I ask because
      tableView:viewForTableColumn:row: is a delegate method whereas the
      tableView:objectValueForTableColumn:row: is a data source method.)

    • Are there any bindings that are set in IB? (You mention that you
      copied the nib from an existing project.) Check mainly for bindings
      to the NSTableView content binding and to the provided view’s
      subviews (usually the text field.)

    • Do you implement the numberOfRowsInTableView: method from the
      NSTableViewDataSource protocol and does it return a nonzero
      integer?

    Finally, you might have a look at the Table View Programming Guide chapter on “Populating View-Based Table Views Programmatically” in the documentation.

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

Sidebar

Related Questions

I'm trying to create a function that builds and displays a navigation menu, whilst
Gday All, I have a baffling problem whilst trying to insert some chinese characters
I am trying to create table with Foreign Key, but Netbeans is giving me
I have come accross something very strange whilst trying to use deflate, I am
Background I am trying to create a copy of a business object I have
Yet another problem whilst trying to create the UI for an app. I've got
Just trying to create a div that we can control its content via ajax
I'm getting an error whilst trying to install psycopg2 on ubuntu 9.10 64 bit.
Whilst reading jQuery Cookbook (Oreilly) last night I came across an each function that
I have been trying to follow the instructions in the answer to this question

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.