Reputation: 501
I have created a custom class for NSTableview and then created a Protocol/delegate for row selection in the custom class.Then in the View controller XIB i got NSTableview and I have changed the class to Custom class. I created a IBOutlet for the same and then set the custom delegate to self inside the method initWithNibName from view controller. And also I have written the delegate methods inside the View controller. But the delegate method is not called on the row selection. The delegate object is nil and also delegate is not reposing to the selector. Could any one guide me what am i doing wrong or if any thing is missing?
Upvotes: 0
Views: 153
Reputation: 826
Please try to move the setDelegate call to NSViewController's viewDidLoad
Upvotes: 1