Re: Automatic document icon creation
Re: Automatic document icon creation
- Subject: Re: Automatic document icon creation
- From: Eric Gorr <email@hidden>
- Date: Fri, 24 May 2013 07:28:54 -0400
On May 24, 2013, at 6:37 AM, Stéphane Sudre <email@hidden> wrote:
>
> On May 23, 2013, at 10:43 PM, Eric Gorr wrote:
>
>> On May 23, 2013, at 12:42 PM, Fritz Anderson <email@hidden> wrote:
>>
>>> On 23 May 2013, at 11:18 AM, Eric Gorr <email@hidden> wrote:
>>>
>>>> In the past, I had come across some documentation on how one just needs to create an image and Apple will automatically put that image on top of the standard document icon (the sheet with the folded edge).
>>>>
>>>> However, I can no longer locate this documentation to take advantage of this behavior.
>>>>
>>>> Anyone know how this works exactly?
>>>>
>>>> I can, of course, do all the drawing myself, but I like taking advantage of what is provided for me whenever possible.
>>>
>>> Your question is imprecise (iOS or Mac?
>>
>> It is for Mac.
>>
>>> How would an icon be set automatically just by creating an image — don't you create lots of images that aren't meant to be icons?),
>>
>> In a similar manner that Apple will do it for iOS. According to iOS HIG, Apple will take the app icon and make a composite document icon for you. In the case of the iPad, the automatic document icon will have the folded corner sheet look.
>>
>> I could swear there was similar functionality for the Mac, but, perhaps, what I am remembering is this iOS functionality.
>
> Apple may have provided icon templates at some point in time to build a custom document icon (since just compositing the standard document icon and another icon will not work because of the folded edge and its shadow) but it's not available any more.
Actually, it still is, along with several others:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocument.icns
I just thought there was a feature where Apple would compose this generic document icon with one I provided, but it looks like I was either wrong or misremembering.
And, if anyone is interested, I found the following as well:
https://github.com/sveinbjornt/docerator
http://code.google.com/p/docerator/
but with the unfortunate caveat that it no longer seems to work, but since the source code is available, I might see if I can get it up and running again. For the simple cases, like mine, it would have saved me a bit of time.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden