Trying again: how to implement textShouldEndEditing for NSTableView?
Trying again: how to implement textShouldEndEditing for NSTableView?
- Subject: Trying again: how to implement textShouldEndEditing for NSTableView?
- From: Matt Ridley <email@hidden>
- Date: Fri, 22 Jun 2001 19:08:40 +0100
Hello all,
I'm just trying one last time with my question about the text delegate for
an NSTableView (I posted it once before). Any help would be much
appreciated; I can't seem to solve the problem myself.
I have an NSTableView, with the same object set as its delegate and
dataSource. All is working fine.
However, I need to detect when a user is about to end editing a cell; I need
to implement the textShouldEndEditing method in the NSTableView's "text
delegate" (according to the NSTableView documentation).
I've tried implementing this method in the object which is my NSTableView's
delegate and dataSource, but it never gets called. I also tried making that
same object the window delegate for the window which contains the table, but
again the method never gets called. I've tried this with my own projects and
with the simple NSTableView examples from Learning Cocoa (using the source
from O'Reilly), so it doesn't seem to be a peculiarity of my projects.
How can I specify that my NSTableView's delegate/dataSource object should
also be its "text delegate", and/or how can I implement textShouldEndEditing
for an NSTableView?
Thanks in advance for any help anyone can offer. :-)
--
// Matt
- (void)sendMeEmail {
[[NSWorkspace sharedWorkspace] openURL:
[NSURL URLWithString:@"
mailto:email@hidden"]];
}