Now that I'm debugging, it's pretty clear the signature is actually:
OSStatus _LSCopyAllApplicationURLs(CFArrayRef *outURLs);
I tried all sorts of varieties of CFArray* (CFArrayRef, CFMutableArrayRef
set to NULL, CFMutableArrayRef allocated) before realizing you probably just
forgot the "Ref".
Thanks for the info. Since my app is CFM I'm thunking to this SPI, so
if/when it goes away I can handle it not being there at runtime. Hopefully
before that time it becomes an official API or perhaps an alternative API is
supplied and I can have a better solution.
Thanks,
Dave
-----Original Message-----
From: Finlay Dobbie [mailto:email@hidden]
There is no API for doing this, as far as I know. There is, however,
SPI which exists back across all OS X releases as far as I know:
extern OSStatus _LSCopyAllApplicationURLs(CFArray *outURLs);
However, since this is SPI the standard disclaimers apply: it is
subject to removal without warning at any time, you should
conditionalise your use of it, etc etc.
You should also file a bug at http://bugreport.apple.com/ asking for a
supported way to do this.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden