If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I am trying to implement a method that responds to a double-click on an uneditable row in an NSTableView. I have set up the target action method and I think I just have to tell the tableView which method to use. I believe -(void)setDoubleAction sel)aSelector is the way to go, but I can't figure out how to pass in the name of the method. I tried:
[myTableView setDoubleAction:myTargetMethod];
where myTargetMethod is just the name of the method:
-(IBAction)myTargetMethod id)sender
This gives me a type mismatch. Can anyone tell me how to do this?
To make a column, er, more non-editable, double click on the column header in Interface Builder, then go to the 'Attributes' tab in the info window, and uncheck 'Editable'. You'll need to do so for each of your columns.