On Thu, Sep 8, 2011 at 3:21 PM, <dvlc...@gmail.com> wrote: > My problem: this type is not actually defined and used by an > application, but by a preference pane. It seems that putting the proper > entries in the preference pane's Info.plist doesn't work (or am I > missing something ?).
What you're missing, I think, is that LaunchServices doesn't scan preference panes for types. Shot in the dark, but looking at LSInfo.h it seems LSRegisterURL (with your bundle URL) might work: /* * LSRegisterURL() * * Discussion: * If the specified URL refers to an application or other bundle * claiming to handle documents or URLs, add the bundle's document * and URL claims to the Launch Services database. * However, the ADC documentation says something slightly different: ""A Core Foundation URL reference designating the application to be registered; see the CFURL Reference in the Core Foundation Reference Documentation for a description of the CFURLRef data type. The URL must have scheme file and contain a valid path to an application file or application bundle."" So you take your chances! BTW, is a preference pane actually able to handle stuff like the 'oapp' or 'rapp' events? Seems to me that System Preferences.app would receive those and just ignore it. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com