Thread-topic: Problem getting app icon to display in Finder
User-agent: Microsoft-Entourage/11.2.3.060209
On Mon, 08 May 2006 01:49:20 -0400, Stephen Kay <email@hidden> wrote:
> I have an .icns file, created with Icon Composer, with all the icons filled
> in.
>
> In CW 9.6, In my AppPropertyList.plc, (plist), I have:
>
> key "CFBundleIconFile" value string "MyApp.icns".
>
> So I have pointed the package at the correct file.
>
> When I launch (Run) my app, the icon appears (correctly) in the dock.
> However, after building the app, when viewing the package in the finder
> inside the folder, it has the generic app icon.
>
> If I view the package contents, it appears that all the correct pieces are
> in the correct places, with the correct names.
>
> If I duplicate the package in the Finder, the new copy shows up with the
> correct icon. (!)
>
> Yet the original stays with the generic icon. Any ideas on what I'm missing?
Chances are you may have an old duplicate copy of the app that has incorrect
information in it's plist. You best bet is to use the Launch Services tool
lsregister to re-register your specific app.
/System/Library/Frameworks/ApplicationServices.framework/Current/Frameworks/
LaunchServices.framework/Current/Support/lsregister
lsregister: [OPTIONS] [-domain { system | local | user | network }]...
[path]...
Search the paths for application bundles and add each found item to the
Launch Services database. For domain specifications, ask CF for the list of
application locations in the given domain(s).
-kill Reset global Launch Services database before doing anything else
-lint Print information about plist errors while registering bundles
-convert Register apps found in older LS database files
-lazy n Sleep for n seconds before registering apps if the local cache
is aleady populated.
-r Recursively register directory contents, do not recurse into
packages or invisible directories.
-R Recursively register directory contents, including the contents
of packages and invisible directories.
-f force-update registration info even if mod date is unchanged
-v Display progress information.
-dump Display full database contents after registration.
-h Display this help.
Use "-lint -f -v" and maybe "-dump" to see everything the the LS db.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden