Re: Re-booting after changing Icons in OS X Doc app
Re: Re-booting after changing Icons in OS X Doc app
- Subject: Re: Re-booting after changing Icons in OS X Doc app
- From: Peter Teeson <email@hidden>
- Date: Thu, 18 Jul 2013 11:27:46 -0400
On 2013-07-18, at 10:35 AM, Peter Teeson wrote:
> On 2013-07-18, at 1:23 AM, Quincey Morris wrote:
>> -- If the new icons don't show up, then you probably have an app bundle somewhere that has the old icons, and Launch Services is choosing the bundle with the old icons to represent your app.
>>
>> This sometimes happens when you have built for multiple configurations (Build/Release/etc) in the past, and haven't yet caused all of them to be rebuilt since you changed the icons. If the icons are displaying wrong, you can try cleaning (or just deleting) the derived data folder, which should delete any old app bundles.
> Just one config and only Debug is built. Spotlight didn't find any others
>> You might also have put a copy of an old app bundle somewhere else, and that may prevent your new icons from showing up.
> I deleted the Derived data folder (each time I changed, and of course also did Clean and Build)
>> -- Occasionally, the Launch Services database gets out of sync with what's actually in the file system, and so you can't fix it by removing files. In that case, you might have to nuke the database with lsregister, but you shouldn't expect to have to do this as a regular thing.
>>
>> Note that if you have multiple bundles with different icon definitions, using lsregister isn't necessarily going to solve the problem. In the presence of conflicting information, Launch Services doesn't really know which to use.
> What finally worked was
> Delete derived data
> lsregister
> clean
> build
>
> Weird….
One more thing. Since I was editing the .icns file, using Preview oddly enough, there might have been a cached copy lying around somewhere.
It was only after I saved a new copy of that file with a different name and deleted the old one, edited the plist, etc. and then re-booted that the changed icon showed up.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden