Revision: 11892
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11892&view=rev
Author: hofman
Date: 2007-12-12 18:07:20 -0800 (Wed, 12 Dec 2007)
Log Message:
-----------
First try to stop editing before editing a cell. Otherwise we may ignore edit
validations.
Modified Paths:
--------------
trunk/bibdesk/BDSKEditorTableView.m
Modified: trunk/bibdesk/BDSKEditorTableView.m
===================================================================
--- trunk/bibdesk/BDSKEditorTableView.m 2007-12-13 01:26:19 UTC (rev 11891)
+++ trunk/bibdesk/BDSKEditorTableView.m 2007-12-13 02:07:20 UTC (rev 11892)
@@ -63,8 +63,10 @@
if ([theEvent clickCount] > 1)
theEvent = [NSEvent mouseEventWithType:[theEvent type]
location:[theEvent locationInWindow] modifierFlags:[theEvent modifierFlags]
timestamp:[theEvent timestamp] windowNumber:[theEvent windowNumber]
context:[theEvent context] eventNumber:[theEvent eventNumber] clickCount:1
pressure:[theEvent pressure]];
} else if ([cell isKindOfClass:[NSTextFieldCell class]] && isEditable)
{
- [self selectRowIndexes:[NSIndexSet indexSetWithIndex:clickedRow]
byExtendingSelection:NO];
- [self editColumn:clickedColumn row:clickedRow withEvent:theEvent
select:NO];
+ if ([[self window] makeFirstResponder:nil]) {
+ [self selectRowIndexes:[NSIndexSet
indexSetWithIndex:clickedRow] byExtendingSelection:NO];
+ [self editColumn:clickedColumn row:clickedRow
withEvent:theEvent select:NO];
+ }
return;
} else if (isEditable == NO && ([theEvent clickCount] != 2 || [self
doubleAction] == NULL)) {
return;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit