Dock click event code

Hi, I need a simple working prototype app of the following concept.

As everyone knows, non UI-Agent OS X applications have an icon in the dockbar. I need to work out the screen coordinates and size of my running applications dock icon without using the accessibility API (which uses AXUIElementRef).

I've already had a look at NSDockTile but if you set a contentView it zeros the origin and gives a generic 128x128 size and not the actual dock zoom size. The closest solution I've found so far is using an AppDeligate "applicationShouldHandleReopen" to capture a generic [NSEvent mouseLocation], but this just gives a random point inside the dock icon where the user has clicked and not the actual origin or size.

The reason I want this information is to find the top centre of the icon so that a popup window can be "attached".

This technically might not be possible but if someone has a solution I will pay :)

Taidot: Mac OS, Objective C

Näytä lisää: app click event, event click dock, axuielementref nsdocktile, dock code, click dock, prototype popup, origin it solution, icon code, work objective, pay click, just click, need someone knows app, event concept, objective api, screen capture app, simple objective, event solution, coordinates click, click solution, dock, app dock, popup zoom code, need someone app icon, random user agent, click pay

Tietoa työnantajasta:
( 3 arvostelua ) SOUTHPORT, Australia

Projektin tunnus: #4293217