Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to programmatically add new NSToolbarItem to existing toolbar?

Tags:

I'm looking for a method called addNewItem:(NSToolbarItem *)item or something like this that lets me add a programmatically created item to my toolbar, but I haven't found any. I would like to add an item that shows a popover when the user clicks on it, like in Safari when the user downloads something.