how do I a set a ICNS to a file or folder

Member
Posts: 749
Joined: 2003.01
Post: #1
Ok, I made this ICNS file with icon composer, how do I assign it to a file or folder?

Thx, Matteo

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #2
Depends on what you mean:

- if you just wanna assign it to any file/folder, just select the icon, do a copy. Then in the Finder, do a show info on a file/folder, in the window click its icon and paste.

- if however you wanna assign the icon to a file that your app has created you'll need to tell Xcode which file types your app can write/read. To do this, go into your target and double click on it so that a window appears with your target settings.
In the Properties tab, locate the Document Types tableview. Below that click on the + button and try to fill in as many colomns as you can. You don't need to populate every field, just the most common, and in your case you'll definitly want to check the Icon column Smile

If you don't wanna use Xcode, you'll have to edit the Info.plist file, but I don't know the tags you need so..

Hope this helped!

"When you dream, there are no rules..."
Quote this message in a reply
Moderator
Posts: 1,552
Joined: 2003.10
Post: #3
Taxxodium Wrote:If you don't wanna use Xcode, you'll have to edit the Info.plist file, but I don't know the tags you need

CFBundleIconFile. Set it to the name of your icns file, and put the icns in your bundle's Resoures directory.
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #4
- if you just wanna assign it to any file/folder, just select the icon, do a copy. Then in the Finder, do a show info on a file/folder, in the window click its icon and paste.

The problem is I only have the ICNS file, I dont really have the "icon". (I know how to copy the icon from one file/folder to another)

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #5
Najdorf Wrote:The problem is I only have the ICNS file, I dont really have the "icon".

Open the ICNS file in Preview and save it as a png, Preview will rant about the fact that PNG cannot save multiple files in one etc.. just say accept this. Then open the PNG in Preview and do a copy and voila Smile

"When you dream, there are no rules..."
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #6
thanks but... it ignores the mask! bah...

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #7
You can do the same with Icon Composer, but instead of saving as a PNG, just click on an icon size and do a copy.

"When you dream, there are no rules..."
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #8
doesnt work :-(

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #9
oh well, dont worry, I find a nice app that does it for you:

http://www.mscape.com/products/iconographer.html

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Xcode4: Resource not in Documents folder? SparkyNZ 3 5,576 Apr 9, 2011 03:29 PM
Last Post: SparkyNZ
  moving all folder project = error imaumac 2 2,640 Oct 13, 2008 08:46 AM
Last Post: imaumac
  Library/Preferences folder someone 5 5,249 May 17, 2007 10:31 AM
Last Post: millercdusa
  XCode tip: Generating folders in the Resource folder Malarkey 2 3,637 Nov 11, 2005 06:25 PM
Last Post: Malarkey
  Xcode 1.5 and SharedCaches folder RedWolf 0 1,867 Oct 2, 2005 12:49 AM
Last Post: RedWolf