• 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: Sam Goldman <email@hidden>
  • Date: Sun, 04 Nov 2001 13:38:55 -0800

However, this is really REALLY slow. You might want to get the type of file
and use a generic icon if that is an option.

- Sam

On 11/4/01 11:56 AM, "Finlay Dobbie" <email@hidden> 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


References: 
 >Re: File Icon (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: Application behaving strangely after displaying a sheet
  • Next by Date: Re: Colored Buttons?
  • Previous by thread: Re: File Icon
  • Next by thread: Re: File Icon
  • Index(es):
    • Date
    • Thread