In Cocoa i want to create an nsbutton with delayed menu.
i.e., When clicked it should call the action method and when kept in pressed state for 2 seconds it should display a nsmenu.
It is similar to “Build Active Target” button present in Xcode toolbar.
Regards,
Dhanaraj.
It’s a NSPopUpButton.. Here is how I create it in my app.