Viscosity. OpenVPN client. For Mac.  
 
 

Support for moving the menu bar icon in Mac OS X

Suggestions/comments/criticisms are welcome here

Support for moving the menu bar icon in Mac OS X

Postby zexpe » Sun Sep 18, 2011 6:09 am

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...
zexpe
 
Posts: 4
Joined: Sun Sep 18, 2011 6:02 am

Re: Support for moving the menu bar icon in Mac OS X

Postby James » Wed Sep 28, 2011 6:18 am

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
User avatar
James
 
Posts: 953
Joined: Thu Sep 04, 2008 10:27 pm


Return to Viscosity Feedback

Who is online

Users browsing this forum: No registered users and 1 guest



 
 
 
 
Navigate

Home
Applications
Blog
About
Support
  Support

Support Home
Documentation
Knowledge Base
Forum
  Community

Blog
Forum
Twitter
Viscosity
Viscosity Server


 
 
SparkLabs Copyright © SparkLabs. All Rights Reserved.