xcode

No matching function error in Xcode 3

I am trying to compile a custom class in Xcode 3 and I keep getting a no matching function call error although the same custom class compiles fine under Windows. Obviously something is not right regarding the use of curly brackets and the XCode compiler. The compiler is choking at the first curly bracket { below: : ADataBrowser(inOwne...

Breakpoints in XCode debugger

I don't understand what's going on with the XCode debugger. I am using Xcode 3.1.2 and GCC 4.0 on 10.5. Sometimes, Occasionally, I test a C++ program, all active breakpoints become disabled. No breakpoints are taken - the program runs to completion. The dark blue breakpoint icons change to light blue or yellow with a blue border. ...

XCode "build" behavior - dependency for DATA file

This is a problem I'm experiencing with XCode 3.1.2 on OSX 10.5. I wanted to see if it was possible to stay completely within the IDE throughout the testing cycle. This included producing and updating test data. Since the test data was text, my first choice for a template with which to create that data file was "Strings". Very educat...

Creating a libsubstrate for iPhone Simulator.

Hi there. I am working on mobilesubstrate plugins on a JB iPhone. i have created a dylib in xcode for my iphone which builds fine for Device, but when i try to build it for Simulator, it gives me an error "_MSHOOKMESSAGE reference from: blah blah". I have placed all the headers in proper locations. I got libsubstrate from device but tha...

Exception thrown after install xcode 3.2

Hi, everyone. I found this problem after I install the latest SDK and Xcode version 3.2 Beta from Apple. Before install, my iPhone project compile correctly and has no any exception. But after I finished setup the latest SDK, I open my iPhone project to do some update. I compiled the project like I did before, no error report. But aft...

Xcode and makefile

Hey all, What I want to achieve: I'm porting an application to iPhone and I need to run some scripts on the generated assembly by the compiler (our optimization stuff) and then compile it to an executable. I always used a standard make file and did something like this gcc -S -c my_source.c # compile and generate ASM optimize.sh my_sour...

UIKit and unit testing

Hi, I'm tying to implement some test cases for my iPhone app. I have successfully set up the UnitTest-Target as described here: iPhone development guide I'm also able to build a simple test case: - (void) testPass { STAssertTrue(TRUE, @""); } But when I'm trying to instantiate a class that has some methodes that return UIC...

pickerview app crashing due to NSRangeException NSCFArray objectAtIndex: index (5)...beyond bounds (5)

Once again working through beginning iphone development and I am putting together a bunch of UIPicker type apps, the last one of which is a slot machine type of game, super simple. Anyway I am not really understanding why this error is coming up. to my understanding the picker view is asking its delegate for an object in the array that ...

Can anyone explain event handling in C++ please?

I should mention that i am using Mac OS X, XCode. When a buffer has finished writing to file, it generates an event to tell the gui to read the data off the file. I am not sure what kind of event would i need in this case? Is it possible to do it without using event? Thank you. ...

Why is my UIPickerView not animating like it should be?

Hello again! so this is basically like a slot machine type thing, very basic, but the problem Im having is that when you click the spin button the movement of the components is not animated, even though i have sent the animated argument a YES BOOL. I have no idea what I am doing wrong, any help would be appreciated. Nick ps download ...

after upgrading to xcode 3.2, can I still build projects into 3.1 simulator?

I upgraded to xcode 3.2 and now the build options from the drop down menu on the upper left of the main window in xcode are limited to only 3.2 versions of the sdk, however if I open a project up that was built in the previous version those options are still there(or at least 3.1.2 is) anyway to get that option into a project built in th...

Exclude a file/directory from SVN in Xcode with SCM

I would like to exclude a directory from my SVN (I'm using Xcode's built in SCM). It's not checked in but I'm just tired of unselecting it from checkin. Most of my SVN experience is at work on Windows with TortoiseSVN, which has a 'Ignore' function; I assume SCM has that same option. ...

libssh + iPhone Implementation with multiple commands execution in sequence

Hi guys... It seems my questions are strange and i'm not getting enough help but I'm back. I've another strange question which needs to be solved in emergency. I'm developing an iPhone app. which uses libssh 2 for commands execution through iPhone over remote host. It's okay and working all methods and commands if i execute them in sin...

Is there an easier way to type and compile C on Mac OS X?

I've just started learning C on Mac OS X. I have downloaded Xcode too. So far, I have been typing my apps into TextEdit, and then using the Terminal to locate my apps and compile them using gcc hello.c etc. Is there an easier way (using Xcode perhaps?) to type my code into some form of IDE, and then automate the compiling with a 'compi...

Xcode and input/output files

I have to put my input files directly in the root directory for xcode to see them, and the output files are always in the same root directly. How can I configure xcode to change the input/output directories ? ...

Problems accessing rootviewController of navcontroller iphone

Hi, Im working off the seismic xml iphone example. In that example there is simply the application delegate which has a rootViewController of type UITableViewController. I wanted to modify it slightly so that I would have a navigationController and use its rootViewController as the table view. My root view controller class for my naviga...

How to develop for iPhone OS 3.1.2 ?

Strange thing happened: My old 2.2.1 version iPod works perfectly with Xcode. Now I got a new one with 3.1.2 installed. Xcode complains that it can't develop for 3.1.2, but instead it can do so for: Xcode Supported iPhone OS Versions 3.1.1 (7C145) 3.1 (7C144) 3.0.1 (7A400) 3.0 2.2.1 2.2 2.1.1 2.1 2.0.2 (5C1) 2.0.1 (5B108) 2.0 (5A347) 2....

How to develop for iPhone OS 2.2.1 with the latest iPhone SDK 3.2.2?

Is this possible? How? ...

XCode Macros for iPhone

Anybody have any good pointers on how to be able to, say, highlight a ivar in a class and hit a keystroke and insert the property and synthesize lines into my code in the proper places? I have been doing this for awhile now and typing that boilerplate stuff is getting on my nerves at times. ...

Copy file to the App Resources directory if debug configuration is selected

I need to copy a few files into the App's Resources directory during debug builds. I am thinking about using build rules but don't know how to determine if the build is a debug build. I do have a compiler option of "DEBUG" set. ...