• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom universal types, but outside an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom universal types, but outside an application


  • Subject: Re: Custom universal types, but outside an application
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Thu, 08 Sep 2011 23:47:51 -0500

On Thu, Sep 8, 2011 at 3:21 PM,  <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Custom universal types, but outside an application
      • From: email@hidden
References: 
 >Custom universal types, but outside an application (From: email@hidden)

  • Prev by Date: Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
  • Next by Date: Re: Custom universal types, but outside an application
  • Previous by thread: Re: Custom universal types, but outside an application
  • Next by thread: Re: Custom universal types, but outside an application
  • Index(es):
    • Date
    • Thread