NSTextFieldCell subclass won't edit
NSTextFieldCell subclass won't edit
- Subject: NSTextFieldCell subclass won't edit
- From: Brian Webster <email@hidden>
- Date: Wed, 16 Oct 2002 16:34:20 -0500
I've implemented a subclass of NSTextFieldCell for doing a little
additional drawing alongside the text in the cell, and I'm currently
using the cell in one of the columns of a table view. However, when I
double click on the cell to edit its contents, nothing happens.
I've only implemented the drawWithFrame:inView: method in my subclass
(which just calls super and then draws an image), along with one simple
accessor for a boolean flag. I also implemented the NSCopying
protocol, but that didn't change anything. My
tableView:shouldEditTableColumn:row: method is getting called correctly
and returning YES. If I change the cell back to a plain
NSTextFieldCell, everything works correctly. Putting a breakpoint on
-[NSCell editWithFrame:inView:editor:delegate:event:] reveals that this
method never gets called.
Anyone have any ideas as to why this isn't working?
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.