Search code examples
macosuser-interfacenotificationsstatusbarmenubar

How do I achieve the UI effect of a window pointing to a status bar item?


I've seen this done on a few apps:

enter image description here

Can anyone suggest a starting point on how to do this? I've done some work with the Interface builder and Cocoa, but nothing this fancy. The requirements are to be able to display a window on demand under a particular menubar icon, and have the user be able to interact with it (buttons and text fields). Not asking for a full blown solution (unless one exists), just a friendly push in the right direction...


Solution

  • I stumbled upon this: http://mattgemmell.com/2008/03/04/using-maattachedwindow-with-an-nsstatusitem/

    Matt Gemmell made a very nice class for these kinds of windows MAAttachedWindow