Professional Web Applications Themes

How do you assign an application icon to a newly built Cocoa app? - Mac Programming

New Cocoa app finished. Icon created in Photoshop (128x128). Now what? Tried the Cmd-I cut&paste thing but the transparency got lost in the process. I don't think that's the proper method anyway. So, how do you guys do it? tia bk...

  1. #1

    Default How do you assign an application icon to a newly built Cocoa app?

    New Cocoa app finished. Icon created in Photoshop (128x128). Now what?

    Tried the Cmd-I cut&paste thing but the transparency got lost in the
    process. I don't think that's the proper method anyway. So, how do you
    guys do it?

    tia
    bk
    BK Guest

  2. #2

    Default Re: How do you assign an application icon to a newly built Cocoa app?

    BK wrote: 

    first off, a macosx icon isn't just a single 128x128 bitmap. it can be
    up to four sizes, ranging from 128x128 to 16x16. you can skip one or
    two of the middle sizes, but you really better not skip the 16x16 one.
    if you do, macosx would have to create one of that size when it needs
    to, by scaling your 128x128 icon, which will probably look like crap.

    you don't say what tools you used to create the app. when asking
    questions like this in the future, you should include that information.
    i'll have to assume xcode. it comes with an app called "Icon Composer"
    you can use to turn your bitmaps into an .icns file. you should drag
    that .icns file into the resource section of your xcode project.
    there's some other fields in the project you have to fill out to tell it
    to use that .icns file as the app's icon. i can't remember exactly what
    they are at the moment, but if you poke around in there awhile, it's not
    hard to find.
    Jhnny Guest

  3. #3

    Default Re: How do you assign an application icon to a newly built Cocoa app?

    In article <nashville.comcast.net>,
    Jhnny Fvrt (it means "halo, then resonate") <com>
    wrote:
     

    And if it doesn't, it'll likely look like an unidentifiable blotch of
    colorful pixels.
     

    To use Icon Composer, open it up, and simply drag the Photoshop file
    into the various boxes. IC understands Photoshop files, and will even
    scale them down ... after a fashion. You're better off scaling in
    Photoshop, if you want them to remain recognizable, and often you'll
    want to do some fiddling by hand to recreate important lines that went
    missing during scaling, reduce some of the layer effects etc.
     

    Do a "Get Info" on your target. In the same place where you enter the
    Bundle ID, you can also enter the name of the app icon.

    HTH,
    -- Uli
    http://www.zathras.de
    Uli Guest

Similar Threads

  1. application:openFile and delegate (Cocoa)
    By Alain in forum Mac Programming
    Replies: 3
    Last Post: April 20th, 11:27 AM
  2. Replies: 2
    Last Post: April 17th, 06:32 PM
  3. Replies: 8
    Last Post: February 4th, 05:56 AM
  4. Replies: 4
    Last Post: January 16th, 06:53 AM
  5. Replies: 10
    Last Post: October 25th, 11:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139