Revision: 27455
          http://sourceforge.net/p/bibdesk/svn/27455
Author:   hofman
Date:     2022-05-22 14:35:54 +0000 (Sun, 22 May 2022)
Log Message:
-----------
No need to update editor when updating objectValue, this should be done by 
NSTextField. Make sure complex string editor is attached when value changes to 
complex.

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2022-05-22 06:30:15 UTC (rev 27454)
+++ trunk/bibdesk/BDSKEditor.m  2022-05-22 14:35:54 UTC (rev 27455)
@@ -2533,9 +2533,10 @@
                 // don't use newValue, because this can be the parent's value
                 NSString *tmpValue = [publication valueOfField:changeKey] ?: 
@"";
                 BDSKEditorTextField *textField = [self textFieldAtRow:row];
-                if ([textField currentEditor])
-                    [[textField currentEditor] setString:[textField formatter] 
? [[textField formatter] editingStringForObjectValue:tmpValue] : tmpValue];
+                BOOL wasComplex = [tableCellFormatter editAsComplexString];
                 [textField setObjectValue:tmpValue];
+                if ([textField currentEditor] && wasComplex == NO && 
[tableCellFormatter editAsComplexString])
+                    [tableCellFormatter didStartEditor:[textField 
currentEditor]];
                 id object = nil;
                 if ([tmpValue isInherited])
                     object = [[[BDSKField alloc] initWithName:changeKey 
bibItem:nil] autorelease];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to