Page 1 of 1

SendMessage and Window Subclassing on Mac OS

Posted: Fri Apr 30, 2010 7:18 pm
by RRobert
Hello,

the Windows API provides a function called SendMessage which offers the option to send a message to every window or control, in case you know or get the window handle by FindWindow for example.

Furthermore it is possible to subclass windows belonging to another process by different methods.

Are there equivalents on Mac OS?

Robert

Re: SendMessage and Window Subclassing on Mac OS

Posted: Sat May 01, 2010 5:21 pm
by bn
Robert,
since no one answered yet:
I dont know anything about MacOSX API's etc. Neither about shell.
But many things can be done via applescript in OSX. If you give an idea what windows you want to address and what the scope of this is/what you want to do/ maybe there is an applescript solution.
regards
Bernd

Re: SendMessage and Window Subclassing on Mac OS

Posted: Sun May 02, 2010 9:04 am
by RRobert
Hello Bernd,

thanks for your kind response. But I already found what I was looking for.

For everyone who reads this later and is on the same path, if you are coming from the Windows world you should realy consider to join the Mac Developer Program to watch the Mac Development Foundation Videos. Especially "Session 100 - Coming to the Mac OS X Platform: Part 1--The Mac OS X Architecture" and "Session 101 - Coming to the Mac OS X Platform: Part 2--Frameworks, APIs and Tools".

PS: Google Books is your friend too.

Robert