Re: LSIsAppleDefaultForType
Re: LSIsAppleDefaultForType
- Subject: Re: LSIsAppleDefaultForType
- From: Matt Gough <email@hidden>
- Date: Wed, 14 Jun 2006 00:07:02 +0100
On 13 Jun 2006, at 23:32, Matt Neuburg wrote:
I did a search at developer.apple.com on "LSIsAppleDefaultForType".
The
results included only one document, which *uses* this as an
info.plist key
but does not explain what it does. Does anyone know what it does?
Thx -
This is my interpretation (A snippet from Preview's plist is helpful
here:)
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pdf</string>
<string>PDF</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>pdf.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/pdf</string>
</array>
<key>CFBundleTypeName</key>
<string>NSPDFPboardType</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>PDF </string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
<key>NSDocumentClass</key>
<string>PVPDFDocument</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ai</string>
<string>AI</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>pdf.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/pdf</string>
</array>
<key>CFBundleTypeName</key>
<string>NSPDFPboardType</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSIsAppleDefaultForType</key>
<false/>
<key>NSDocumentClass</key>
<string>PVPDFDocument</string>
</dict>
....
You can see that for pdf files, it is true, but for ai (Illustrator
files) it is false. Basically this is a way for Launch Services to
'know' which application should be considered the default default app
for a given type without having to hard-code that info into the
system. AFAIK it is only ever set on Apple's own Apps and should
probably be considered private.
You might want to repost to carbon-dev as some of the Launch Services
guys hang out over there.
Matt Gough
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden