Jump to content

NSTableView: delete entry with "delete" key


1 post in this topic

Recommended Posts

Hi, I am a Xcode beginner and trying to make simple cocoa database.

I could make new and delete button to work, but cannot figure out how to delete entry(row) by pressing "delete" button on keyboard.

I have a separate myDatasource class that has a pointer to NSTableView and NSMutableArray for itemlists.

I guess keyDown and deleteBackword should be used somewhere, but I cannot make it work.

 

Please give me any suggestions. Thanks

Link to comment
Share on other sites

 Share

×
×
  • Create New...