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: dock icons - feast or famine




On Jan 7, 2006, at 1:30 PM, Hsu wrote:

On Jan 7, 2006, at 9:10 AM, Michael Hall wrote:

On Jan 7, 2006, at 10:48 AM, Hsu wrote:
Try to touch the application bundle itself (e.g. "touch myapp.app" in Terminal).

That worked as well. Meaning? What went wrong and what got fixed?

LaunchServices (which is what actually launches your app when you double-click on it) caches information about the app for subsequent launches. One of the things it caches is the Info.plist. All the caches are keyed off the last-mod timestamp on the .app bundle itself (plus any moves/renames/etc from Finder). However, if you touch the Info.plist directly (without changing anything else), LaunchServices doesn't know about it, so changes won't get picked up. All you need to do is either touch the .app bundle in Terminal (thus updating the timestamp) or move it in Finder, so Finder notifies LaunchServices. You can, of course, notify LS programmatically (or you could touch the .app bundle programmatically as well).

OK, I'll waffle again here. Nothing was touched related to the Info.plist to cause the problem. I tried changes to it as a fix. Nothing was changed in the Info.plist or placement of the .icns file. It is and remains the GenericJavaApp.icns file at Contents/Resources. Some changes were probably made in Resources/Java directory as far as creating directories to temporarily unzip files and jar recreate files trying to get rid of duplicate Name entries in the MANIFEST warnings. IMO this should not have caused the dock icon to go missing. So I would have to in fact consider this a fault in Launch Services, or somewhere, and will file the bug despite the relatively easy fix.


Thanks again,


_______________________________________________ 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: 
 >dock icons - feast or famine (From: Michael Hall <email@hidden>)
 >Re: dock icons - feast or famine (From: Hsu <email@hidden>)
 >Re: dock icons - feast or famine (From: Michael Hall <email@hidden>)
 >Re: dock icons - feast or famine (From: Hsu <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.