How can I get the on-screen location of a button in a toolbar? That is getting the rectangle frame of an NSToolbarItem
? The [NSToolbarItem view]
method seems to always return nil
whenever the toolbar item is only a simple action button and thus I couldn't use the normal NSView
methods to pinpoint the toolbar button's on-screen position.
Background
I'm trying to use Matt Gemmell's MAAttachedWindow
component to point to a specific toolbar button. The component requires an NSPoint
object to "point" the user to a location on the screen.
Thanks in advance.