0

I'm new to mac development. I developed an application using the NSTabView in which al worked fine for me.

But later I wanted to change the UI so I used NSSplitView in this I'm able to display the xib, but the button action are not happening, and I'm getting an error:

Could not connect the action cancelAction: to target of class NSViewController".

- (IBAction)cancelAction:(id)sender
{
    [self enableNewProductAction];
}

How can I fix this problem?

derekerdmann
  • 17,696
  • 11
  • 76
  • 110
user1838670
  • 81
  • 10

1 Answers1

0

Somewhere, you'll have an object in your XIB file that has its class set to NSTableView instead of your custom subclass. Find that and change it, and you'll be set.

iKenndac
  • 18,730
  • 3
  • 35
  • 51