Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JarBundler: icons and document types




On Jul 16, 2006, at 8:30 AM, Elliotte Harold wrote:


Document types don;t appear to get associated at all.


What does the Info.plist for the application look like. The following is from an application to handle .app application bundles for verification. It successfully handles drag and drop of application bundle files.

	<key>CFBundleDocumentTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeExtensions</key>
			<array>
				<string>app</string>
			</array>
			<key>CFBundleTypeName</key>
			<string>application bundles</string>
			<key>CFBundleTypeRole</key>
			<string>All</string>
		</dict>
	</array>

I believe this can get out of synch with the Finder/Launch Services databases as well and might be corrected in the ways already mentioned. Especially if you make any kind of after the fact changes to the application bundle.

IMHO these should be handled somewhat dynamically and any required updates processed automatically given that the application bundle has been laid out as a file system directory that is meant to hold all of the, possibly changeable, application resources.

However, a bug report I filed was closed as "expected behavior". If you change it and things stop working you have to fix it.

(If you're curious you could try the lsregister command against your app. No 'man' but lsregister with no parms spews some usage/doc. Googling would probably turn up some examples).


Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >JarBundler: icons and document types (From: Elliotte Harold <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.