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

Re: File Icon


  • Subject: Re: File Icon
  • From: Chuck Norris <email@hidden>
  • Date: Tue, 6 Nov 2001 09:48:53 -0800

I would add to Joshua's question "could someone point out a useful resource that explains exactly how icons are used"? Specifically, I'm curious about how the various sizes are used in the Finder, as well as the various NSWorkspace methods.

It looks like the Finder just uses the largest resolution version in my .icns file and scales it to whatever size is needed. I'm curious if I put a lot of work into making smaller versions look good if it would help. Ideally, it would choose the closest resolution available and scale from that.

Chuck

At 12:53 AM -0500 11/6/01, Joshua Clements wrote:
Thanks Finlay, for the pointer to NSWorkspace.
I've got that returning me an icon but it doesn't look
so hot at 16x16. I'm assuming that NSWorkspace is
returning me the 32x32 icon and the NSImageCell is
scaling it down to 16x16. Is there a way to get load the 16x16 icon?


On Sunday, November 4, 2001, at 02:56 PM, Finlay Dobbie wrote:


On Sunday, November 4, 2001, at 07:45 pm, Joshua Clements wrote:

Anyone know how to get the icon associated with a file that can be used in Cocoa?

RTFM NSWorkspace.

I have located a function in Carbon "GetIconRefFromFile" which returns an IconRef.
Is that IconRef usable in Cocoa for displaying on the screen?

Yes, indirectly, but you should probably use the NSWorkspace method.

-- Finlay
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: File Icon
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: File Icon (From: Joshua Clements <email@hidden>)

  • Prev by Date: Re: Weird SIGBUS errors
  • Next by Date: Re: connecting objects from different NIB files?
  • Previous by thread: Re: File Icon
  • Next by thread: Re: File Icon
  • Index(es):
    • Date
    • Thread