Browser selection now populates the menu. Selection is not used and not saved for now.

This commit is contained in:
michael starke
2014-02-13 23:47:14 +01:00
parent d98f4b40da
commit 5d64951ef2
5 changed files with 53 additions and 34 deletions

View File

@@ -59,6 +59,9 @@
NSLog(@"Warning. Unknow settingscontroller for identifier: %@. Did you miss to add the controller?", identifier);
return;
}
if([tab respondsToSelector:@selector(willSelectTab)]) {
[tab willSelectTab];
}
[self.toolbar setSelectedItemIdentifier:identifier];
if([tab respondsToSelector:@selector(label)]) {
[[self window] setTitle:[tab label]];
@@ -83,6 +86,9 @@
views:NSDictionaryOfVariableBindings(tabView)]];
[contentView layoutSubtreeIfNeeded];
if([tab respondsToSelector:@selector(didSelectTab)]) {
[tab didSelectTab];
}
[[self window] makeKeyAndOrderFront:[self window]];
}