Hi all!
I'm making a simple Todo application in Cocoa. I have added a class (and an NSObject to the XIB) MATodoController:
MATodoController.h
#import <Cocoa/Cocoa.h>
@interface MATodoController : NSObject
{
IBOutlet NSTableView *table;
}
- (IBAction)addItem:(id)sender;
- (IBAction)removeItem:(id)sender;
@end
MATodoController.m
#import "MATodoController.h"
@implementation MATodoController
- (void)addItem:(id)sender
{
}
- (void)removeItem:(id)sender
{
}
@end
I have an outlet 'table' to an NSTableView and two actions 'addItem' and 'removeItem' called by button clicks.
Is there a way (ofcourse there is a way)How can I add new rows / remove selected rows to and from an NSTableView (users can select multiple rows at once)?
Thanks in advance.
Oh, one more thing: The NSTableView has only one column (which consists of checkboxes).