Recent

Author Topic: Mac alternative for FindWindow ?  (Read 7666 times)

Jaco

  • New Member
  • *
  • Posts: 45
Mac alternative for FindWindow ?
« on: March 08, 2009, 08:19:13 pm »
Hi,

I need to determine if another program is running.

In Delphi it can be done using the FindWindow function. Does anyone know how to do this on a Mac ?

Thanks,

Jaco


Jaco

  • New Member
  • *
  • Posts: 45
Re: Mac alternative for FindWindow ?
« Reply #2 on: March 10, 2009, 08:35:44 pm »
Thanks !

Do you have a small example how to call the functions in the Processes unit ?
I managed (I think) to loop through the processes with GetNextProcess, but failed at getting information using the ProcessInformationCopyDictionary function....

Jaco

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 772
Re: Mac alternative for FindWindow ?
« Reply #3 on: March 10, 2009, 11:04:25 pm »
I don't have any examples, as I've never done any serious Carbon-related programming (I just read a lot of mailing lists and therefore I know what to Google for on developer.apple.com). Further, it's easier to use the MacOSAll unit rather than the individual interface units (it contains everything).

 

TinyPortal © 2005-2018