Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 5, 2008, 08:37 AM   #1
sujithkrishnan
macrumors 6502
 
Join Date: May 2008
Location: Bangalore
Send a message via Yahoo to sujithkrishnan
Build specific inclusion of file

Hi all.


I am building my application in two different ways based on extrenal parameters. But i imported a file (buiid2ViewController.h) in commonViewController class using #import build2ViewController.


how to execute #import build2ViewController macro ONLY for build2, not for build1


Any inputs plz...
sujithkrishnan is offline   0 Reply With Quote
Old Dec 5, 2008, 08:53 AM   #2
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
Put a different define in each of your build settings, and an #ifdef around the include in your source files.

.
firewood is online now   0 Reply With Quote
Old Dec 22, 2008, 03:03 AM   #3
sujithkrishnan
Thread Starter
macrumors 6502
 
Join Date: May 2008
Location: Bangalore
Send a message via Yahoo to sujithkrishnan
Quote:
Originally Posted by firewood View Post
Put a different define in each of your build settings, and an #ifdef around the include in your source files.

.
What kind of DEFINE ???? can u help me with a snippet?
u mean any build settings??

NOTE:I am having diff Info.plist for diff builds..
sujithkrishnan is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: Erase Specific File From HDD w/ Boot CD? dustycloud Mac Basics and Help 6 Mar 8, 2014 08:41 PM
Applescript or automator to open specific file/s mkorsch Mac Programming 2 Oct 6, 2013 04:59 AM
Still no iMessage file transfer in GM build lancastor OS X 10.8 Mountain Lion 28 Feb 5, 2013 12:43 PM
Specific File/Folder Backup sdh1982 Mac Basics and Help 3 Dec 19, 2012 05:30 AM
How to read specific key value from plist file saqibjaan Mac Programming 3 Sep 2, 2012 09:27 PM

Forum Jump

All times are GMT -5. The time now is 03:13 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC