Map resources when added to the project

Posted by Espuz on Stack Overflow See other posts from Stack Overflow or by Espuz
Published on 2010-06-10T09:00:02Z Indexed on 2010/06/10 9:02 UTC
Read the original article Hit count: 205

Filed under:
|
|

I have a .h when I map all the image files names and xib names with #defines. For example, if I have an image called "buttonBackground.png" I map it in my .h as

#define BUTTON_BACKGROUND_PNG_FILE   @"buttonBackground.png"

It's possible to detect when a resource is added to the bundle and create the correspond define with a script?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode