MPToolbarDelegate now takes care of the toolbar manipulation.

Toolbar is shown when search is started if it was hidden. If search revealed the toolbar, it will be hidden after the search is exited
If the toolbar was using text only mode, it switches to icon/text mode and then back to text mode after the search - there might be a better way to deal with this by simply using a menu for the search.
This commit is contained in:
michael starke
2014-02-28 20:36:10 +01:00
parent 7f03985eff
commit 0c4ddf3127
3 changed files with 48 additions and 26 deletions

View File

@@ -27,6 +27,7 @@
@interface MPToolbarDelegate : NSObject <NSToolbarDelegate>
@property (weak, readonly) NSSearchField *searchField;
@property (weak) NSToolbar *toolbar;
- (void)registerNotificationsForDocument:(MPDocument *)document;