• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Automatic document icon creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Automatic document icon creation
      • From: Eric Gorr <email@hidden>
    • Re: Automatic document icon creation
      • From: Jens Alfke <email@hidden>
References: 
 >Automatic document icon creation (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: Xcode keeps re-compiling unchanged files
  • Next by Date: Re: Xcode keeps re-compiling unchanged files
  • Previous by thread: Automatic document icon creation
  • Next by thread: Re: Automatic document icon creation
  • Index(es):
    • Date
    • Thread