munkiadmin
munkiadmin copied to clipboard
Unified Toolbar
This is mostly cometic, but I think makes it a little clearer. Thoughts?
That's probably where MunkiAdmin is going in some future release. Is that photoshopped or did you already have the code? :smile:
It's just a one-liner to fix. Create the toolbar you want, then add this:
[[self window] setTitleVisibility:NSWindowTitleHidden];
Atleast, that's how i do it in the profile app:
Sweet, I need to look more into this. I still need to support 10.8+ for a while though and NSWindowTitleHidden is 10.10+.
It's all done and working, no Photoshop it's all in the XIB no code changes. Here are the changes, https://github.com/chrisgrande/munkiadmin/commit/00790220f8cae90c3b0c8127587a2e771382d39f
Just so I'm clear, it's effectively the same thing as doing it in code as you're settings titleVisibility but from Interface Builder: https://github.com/chrisgrande/munkiadmin/commit/00790220f8cae90c3b0c8127587a2e771382d39f#diff-4df3c56ce936d82de00142cd1d502254R258 ?
Or have you done a custom toolbar that works where titleVisibility (10.10+) isn't available? Curious as that would be nice for some other projects where I support 10.8 as well.
It's basically the same as doing it in code but with the runtime attribute, on < 10.10 the toolbar will revert to the normal non unified toolbar.