Re: Automatic document icon creation
Re: Automatic document icon creation
- Subject: Re: Automatic document icon creation
- From: Fritz Anderson <email@hidden>
- Date: Thu, 23 May 2013 11:42:52 -0500
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? 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?), but I think your answer is to be found in
-[NSWorkspace setIcon:forFile:options:]
With the string file path and the potential to breach a sandbox, this smells like something that's headed for obsolescence.
— F
--
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279
_______________________________________________
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