.CurrentRecord is triggered twice when adding or inserting records

Issue #1182 resolved
Jim Rea repo owner created an issue

This is triggered in Database+SyncDisplay.m

  • (void) syncDisplay:(syncDisplayOption)syncOption Record:(NSInteger)recordChanged Field:(NSInteger)fieldChanged

Not sure if it should just not be triggered for syncOption = addRecord/insertRecord/deleteRecord or if it would need to keep track of the record id when it was last triggered.

https://forum.provue.com/t/currentrecord-runs-twice/4620

Comments (3)

  1. Jim Rea reporter

    Documented the fact that sometimes the .CurrentRecord procedure will get called more than once for a single operation, for example adding a new record. Spent about an hour trying to get this to work, determined that it is impossible because NSTableView is feeding additional display sync events back into the system. Fixed issue #1182.

    → <<cset 58a82c22dc6c>>

  2. Log in to comment