• 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: Dynamically setting a files icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically setting a files icon


  • Subject: Re: Dynamically setting a files icon
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 6 Aug 2003 01:59:17 -0400

On Tuesday, August 5, 2003, at 6:58 PM, Craig Bakalian wrote:

Hi All,
Is there a way to dynamically set a files icon, the way photoshop did or does? I am working on a puzzle game that creates puzzles, and I want to create a small image of the created puzzle and pop it into the files icon. I am dreaming here, but I am estimating that it would require quit a bit of code. Anyone?


Wow, just answered this in the last couple of days (Sunday in fact)


Hello,

Does anyone know how to create custom file icons from a Cocoa app?


Yep...

For the moment you can rely on the third party framework by Troy Stephens...

http://homepage.mac.com/troy_stephens/software/objects/IconFamily/ content.html

This package includes the source for a simple Cocoa testbed app called "MakeThumbnail" that demonstrates the use of the IconFamily class. MakeThumbnail lets you open any NSImage-supported image file and re-save it as a JPEG with an icon family consisting of various-sized thumbnail versions of the image assigned as the file's custom icon. It also enables you to save the same icon family to an .icns file.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Dynamically setting a files icon (From: Craig Bakalian <email@hidden>)

  • Prev by Date: NSToolbars and NSToolbarItems
  • Next by Date: Re: NSOutlineView won't act as drag source
  • Previous by thread: Dynamically setting a files icon
  • Next by thread: Re: Dynamically setting a files icon
  • Index(es):
    • Date
    • Thread