Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API to access dictionary popover in OS X?

I've been trying to find this in the developer documentation, but having trouble so hoping somebody could answer it or point me in the right direction.

In OS X apps using (I think) Core Text, you can hover over a word and type ctrl + cmd + d (or in Lion triple-finger tap as a gesture) to look up a dictionary definition via popover.

Is there a public API to insert additional information into that popover?

like image 781
Martin McClellan Avatar asked Nov 13 '22 19:11

Martin McClellan


1 Answers

Apples Dictionary Services Reference offers HIDictionaryWindowShow(_:_:_:_:_:_:_:). This function opens a window containing the definition of your phrase.

like image 185
RHB Avatar answered Dec 26 '22 12:12

RHB