Superbil / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
1 stars 0 forks source link

Can't use Apple key + drag to move Tunnelblick icon in menu bar #236

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
One should be able to hold the Apple key and drag the Tunnelblick icon in the 
menu bar to change its position, just like it works with the other Apple menu 
bar items.

Original issue reported on code.google.com by thomas...@gmail.com on 23 Aug 2013 at 5:30

GoogleCodeExporter commented 9 years ago
Thanks for your suggestion. Although it would be nice to move the icon this 
way, the price of doing so is too high.

Tunnelblick's behavior is by design and will not be changed. Here's an 
explanation:

Command-drag works for the Apple-supplied status bar items (like Time Machine, 
WiFi, etc.). And it works for the non-Apple Smart Utility. It does not work for 
Google Notifier or ClamXav Sentry (or Tunnelblick). (It doesn't work for 
Spotlight, either.)

The items it works for use Apples "menu extras" system calls to pretend to be 
part of OS X. NSMenuExtra is undocumented and unsupported, and is therefore 
considered a "hack".

Tunnelblick and the other applications that don't Command-drag use the 
Apple-supported and recommended NSStatusItem system calls.

Other than the ability to move an item with Command-drag, the biggest 
difference is that if an application using "menu extras" crashes, the entire 
status bar (containing all the "movable" status items) crashes and freezes. If 
an application using "NSStatusItems" crashes, it does not affect the rest of 
the status bar.

In my opinion, the risk of crashing the entire status bar is not worth the 
value of having the ability to Command-drag the item.

See http://stackoverflow.com/questions/623852/how-to-drag-nsstatusitems for 
more details.

Original comment by jkbull...@gmail.com on 23 Aug 2013 at 9:50