quicksilver/Quicksilver — pull request #1197 by pjrobertson (2012-11-07 15:33:35+00:00)
Title: Only filter disabled catalog items if in 'Filter Catalog' search mode. Fixes #1195

I must admit that getting the current `searchMode` for the test is a bit messy, but I couldn't see an easier solution other than either changing the method(s) to pass the current QSSearchObjectView down, or properly making QSInterfaceController a singleton class.

I actually think the latter idea is what we should do, since there are numerous plugins where we have to do:
```obj-c
QSInterfaceController * intFa = [[NSApp delegate] interfaceController];
```

And we can't cast the delegate to `(QSController *)` since that file is part of the core app and not a framework. If we add a singleton method to QSInterfaceController like
```obj-c
+(QSInterfaceController *)interfaceController;
```

then we could just call that instead of having to go through the delegate