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

Re: Programmatically Change Icon


  • Subject: Re: Programmatically Change Icon
  • From: "I. Savant" <email@hidden>
  • Date: Sun, 22 Mar 2009 18:54:02 -0400

On Mar 22, 2009, at 6:29 PM, Pierce Freeman wrote:

But the odd thing is, if I set the path to a
file that I know doesn't exist (ex.
/Applications/ soidaoidaiodsaoidiasoadsoidoiaadiosoaidiodaoidasoidaoidasoiado
iasdoidaoidadasoidiaosasidoosdiaiodsiodsa.app) it will still return some
weird page icon.

Come to think of it, it's strange that you get an icon for a non- existent file, but if it *does* exist, I'd always expect some sort of icon. I've never run into this situation personally. Which specific method are you using? There are:


– iconForFile:
– iconForFileType:
– iconForFiles:

  Just curious.

In your case, though, if you're going after applications, you'd presumably already have a list of app bundle paths, so it shouldn't be a problem, right?

--
I.S.




_______________________________________________

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: Programmatically Change Icon
      • From: Pierce Freeman <email@hidden>
References: 
 >Re: Programmatically Change Icon (From: Pierce Freeman <email@hidden>)

  • Prev by Date: Re: NSAppleScript - what is going on here?
  • Next by Date: Re: Explicit release when using garbage collection with circular references
  • Previous by thread: Re: Programmatically Change Icon
  • Next by thread: Re: Programmatically Change Icon
  • Index(es):
    • Date
    • Thread