• 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: Darkshadow <email@hidden>
  • Date: Sun, 11 Jun 2006 14:31:36 -0400


On Jun 10, 2006, at 8:56 PM, Jim Wintermyre wrote:


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.



It's a carriage return ("\r").

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}"



You can write it like this, and it will work:

cp <path_to_icon> "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.$ {WRAPPER_EXTENSION}/Icon
"


/Developer/Tools/SetFile -a V "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.$ {WRAPPER_EXTENSION}/Icon
"


(Note the return before the ending quote.)

cp does copy resource forks. I believe it started doing that with 10.3 (don't quote me on that, I may be wrong). I tested that out in the terminal - it looks like it copies the visibility flag as well, so you may not need the call to SetFile for that. I'd say test it out and see.


Darkshadow (aka Michael Nickerson)



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Custom icon for bundle? (From: Jim Wintermyre <email@hidden>)

  • Prev by Date: Re: All-in-one and build results
  • Next by Date: Re: How are we supposed to paste text in XCode?
  • Previous by thread: Re: Custom icon for bundle?
  • Next by thread: Re: Custom icon for bundle?
  • Index(es):
    • Date
    • Thread