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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:47:26+00:00 2026-06-17T14:47:26+00:00

I am receiveing this error message when launching a IBAction from an NSView. XXXX

  • 0

I am receiveing this error message when launching a IBAction from an NSView.

XXXX is AccountTableCellViewController I did put it with an abstract name in case it can help other prople.

This is the structure of the components:

I have an app where I load this view:
enter image description here

Using this NSView as cell
enter image description here

The TableView has been binded like this:

@property (nonatomic,retain) IBOutlet NSTableView *tableView;

I display the contents as follows (I have some doubts on not linking the controller anywhere)

- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
    Account *account = (Account *)[self.dataSource objectAtIndex:row];

    AccountTableCellViewController *controller = [[AccountTableCellViewController alloc] initWithNibName:@"AccountTableCellViewController" bundle:nil ];
    controller.account = account;
    return [controller view] ;
}

Any idea?

  • 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-17T14:47:27+00:00Added an answer on June 17, 2026 at 2:47 pm

    This is a pre-ARC equivalent of your code

    - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
    {
        Account *account = (Account *)[self.dataSource objectAtIndex:row];
    
        AccountTableCellViewController *controller = [[AccountTableCellViewController alloc] initWithNibName:@"AccountTableCellViewController" bundle:nil ];
        controller.account = account;
        NSView *result = [[controller view] retain];
        [controller release]; /// !!!
        return [result autorelease];
    }
    

    Your controller is already deallocated at the moment tableView:viewForTableColumn: returns. You say in comments that you’ve tried to keep controllers in array but it doesn’t help. Please update your question with a corresponding sections of the code, because something is wrong here.

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

Sidebar

Related Questions

I'm receiving this fatal error message: Using $this when not in object context. This
I'm using phoenix::bind and receiving this error message: error C2039: 'bind' : is not
I want to update plugins on redmine but I keep receiving this error message
I get an error 'this row already belongs to this table' from the following
I am receiving this error message when I debug my program. Object reference not
I keep receiving this error (from the apache log) and I cannot get the
I'm receiving a 403 error when requesting data from a URL. This is expected
I want to stop receiving this error message when I run my iPhone app
I keep on receiving this error message. I followed the instructions but it seems
We receive this error quite frequently from our appengine application. Are other people receiving

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.