Re: Document icon assets

2015-02-15 Thread Graham Cox

> On 16 Feb 2015, at 9:42 am, Quincey Morris 
>  wrote:
> 
> For 3 or 4 years now, I’ve almost always been getting that question mark 
> regardless of how the icon is defined. :)
> 
> When I said “works anyway”, I meant I looked at an app where I’ve used the 
> asset catalog item reference, and peeked into the built bundle. The 
> info.plist has the name I specified manually, and the icons from the asset 
> catalog are in a .icns file of that name in the Resources subfolder. That 
> looks correct to me.


OK, indeed it does seem to build OK and end up with the right resources - 
thanks.

I don't get the question mark when I have a pre-built .icns file and use that, 
but I do when it's referencing an xcassets folder. Sigh, I guess Xcode might be 
somewhat finished one day...

--Graham



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Document icon assets

2015-02-15 Thread Quincey Morris
On Feb 15, 2015, at 14:29 , Graham Cox  wrote:
> 
> I did try that - but it doesn't show the icon, just a generic question mark.

For 3 or 4 years now, I’ve almost always been getting that question mark 
regardless of how the icon is defined. :)

When I said “works anyway”, I meant I looked at an app where I’ve used the 
asset catalog item reference, and peeked into the built bundle. The info.plist 
has the name I specified manually, and the icons from the asset catalog are in 
a .icns file of that name in the Resources subfolder. That looks correct to me.

(I couldn’t just say “document files have the right icon in the Finder”, 
because there are older versions of the app on my system, so that wouldn’t 
really prove anything.)


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Document icon assets

2015-02-15 Thread Graham Cox

> On 16 Feb 2015, at 9:15 am, Quincey Morris 
>  wrote:
> 
> On Feb 15, 2015, at 13:25 , Graham Cox  wrote:
>> 
>> I've migrated my app icon to use an asset catalogue as per current 
>> recommendations, but doing the same with my document icon, I can't seem to 
>> link it to my document type entries (Xcode 6.1.1).
> 
> Did you try just pasting the name of the doc icon asset catalog item (without 
> extension) into the file type icon textfield? It doesn’t seem to show in the 
> popup menu, but AFAIK using the correct name works anyway.
> 


I did try that - but it doesn't show the icon, just a generic question mark.

--Graham



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Document icon assets

2015-02-15 Thread Quincey Morris
On Feb 15, 2015, at 13:25 , Graham Cox  wrote:
> 
> I've migrated my app icon to use an asset catalogue as per current 
> recommendations, but doing the same with my document icon, I can't seem to 
> link it to my document type entries (Xcode 6.1.1).

Did you try just pasting the name of the doc icon asset catalog item (without 
extension) into the file type icon textfield? It doesn’t seem to show in the 
popup menu, but AFAIK using the correct name works anyway.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com