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)....
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...
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.
...
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.
...
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...
Does anybody have an Xcode script for generating @property and @synthsize directives for instance variables in a class?
...
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...
Can someone recommend some good tips or resources to learn how to learn intermediate to advanced debugging tips and tricks using GDB in Xcode.
...
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...
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?
...
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,...
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...
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)'
...
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.
...
i got an error that said "error: conflicting types for '____'. What does that mean?
...
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...
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...
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????
...
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...
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 ...