Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menulet icon (tray icon) does not support cmd+drag in OS X #3347

Closed
kethinov opened this issue Apr 7, 2015 · 11 comments
Closed

Menulet icon (tray icon) does not support cmd+drag in OS X #3347

kethinov opened this issue Apr 7, 2015 · 11 comments

Comments

@kethinov
Copy link
Contributor

kethinov commented Apr 7, 2015

Actual:

  1. Build app with a menulet icon (tray icon) in OS X.
  2. Attempt to rearrange its position with cmd+drag.
  3. It triggers the tray menu.

Expected:

It should allow repositioning the icon rather than triggering the tray menu.

@marcfowler
Copy link

I'm not able to move any tray icon on OSX (Yosemite). Are you 100% sure it's a nwjs issue?

@kethinov
Copy link
Contributor Author

kethinov commented Apr 8, 2015

Menumeters does it, as do most built-in Apple menulets like time machine, bluetooth, wifi, sound, date, battery, etc.

@kethinov
Copy link
Contributor Author

kethinov commented Apr 8, 2015

Although I do agree it seems rare for third party apps. Most of mine (aside from Menumeters) do not have this feature.

@brian-mann
Copy link

I would also like this feature.

@tommoor
Copy link

tommoor commented Apr 10, 2015

None of my (many) tray apps offer this functionality, not that I think it's a bad idea. Feels like this should be implemented at the OS level!

@ePirat
Copy link

ePirat commented Jul 14, 2015

This is not a bug, as there is no public API that supports this. Only OS menubar items (like clock or battery) support this using special private API. Menumeters uses private APIs to achieve this behavior, but I don't think nwjs should go this way as it's very unreliable and would prevent any nwjs app to be submitted to the App Store.

@kethinov
Copy link
Contributor Author

@ePirat interesting! Good to know. I'll close this issue then.

Seems like it would still be possible to implement the feature via an unsupported third party plugin/extension for NW.js, but I definitely agree that the App Store complications mean it should not be part of the main project.

This might also be worth mentioning in the official docs somewhere.

@marcfowler
Copy link

Sorry, I hate to reopen but are you 100% sure that's right? I personally don't know ObjC but our company had an app created which accepts files to be dropped onto a tray menu, in fact we've done it twice. Neither of these are in the App Store but I'm not aware of any private API being used to do it.

The two answers to this question seem to indicate that it is possible? http://stackoverflow.com/questions/5663887/drag-and-drop-with-nsstatusitem/6493240

@ePirat
Copy link

ePirat commented Jul 14, 2015

This bug is not about file drag and drop but about moving the menu item around by holding cmd and dragging it around.

@marcfowler
Copy link

Whoops! You're right; a thousand apologies!

@kethinov
Copy link
Contributor Author

I updated the wiki to reflect this conversation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants