What is the equivalent of PostMessage/SendMessage in Windows on Mac OS X?
I have recently started out with Mac development, with most of my experience coming from Windows and nix.
I want to hook a window and simulate mouse clicks or keyboard presses. Also I want to be able to find a function like GetWindowText or any function that can get a certain text from a window.