Hi,

I’m new here so please let me know if this isn’t an appropriate place to
ask these kinds of questions. Otherwise I have two unrelated questions:

• Does anybody know if there is any documentation explaining the primary
  and secondary caches in XCUBasedAcceleratorConfiguration? There’s some
  sort of dance for moving accelerators between them but it’s not
  obvious to me what the purpose is and I couldn’t find an explanation.

• I really wanted to make a unit test for tdf#144560. The bug involves
  the fact that accelerators are handled specially on MacOS because the
  Cocoa framework itself handles the key events and activates the menu
  item instead of asking the LibreOffice accelerator configuration.
  Because of that, the unit test would ideally work by synthesising
  events at the Cocoa level so that its menu handling code would be
  invoked. I got as far as figuring out a way of adding Objective-C code
  to the unit test and injecting the events, but I think it’s not going
  to work because there’s no window in the unit test. It seems like the
  testing framework is mostly designed to test the internal data
  structures without a UI. Is this correct? Is there a better way to
  write unit tests that involve actually invoking the UI?

Thanks in advance for any help.

Regards,
– Neil

Reply via email to