• 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: Thu, 8 Jan 2009 13:03:15 -0500

I was thinking using NSAttributedString seems like a more general purpose
solution because they sound powerful and can be used all over the place.
I've used it for HTML which seems like way overkill for this. But I haven't
successfully come up with a string that looks correct, whereas I have been
able to get the ImageAndTextCell approach to work to my satisfaction,
although still convoluted.

On Thu, Jan 8, 2009 at 2:05 AM, Rob Keniger <email@hidden> wrote:

>
> On 08/01/2009, at 3:16 PM, Kyle Sluder wrote:
>
>  I'd disagree.  I'd say that the proper way to do this is to implement
>> a custom NSCell subclass (a la ImageAndTextCell).  This is more in
>> line with the framework: the cell is given an object value, which the
>> cell represents by drawing into a view.  That object value happens to
>> have two valid representations: an image and a textual label.
>> Therefore the cell should draw those two representations.
>>
>
>
> Correct, and Apple's ImageAndTextCell class, which is in the project linked
> from my previous post, does exactly that:
>
> http://developer.apple.com/samplecode/SourceView/
>
> --
> Rob Keniger
>
>
>
> _______________________________________________
>
> 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: 
 >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>)
 >Re: 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: Rob Rix <email@hidden>)
 >Re: 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: "Michael Ash" <email@hidden>)
 >Re: 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: "Kyle Sluder" <email@hidden>)
 >Re: How to obtain icon displayed by Finder for a file (From: Rob Keniger <email@hidden>)

  • Prev by Date: Encryption and Security
  • Next by Date: Re: [NSOutlineView reloadData]
  • 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