• 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: Icon question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Icon question


  • Subject: Re: Icon question
  • From: Michael McCracken <email@hidden>
  • Date: Tue, 26 Jul 2005 19:42:31 -0700

For the archives: use Glenn's method, not my untested suggestion from
earlier in the thread.

It was pointed out to me that if you get the icon for the path @"/",
you will get an icon of a disk. While there are other folders you
might have better luck for, just using the 'fldr' file type is the
right way.

-mike

On 7/26/05, glenn andreas <email@hidden> wrote:
>
> On Jul 26, 2005, at 6:40 PM, John Stiles wrote:
>
> > OK, now here's a stumper:
> > How do I get the icon for a plain old folder?
> >
>
>          image = [[NSWorkspace sharedWorkspace] iconForFileType:
> NSFileTypeForHFSTypeCode('fldr')];

--
Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucsd.edu/~mmccrack/
misc: http://michael-mccracken.net/blog/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Icon question
      • From: Scott Anguish <email@hidden>
References: 
 >Icon question (From: John Stiles <email@hidden>)
 >Re: Icon question (From: Vince DeMarco <email@hidden>)
 >Re: Icon question (From: John Stiles <email@hidden>)
 >Re: Icon question (From: John Stiles <email@hidden>)
 >Re: Icon question (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: NSButton Tool-tip
  • Next by Date: Re: Tiger App Fails: loadDataRepresentation:ofType: ?? ** SOLVED **
  • Previous by thread: Re: Icon question
  • Next by thread: Re: Icon question
  • Index(es):
    • Date
    • Thread