bdrister/AquaticPrime

License Utility: Product renaming doesn't work

Closed this issue · 4 comments

Right-click on product, choose Rename. No effect.

  • Table column is editable in nib
  • Text cell is editable in nib
  • -[ProductController renameProduct:] is being called, which calls -[NSTableView editColumn:row:withEvent:select:] with what appears to be correct values, but to no effect.

Try to change, in your NIB, the class of the tableview from OAGradientTableView back to NSTableView: it works :-)
The method drawInteriorWithFrame of AQTextFieldCell should take in consideration if the cell is editing its value or simply displaying it

Thanks, that sounds like a promising lead. I'll take a look at it when I get a chance. (Or if you already have a patch in mind I'd be happy to apply it.)

Try the following:

  1. in Interface Builder, select the text field cell of the column of the tableview: set AQTextFieldCell as class
  2. in OAGradientTableView.m comment the unique line in awakeFromNib

Test it and let me know :-)

Your patch appears to fix the problem, and doesn't appear to have any adverse effects. I've committed it to the trunk. Thanks!