Setting text delegate for an NSTableView?
Setting text delegate for an NSTableView?
- Subject: Setting text delegate for an NSTableView?
- From: Matt Ridley <email@hidden>
- Date: Thu, 21 Jun 2001 17:02:36 +0100
Hi folks,
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.
How can I specify that my NSTableView's delegate/dataSource object should
also be its "text delegate"?
Thanks again. :-)
--
// Matt
- (void)sendMeEmail {
[[NSWorkspace sharedWorkspace] openURL:
[NSURL URLWithString:@"
mailto:email@hidden"]];
}