• 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: Custom icon for bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom icon for bundle?


  • Subject: Re: Custom icon for bundle?
  • From: Jim Wintermyre <email@hidden>
  • Date: Sat, 10 Jun 2006 17:56:32 -0700

On Jun 9, 2006, at 11:57, David Alger wrote:
On Jun 9, 2006, at 9:40 AM, Steve Christensen wrote:

 > On Jun 9, 2006, at 5:12 AM, Jim Wintermyre wrote:
 >
 >> At 6:35 AM -0500 6/9/06, Ricky Sharp wrote:
 >>>
 >>> Anyhow, you may have just use a custom folder icon.  I had to do
 >>> this for a contextual menu plugin.
 >>
 >> Hmm.  In that case, is there a way to set this up/script/and/or
 >> automate this from inside the IDE?  I have a bunch of plugins that
 >> should all be using the same icon, and I just want to set up the
 >> various plugin projects to do this automatically.
 >
 > I have around 80 plug-ins that I build, and right now I do a bulk
 > setting of the custom icon and file dates using File Buddy. It's
 > not like that's a big deal, but it would be nice if there were a
 > way to automate the process from within the IDE.

This could probably be done with a build script that would copy the
Icon file that is used into the bundle folder.

I tried this, and it *almost* works. I took the same "Icon" file that is created by a Finder Get Info icon copy/paste on the bundle, and added a shell script build phase to my plugin project to copy it to the output bundle, mark it invisible, and mark the bundle folder as having a custom icon.


The one problem is that it seems that the custom icon is not actually named "Icon", it's got some non-ASCII character appended to the end. If you do an ls of the bundle directory in the terminal, it shows "Icon?" for the icon file since it can't display this last character.

This is probably a Stupid Terminal Question (tm), but how do I figure out what that non-printing character is, and then incorporate it into my script?

For reference, here's my script:

#copy custom icon into top level of bundle and rename
cp <path_to_icon> "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Icon"


#make icon file invisible
/Developer/Tools/SetFile -a V "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Icon"


#mark the bundle folder as having a custom icon
/Developer/Tools/SetFile -a C "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}"


Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Custom icon for bundle?
      • From: Darkshadow <email@hidden>
    • Re: Custom icon for bundle?
      • From: Steve Checkoway <email@hidden>
    • Re: Custom icon for bundle?
      • From: "James W. Walker" <email@hidden>
  • Prev by Date: Re: Icon not appearing in bevel button
  • Next by Date: Re: Custom icon for bundle?
  • Previous by thread: Re: Custom icon for bundle?
  • Next by thread: Re: Custom icon for bundle?
  • Index(es):
    • Date
    • Thread