Re: Detecting editing in NSTableView cells?
Re: Detecting editing in NSTableView cells?
- Subject: Re: Detecting editing in NSTableView cells?
- From: Brendan Younger <email@hidden>
- Date: Sun, 17 Jun 2001 10:40:37 -0500
1. Is this the correct course of action?
yes.
2. How do I ask textObject which column and row of the table it's in? Or
should I just use selectedColumn and selectedRow?
selectedColumn and selectedRow will be the edited cell since the
delegate method is invoked before focus changes
3. I presume that my table delegate is the correct place to implement the
textShouldEndEditing method? The method is listed under "Text delegate
methods" in NSTableView's documentation, and I'm not sure whether it
will be
automatically found in my table delegate, or whether I need to specify
something in Interface Builder.
the delegate is indeed the correct place. don't worry about
"advertising" the fact that the method is implemented, if it is, it will
automatically be called. (One of the many great things about ObjC.)
Brendan Younger