SparkLabs Forum.

Community Help.


Support for moving the menu bar icon in Mac OS X

Is it possible to support Cmd-Click moving of the menu bar icon for Viscosity? Doing a bit of research I see that it requires use of an undocumented Apple API, NSMenuExtra, which puts some developers off, though others suggest the worse that would happen if something went wrong would be a restart of the SystemUIServer. What's your opinion on this one?

I realise there's an option to move it to the far right, instead of the far left, but I personally prefer to keep my clock as far right as possible...
Hi zexpe,

We did consider going with a NSMenuExtra menu (instead of a NSStatusItem), however the problem is Apple have been quite aggressive in the past at blocking developers from using NSMenuExtra. They'll often block whatever is the current workaround for accessing the API in updates to Mac OS X ("MenuCracker"), which means that after a system update Viscosity's menu may disappear (or Viscosity crash), which wouldn't go down too well among users.

That's not to say we've ruled the idea out - in fact it's still something we want to implement (I personally would prefer the icon to the left side of the battery indicator). However any implementation would have to use a NSStatusItem by default, and find some way to revert to a NSStatusItem if loading a NSMenuExtra fails.

Cheers,
James
2 posts Page 1 of 1

Copyright © 2016 SparkLabs Pty Ltd. All Rights Reserved. Privacy Policy