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 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).


Karl

--

Who said humans weren't complicated?
Cats.

Homepage:
     http://homepage.mac.com/khsu/index.html

_______________________________________________
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>)



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.