xcode

Is there a way to suppress warnings in Xcode?

Is there a way to suppress warnings in Xcode? For example I am calling an undocumented method and since the method is not in the header I get a warning on compile. I know I can add it to my header to stop the warning, but I am wondering if there is a way other then adding it to the header (so I can keep the headers clean and standard) t...

Multiple NSURLConnection delegates in Objective-C

I have two NSURLConnections. The second one depends on the content of the first, so handling the data received from the connection will be different for the two connections. I'm just picking up Objective-C and I would like to know what the proper way to implement the delegates is. Right now I'm using: NSURL *url=[NSURL URLWithString...

How do you setup Eclipse to work on iPhone development (instead of Xcode)?

Although I've been getting more and more familiar with Xcode while developing for the iPhone, there are times I just wished I had a better IDE, something like Eclipse. So I was wondering does anyone know how to migrate iPhone projects to Eclipse, and if it's worth it? ...

Continuous Integration for Xcode projects?

After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed specifically for Xcode, but one guy has had success using Cruise Control combined with the xcodebuild...

How can replace the string [Foo alloc]<cursor> with [[Foo alloc]<cursor>] in XCode?

Is there a key shortcut for this in XCode? Can I implement an Applescript for this and run it within XCode? ...

Best way to share iphone and mac code between projects

Hi, I realise that the view/controller stuff will be different between Mac and IPhone apps but the model code may well be similar/the same. So whats the best way to organise a project(s) so that the model code is/can be shared? Copy/paste - just duplicate it and manually keep it in sync Have 2 xcode projects point at the same workar...

How many international languages does the iPhone Simulator support?

How many international languages does the iPhone Simulator support? Choose: Settings/General/International/Language Mine only has English listed, but I fear I may have inadvertently stripped out the localisations? ...

How to change the name of an iPhone app?

I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since its nearly finished. But I'm not sure how to do this with XCode, trying the obvious of changing the application's name in the pinfo, causes the signing process to go wrong (I think...) and my app won't laun...

Sort File List in Xcode?

Is there a way in Xcode to sort my list of files under say the Classes folder Alphabetically? I know I can drag them around, but with tons of files that is a pain. I am surprised I can not right click on the folder and say to sort. Please tell me there is a easy way to do this ...

Xcode Preprocessor Macros

In Xcode, I can edit my preprocessor macros in the project settings. I want to create a macro that refers to an environment variable. Basically, I want to be able to refer to $SRC_ROOT in my code. What I currently have in my macros is: SRC_ROOT=${SRC_ROOT} but it isn't working. ...

Error Installing iPhone App on Device

I set up all my certificates and keys today and am trying to run my project on my iPhone. I'm encountering this strange error: Your mobile device has encountered an unexpected error (0xE800003A) during the install phase: Verifying application Poking around the Apple Developer forums, I've attempted to set new certificates and provi...

How can I deploy an iPhone Application from Xcode to real iPhone device

How can I deploy an iPhone Application from Xcode to real iPhone device without having an Apple 99$ Certificate? ...

How to remove a Run Script phase from Xcode

I tried this step: Select the menu options "Project > New Build Phase > New Run Script Build Phase", and enter the following script (don't forget to replace /Users/youruser/bin by the correct path to gen_entitlements.py) : export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate if [ "${PL...

Is there a quick way to build & install to iPhone (from XCode) without starting the app?

In XCode, I can use CMD-R to run (or CMD-Y to debug), and my app will compile, install on the phone & start-up. (I've already prepped my phone & XCode so this part works as expected.) What I'd LIKE to do is type CMD-<something else> and have my program compile & install on the phone, but NOT start-up. I realize that I can just CMD-B t...

Inspecting STL containers in XCode

From googling around it looks like XCode (3.1 in my case) should be at least trying to give me a sane debug view of STL containers - or at least vectors. However, whenever I go to look at a vector in the debugger I just see M_impl, with M_start and M_finish members (and a couple of others) - but nothing in-between! (it's a debug build, ...

std::wcout to console window in XCode

In an XCode project, if I use std::cout to write to the console the output is fine. However, if I use std::wcout I get no output. I know that this is a thorny issue in C++, and I've been googling around to try and find a specific solution in the XCode case. A couple of things I found that it was suggested should work were: std::c...

ld: duplicate symbol

I'm working on a school project and I'm getting some weird errors from Xcode. I'm using TextMate's Command+R function to compile the project. Compilation seems to work okay but linking fails with an error message I don't understand. ld output: ld: duplicate symbol text_field(std::basic_istream >&)in /path/final/build/final.build/Re...

C++ odd compile error: error: changes meaning of "Object" from class "Object"

I don't even know where to go with this. Google wasn't very helpful. As with my previous question. I'm using TextMate's Command+R to compile the project. game.h:16:error: declaration of ‘Player* HalfSet::Player() const’ players.h:11:error: changes meaning of ‘Player’ from ‘class Player’ game.h:21:error: ‘Player’ is not a t...

Xcode Property Automation

Xcode has these handy time savers in the scripts menu called "Code->Place Accessor Defs on Clipboard" and "Code->Place Accessor Decls on Clipboard". These scripts allow you to automate the generation of getter and setter methods for any highlighted instance variables. Does anyone know of a similar script that outputs Objective-C 2.0 Pr...

Xcode regions

Does Xcode support anything akin to Visual Studio style #region directives for arbitrary code folding? ...