• 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: Getting the Generic Hard Disk Icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Generic Hard Disk Icon?


  • Subject: Re: Getting the Generic Hard Disk Icon?
  • From: Robert Tillyard <email@hidden>
  • Date: Fri, 27 Mar 2009 11:30:01 +0000

Hello, Dave,

There might be a better way but I've been using:

NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:@"/"];

You will need to know the UNIX path of the disk first.

Regards, Rob.

On 27 Mar 2009, at 10:58, Dave wrote:

Hi All,

Where can I get the Icon for the standard Internal Hard Disk Icon? I've looked in /System/Library/CoreServices/CoreTypes.bundle/ Contents/Resources and found a lot of icon's there, but not one for the hard disk. I just want the Icon the Finder displays for the internal hard drive.

All the Best
Dave


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Getting the Generic Hard Disk Icon? (From: Dave <email@hidden>)

  • Prev by Date: Getting the Generic Hard Disk Icon?
  • Next by Date: Preventing highlight of RowSelection in NSTableView
  • Previous by thread: Getting the Generic Hard Disk Icon?
  • Next by thread: Re: Getting the Generic Hard Disk Icon?
  • Index(es):
    • Date
    • Thread