• 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
How to process images in a folder reference?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to process images in a folder reference?


  • Subject: How to process images in a folder reference?
  • From: Dan Treiman <email@hidden>
  • Date: Thu, 27 Aug 2009 23:55:02 -0500

I've noticed that in an iPhone app, when you have a .png image in a copy files build phase, Xcode copies it according to CopyPngFile, which does some processing using pngcrush to optimize the image.

In the app I'm building, I have many .png images, organized in directories. I'd like to preserve my directory structure in the resources directory, so I've used folder references to copy my images. But then I see that the images inside the folders aren't getting optimized - they are just getting copied. Is there a way to have XCode optimize the images, and still preserve the directory structure?

I've thought about:

1. Make a "Copy Files" build phase for each directory. ( not very practical in my case )
2. Write a shell script build phase to process the images.



Can anyone offer any advice on this?


thanks! -Dan Treiman _______________________________________________ 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
  • Prev by Date: Re: Subversion client prefs?
  • Next by Date: [Xcode] Ready, Set ... Xcode 3.2?
  • Previous by thread: Re: how to write an AppleScript to remove a file under /Library/Internet Plug-Ins/
  • Next by thread: [Xcode] Ready, Set ... Xcode 3.2?
  • Index(es):
    • Date
    • Thread