I'm trying to get Xcode to import the header file for Irrlicht.
#include <irrlicht.h>
It says "Irrlicht.h. No such file or directory". Yes Irrlicht.h with a capital I, even though the #include is lowercase.
Anyway I added "/lib/irrlicht-1.6/include" in the header search paths for the Xcode project, yet it still doesn't find it.
The ...
I am writing an iPhone app that when a certain thing occurs, a sound is played. I have trying using different WAV, MP3, M4A files and have intermittent problems. The below code works fine in the simulator but the MP3 does not play on the iPhone. (3GS if it matters). Any ideas? I have changed the mp3 file to a wav and it will work fo...
Hi all,
I'm reasonably new at the iPhone SDK, so please forgive me if this answer's ridiculously obvious.
I have a ViewController connected to a .xib file (they are called FirstViewController)
I also have a custom class called MyCustomClass. In this class, I have a method like this:
- (void)setTheText {
[myLabel setText:@"foo"];
...
I've a got Qt QWebView that just contains a SWF running in the embedded flash player.
i.e. the HTML looks like this:
<body style="margin: 0px; overflow:hidden; background: #FFFFFF">
<object type="application/x-shockwave-flash" data="preview.swf" width="100%" height="100%">
</object>
</body>
Everything is working ...
I'm trying to compile the simplest program on MacOS 10.6 like:
$ g++ -o hello hello.cpp
the following source:
#include <iostream>
int main (int argc, char * const argv[]) {
std::cout << "Hello, World!\n";
return 0;
}
I'm getting the error:
hello.cpp:1:20: error: iostream: No such file or directory
hello.cpp: In function ‘...
In order words, can anyone tell me the basics of how to create a "hybrid" iPhone application? I want to load the web content (the Dashcode app itself) from the native application's application bundle.
I've gotten this to partially work, but some content won't display and it otherwise seems like Dashcode is assuming a certain Safari envi...
I am trying to reach the application data from Xcode organizer. There is supposed to be
a disclosure triangle next to my application name but it is not there. What could be wrong?
(Application is writing the data to "NSDocumentDirectory" with a custom binary format)
...
Some day ago I've pressed a button in the Build Results window. It was located between the error list and the code subwindow.
Pressing the button changed the view mode from error list to pure compiler output. And the button was gone!
So far I've managed to live with the output, but it's getting really annoying.
How can I switch back to ...
I am developing for iPhone the app I am developing has many buttons and I want all buttons to call the same method but with different parameter
for example I want button1 to call the method mymethod with the parameter "foo"
and button2 should call the same method but with parameter "bar"
Thanks for help
...
For example to add a framework to workspace
steps involved are:
1.Right click on the framework
2.select the Framework and click on Add
it will link the respective framework to project
is there any other method to add the framework to project
...
Hi,
I hope I don´t annoy you and you don´t have to answer this, but
here is a little bit more explanation of my problem. I got all of the ids of the tweets with a NSArray. Then I set a NSNumber with:
NSNumber =[NSArray objectAtIndex:indexPath.row];
to get the right id of the tweet in the TableView row. Now I just wrote this:
unsig...
Hello Every one.
I want to use regex for the following expression.
here mail id can be any thing. but I just want to cut this string.
I was trying following code.
NSString *email=@"<a href=\"mailto:[email protected]\">";
NSString *strEmailMatchstring= @"\\b([a-zA-Z0-9%_.+\\-]+)@([a-zA-Z0-9.\\-]+?\\.[a-zA-Z]{2,6})\\b";
if(![...
Hello,
I want to get the unsigned long value of a NSNumber. I don´t know why, but it doesn't work. Here is what I did:
NSString * stern = [idd objectAtIndex:indexPath.row]; // get a String with Number from a NSArray
NSNumberFormatter * lols = [[NSNumberFormatter alloc] init];
NSNumber * iddd = [lols numberFromString:stern];
NSLog(@"%@",...
I have a certain .app built in xcode (version 3.2.1) as a Release build. I open MallocDebug and browse to the build directory, selecting the Release build and clicking the .app file. I then hit "Launch". MallocDebug then seems to freeze, giving me the spinning beachball for a minute or so, followed by the error message:
Read Data
"Un...
Hi, I'm learning C with The C Programming Language (K&R).
Since I don't particularly want to bob back and forth between a text editor and running gcc, I've decided to use xcode as an IDE. So far, I've been able to follow the book's examples without a problem up until section 1.5.2.
When given the valid (?) program...
#include <stdio.h...
Hello,
I have the problem that I have created a delegate protocol, but the necessary methods are not executed, although I have implemented the protocol in my header file. Here are the detailed explanation:
I created an instance of my ViewController (TimeLineViewController), which will be displayed. This ViewController contains a UITable...
Hi. How would I take a file in the application's directory (the same folder the .app is in), and get it's absolute path. Say the relative path is "Data/file.txt," how would I use Objective C to get that as an absolute path? I have the user enter their home folder name, if that is any help.
Please help,
HiGuy
...
In Xcode, say you write an app for the iphone and it has a runtime
error in it. What I've been seeing is that it just closes out the
program in the simulator but doesn't really hilight or give me any
feedback as to what line caused the crash... am I missing something??
Note: I don't consider the console to be very effective since
it jus...
(I'm not sure if "flag" is the word I'm looking for, but I'll explain it.)
I am trying to compile a program that uses the GMP big number library. But to be able to compile with GMP, I have to add -lgmp to the end of the command. For example, if I want to compile "program.c", I have to type gcc program.c -lgmp. This is easy from the comm...
Having taken no explicit steps that I'm aware of, Xcode has decided that one of my class implementation (.m) files is of unknown file type. So I've suddenly lost all colors/highlighting/autocomplete and (more problematically) the ability for the debugger to recognize breakpoints in that file only.
Right-click on the file and doing Get I...