New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
managing the source array from plug-ins #804
Conversation
* making a mutable copy in `showArray:withDirectObject:` breaks the ability to update it later
Previously, it would be observed by 6 instances of QSSearchObjectView.
…r the main interface
* This will allow us to refer back to the sender of the notification later. * This is the typical convention.
Initially, they're the same object. When the user types and alters the results, they become different, which will prevent unwanted further updates.
Added a constant as suggested. Here’s some code you can put into an action to test.
|
We could just remove the 'run tasks in background' option and make it default. What would we lose? It certainly creates a lot of problems when testing |
For posterity, if you don’t enable the “Run tasks in background” option, the example code above won’t update the results list in real-time. You get the initial list (One), then when the action returns after 4 seconds, you see the final result (Two, Three). The intermediate list (One, Two) is never visible. For a couple of reasons, I don’t think anything needs to be changed in this pull request.
I can only speculate, but I’m guessing this was implemented as an optional experimental feature. I think its stability is proven at this point, and I can only think of examples where having it off causes problems, but none where having it on does. But that’s a larger discussion for another place. |
managing the source array from plug-ins
Nothing inspires confidence like a third try, right? :-)
This is the same as #801, minus a few commits that require a new iVar in QSActionProvider.
Again, this is to address the issues in #768.