I have application written in C. As part of what it does it needs to check that another app (a cocoa based .app application) is located in the right directory.
Of course using standard C I don’t find the app because to C it is a directory. Is there any CoreFoundation function that will allow me to check if the app exists?
Thanks
The Bundle Programming Guide has some CoreFoundation samples for accessing a bundle, and then getting info (like the bundle identifier) out of it.
Alternately, if you need to search the whole system for a given bundle, you could probably use the Spotlight/MD functions to search for it.