xcode

Problem with targets in XCode

Hi, I've got two versions of my iPhone app - FULL and LITE. It's the same project but I have two different targets for two different versions. When I switch from one target to another and install it to my iPhone, everything gets messed up. At the first run I get only one application instead of two (even though they have different IDs)....

Multiple UILabels to display decorated XML markup

I have a block of content (stored in XML) that I want to put in a UIScrollView. Certain parts of this text will be formatted with different fonts, sizes, and colors. Altogether, it mostly reads as a paragraph with word wrapping. I've built my NSXMLParser code, and I have separated all the data. I'm ready to apply my decorations and...

Integrating CxxTest in XCode

I'm a complete newbie when it comes to XCode and I'm looking for something similar to Visual Studio integration for XCode. I'm developing on my Vista pc in VS 2008 and I want to be able to develop the same project on my macbook as well, but I don't know how to configure XCode to do the same things that VS does. ...

How do I disable warnings being flagged as errors in XCode

Is there a setting XCode that lets you treat warnings NOT as errors in XCode? I'm doing alot of prototyping code where I don't care if I have an unused variable for example. XCode is treating these warnings as errors and it is seriously slowing down my productivity. Can't figure out how to disable this though. ...

XCode compiler warning: 'foo' may not respond to -bar

Hello, I'm trying to get my head around Objective-C for the iPhone. My app is compiling and running just fine so far, but I'm getting a compiler warning that I cannot get rid of. Header for one class: (snipped) @interface PersonDetailViewController : UIViewController { NSDictionary *person; } @property (retain) NSDictionary *perso...

Xcode script for generating/synthesizing properties

Does anybody have an Xcode script for generating @property and @synthsize directives for instance variables in a class? ...

xcode objective-c warnings

Hi, I'm relatively new to objective-c...I'm using the iphone 3.0 SDK I have a UIView, which is a subview, that I want to resize under certain circumstances. The way I do it is within a controller class. for example, CGSize el = CGSizeMake(30, 40); [self.subview setSize:el]; the above code does work, but the compiler gives a warning...

Tips or resources for learning advanced debugging techniques GDB in xcode

Can someone recommend some good tips or resources to learn how to learn intermediate to advanced debugging tips and tricks using GDB in Xcode. ...

How can I make an iPhone OS 2.2 project with XCode 3.1.3?

For some reason, after installing the iPhone OS 3.0 SDK, I have no option anymore to create a 2.2 project. I don't want to develop for 3.0 because I target iPod touch, not iPhone. iPod touch users don't upgrade for 10 dollars so likely. Xcode creates projects with OS 3.0, and there is no option to switch to 2.2 SDK. Although for my exis...

What's that "Classes-1.moved-aside" directory in my Classes directory?

In the XCode project folder (the real one on my hard drive) there's a "Classes-1.moved-aside" folder inside the "Classes" folder. It contains a few files which are also in the "Classes" folder. What's the point of that "Classes-1.moved-aside" folder? ...

Why can't I just send my zipped Xcode project folder to a friend, and it works?

I always use one folder on my filesystem for an Xcode project. It contains all project files. When I zip it and send it to a friend, she can't just ipen the xcodeproj file. It opens, but all paths are broken and build fails because all the classes don't find the #include'd files. But when I download i.e. some example projects from apple,...

Splitting Panes in XCode - I Wish I had My Emacs :(

I finally figured out how to split panes in Xcode, and I even finally found out that if I hold option when I split panes, I can do a vertical split too. But I seem to have run into a bug. When I spawn a separate text editor and split panes within it, I can split panes horizontally, or vertically, but not both. Has anyone else run into t...

does someone knows about this error in xcode gdb?

2009-07-21 12:47:14.458 FlashCards[1328:20b] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)' ...

Xcode variable coloring

When I'm typing out new instance variables, they appear white. To turn them green, I do a space/backspace between the semicolon. Is there an XCode secret to automatically going through all of my classes and recognize the variables it has missed? Something similar happens with the orange #define variables used throughout code too. ...

What does error conflicting types for '' mean?

i got an error that said "error: conflicting types for '____'. What does that mean? ...

How start a debug session in the simulator with previous app state

I have a hard-to-catch error that only happend the 2 or 3 time I start my app, after a previous failure of it. But because when I do Run&Debug from the XCode menu the app is delete from the simulator or device, I can debug it to find what is happening. I try to attach to the process, but when I succed is too late and the app crash. I h...

Building iPhone SDK 2.x targets with Base SDK 3.0, when linking static libraries created with SDK 3.0

I'm having a problem getting Pinch Analytics r64, a static library built with iPhone SDK 3.0, to link properly in my application which is targetting iPhone OS 2.0. This seems to be a fairly common problem, and Pinch Analytics' site even has an entire page devoted to answering this question. Basically, they say to set your project's B...

warning no-method descriptionWithCalendarFormat:timeZone:locale found

I am getting this warning in xcode 3.1.3 iphone os 3.0. This method is also not available in the NSDate class. But I am getting the date from this method. Can anyone please tell me How can I get rid of this warning???? ...

How to add a breakpoint to objc_exception_throw?

this was the answer from the brad larson on this SO question If you add two breakpoints, you should be able to debug these exceptions. To do this, go to Run | Show | Breakpoints and create two global breakpoints (I do them globally because they are so useful in all my applications). The first should be named "objc_exception_throw" and i...

Setting GCC 4.2 as the default compiler on Mac OS X Leopard

I'm sure there must be a way to do this. As you are probably aware the latest versions of Xcode (and in fact I think all versions of Xcode) on Leopard come with GCC 4.0.1 and GCC 4.2. GCC 4.0.1 is the default system compiler while GCC 4.2 is an optional compiler you can set in the Xcode project settings. Does anyone know how to set GCC ...