• 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: How to obtain icon displayed by Finder for a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to obtain icon displayed by Finder for a file


  • Subject: Re: How to obtain icon displayed by Finder for a file
  • From: David <email@hidden>
  • Date: Wed, 7 Jan 2009 17:36:57 -0500

Great! Thanks for the info. I hoped it was something simple.
Next question though... how do I set the icon (image) for a 1st column of an
outline view and have it show text as well?

I found an example using NSBrowserCell but that doesn't seem to work in an
outline view. I can't find any other cell which seems to support both an
image and text. Does that mean I need to subclass and create my own?



On Wed, Jan 7, 2009 at 4:49 PM, Jelle De Laender <email@hidden>wrote:

> Did you try
>
> - (NSImage *)iconForFile:(NSString *)*fullPath*
> from NSWorkSpace?
> *
> *
>
>  CodingMammoth
> Jelle De Laender
> email@hidden
>
>
>
> On 07 Jan 2009, at 22:42, David wrote:
>
> Hello,Is there a way to obtain the icon that finder uses to display for a
> file system object? Such things as the folder icon for folders, PDF icon
> for
> pdfs etc.
>
> Thanks
> _______________________________________________
>
> 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

  • Follow-Ups:
    • Re: How to obtain icon displayed by Finder for a file
      • From: Rob Rix <email@hidden>
References: 
 >How to obtain icon displayed by Finder for a file (From: David <email@hidden>)
 >Re: How to obtain icon displayed by Finder for a file (From: Jelle De Laender <email@hidden>)

  • Prev by Date: Re: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability
  • Next by Date: Re: Manual Core Data schema migration in -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:...] without "document changed" error?
  • Previous by thread: Re: How to obtain icon displayed by Finder for a file
  • Next by thread: Re: How to obtain icon displayed by Finder for a file
  • Index(es):
    • Date
    • Thread