Hi,
I am using Xcode in order to debug C++ programs. The main problem for me is that it takes around 10 munutes till the program gets to the point of the program that I need to debug. Then I realize about something inspecting the variables and some other stuff, and modify the code. Then 15 minutes again and so ...
I wonder if there is ...
Situation
I'm using NSURLConnection to download an mp3 file to the documents directory on my app. On the simulator I get the full mp3 file downloaded with no probs. On the device, however, I can only seem to get 1 second of audio for each mp3. I am connecting to a free WiFi point when performing this download from the device, in contrast...
Given, a file of path [[self documentsDirectory] stringByAppendingPathComponent:@"myFiles/aFile.txt"], How do I delete a file in my apps documents directory?
...
I need to know the size of the file I am downloading (in bytes) into my app using NSURLConnection (GET). Here is my bytes recieved code below if it helps. What I need to know is how to get the filesize in bytes so that I can use it to show a UIProgressView.
- (void)connection:(NSURLConnection *)theConnection didReceiveData:(NSData *)dat...
Hi,
in fact the title contains my question.
I have a UISegmentedControl, and need to deselect currently selected tab.
I tried:
[menu setSelectedSegmentIndex:-1];
menu being the UBOutlet for uisegmentedcontrol but this gives me exception.
anyone have some idea?
thanks
peter
...
Hello everyone, I have trouble when I have currency value
999999999999999999.99
From that value, I want to display it as String. The problem is that value always rounded to
1000000000000000000.00
I'm not expect that value rounded. I want the original value displayed. Do you have any idea how to solve this problem? I tried this code f...
Hi
I added a category to CLLocation in CoreLocation but kept getting a link error.
I search around and through process of TRY IT AND BE DAMNED I fixed the problem by adding
-framework CoreLocation to Other Linker Flags
But dont know why?
I'm guessing its something to do with CoreLocation being and external framework.
The Code:
CLLoca...
Last version or XCode (3.2.1) is running very slow on OS X 10.6.
What kinds of tweaks can you do to your Mac in order to speedup Xcode build process.
I'm not looking for general hints like how to restructure your projects, just tweaks that are related to environment.
For example I remember that on Windows for Visual Studio two signi...
I have a target in Xcode (containing my unit tests) that cannot be built in Release configuration, only in Debug and my own TestRelease configuration. I then have a composite target that builds my unit tests, application, and some external dependencies.
Is there a way to prevent my unit test target from being built in Release configura...
Hi all,
this is my first ever question so apologies if it's not descriptive enough.
I currently have an object that can be moved along an x axis with dragging. I need to limit it's movement to half of the screen.
Can anyone help
...
I have a HTML Ajax website which consists only of one HTML file. How can I create an iPhone App out of it? The HTML file should be stored locally on the iPhone so it functions offline.
...
Hi,
When you configure xcode to use the All-in-one layout, a toggle appears to allow you to switch between project and debug 'mode' (the IDE calls these pages).
Is there a keyboard shortcut to perform the toggle?
Thanks, Adam.
...
When running this code under debug in the iPhone simulator, it correctly exits with r==4 after 5 iterations of the loop:-
int r;
for (r = 0;;r++)
{
if (r == 4)
break;
}
Without the braces, it exits with r==1 after 1 iteration:-
int r;
for (r = 0;;r++)
if (r == 4)
break;
Without the braces, but with a test ex...
Are the names of some initializer methods like 'initWithRequest' reserved in the API?
I have the following classes
@interface MTURLRequest : NSObject {
...
}
...
@end
and
@class MTURLRequest;
@protocol MTURLRequestHandlerDelegate;
@interface MTURLRequestHandler : NSObject {
...
}
-(id)initWithRequest:(MTURLRequest*)request_ d...
Does anyone know how I can parse an RSS feed, but using dashcode? I cannot for the life of me figure out a way to bypass the blocking.
...
I declared an enum in my implementation file as shown below, and declared a variable of that type in my interface as PlayerState thePlayerState; and used the variable in my methods. But I am getting errors stating that it is undeclared. How do I correctly declare and use a variable of type PlayerState in my methods?:
In the .m file
@im...
Hello,
I'm building a C++ command line tool in Xcode. The project contains dylibs for curl, boost and log4cpp.
Ideally id like to build an i386 universal binary that supports 10.4 through to 10.6.
I cant seem to get Xcode to compile, when I target 10.4 it says things like no such file or directory.
When i target 10.6 x_64 it builds ...
How to load UIWebView with an html page retrieved by NSURLConnect?
...
I'm trying to play around with the iPhoneExtAudioFileConvertTest project. So I create a brand new project, add the appropriate Frameworks, copy the iPublicUtility classes from the example, and copy the ExtAudioFileConvert.cpp from the example. Now being that I didn't start implementing anything yet I was hoping that I wouldn't be gett...
What is the following error caused by? I did not make any significant changes and suddenly it started appearing:
Linking /Users/JimB/Desktop/iPhone Dev/Games4Kids/build/Debug-iphonesimulator/ETFanClub.app/Games4Kids(1 error)
duplicate symbol .objc_category_nameNSString_HTTPExtensions in (path)ViewController3 and (path)ViewController1...