• 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
iconForFile for folders/volumes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iconForFile for folders/volumes


  • Subject: iconForFile for folders/volumes
  • From: Rakka <email@hidden>
  • Date: Tue, 19 Apr 2005 18:07:46 +1000

Hi,

Is there simple way to get a folder's icon, like iconForFile: does for files? I tried iconForFile with a folder (or actually, a volume), and it just doesn't work. Or am I doing something wrong? The following doesn't work for folders and volumes, but only works with files (e.g pdf, jpg, etc.)

NSImage *volumeIcon = [[NSWorkspace sharedWorkspace] iconForFile:@"/Volumes/TheDisk"];

Thanks.

Regards,

Rakka

_______________________________________________
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


  • Prev by Date: nswindow alphaComponent and shadow images
  • Next by Date: Memory management with nibs
  • Previous by thread: Re: nswindow alphaComponent and shadow images
  • Next by thread: iconForFile for folders/volumes
  • Index(es):
    • Date
    • Thread