xcode

how to set a threadname in MacOSX

In Windows, it is possible to set the threadname via this code. The threadname is then shown in debuggers. Under Linux, see this question. In MacOSX, I have seen several hints which indicates that there are threadnames. I think the class NSThread also has a name-attribute. My goal is that I can set the threadname in my C++ application ...

Receiving SIGABRT error when launching TTPhotoviewController in iPhone

Hi there, Well im creating an iPhone application which contains some features like Cycle routes and a Photoviewer. For these Cycle routes im useing the Cloudmade api, and for the PhotoViewer im useing Three20's TTPhotoviewcontroller. These Cycle routes map works perfect but i think it has todo something with the errors im getting. I ...

how to get the thread which asserted in gdb

When some assert() fails, gdb breaks but doesn't show the aborting thread. In case of a signal (like a segfault), it works fine. Is there an easy way to know what threads has just aborted? Esp., I am using Xcode here. ...

iphone os 3.0 doc set

Does any one know the RSS feed for 3.0 iphone sdk doc set ? I cant update the documentation from xcode. ...

Xcode: gcc-4.2 failed with exit code 1

Hi! I'm working on a game for the iPhone where I use the Oolong engine for rendering, and now I just tried to update my project to the newest version. However - now I get the following error when I try to compile: gcc-4.2 failed with exit code 1 in the build results I see in which cpp file the error happens, but I don't see any addit...

bus error in simple Mac OSX C program

I am writing a simple C program to create a twelve tone matrix. The code compiles, but I get run time error 'Bus Error'. In the debugger it says EXC_BAD_ACCESS. int main () { int j,k,l; int twelve[13][13]; void mat(int twelve[13][13]); printf("input original tone row \n"); for(j=0;j<=11;j++) { scanf("%2i...

Why there isn't xcode for windows?

Hi, i don't know why xcode cannot be hacked and become running on windows? is xcode has another programming method? also, i heared that iphone apps are made with objective c, so why this is not available in windows? Thanks ...

i need help understanding a few methods in a view based application

when i create a new view based application a few methods in the implementation file (.h) i do not understand their purpose and when i look into the developer center its kind of hard to understand because of how its explained. what purpose do these methods have and what are they used for in plain english. - (void)loadView - (void)viewD...

Wrap Text in UITextField?

Does anyone know how to wrap text in a UITextField? I am using Cocoa/Objective-C in Xcode for my iPhone project, and I can not seem to find a way to do this... ...

Swap iphone resources in SVN working copies

We have a development environment with a lot of different settings for our sandbox instances, staging servers, and production environment. In our iphone code, we keep these settings organized in plists. Anyone have references to best practices for managing the swapping out of plists based on the current environment? Without having to ...

I don’t see the Buid and Analyze option in my Build Option in Xcode

Hey All, I am trying to use the Clang static analyzer in my code. I installed it and can run it succesfully from the terminal. But I wanted see it locally on the code not on Safari. The resort [sic] is to activate Build And Analyze in Build Options, which I dont see at all. Help me with this. Any clear step by step procedure for Clang's...

C Binary/Source Code in an iPhone XCode Project

What's the best practice to include existing C Libraries into an iPhone Project? I searched the Internet and actually found some pieces but nothing that explains the exact way to do it. I'm trying to include the following Citrix XenServer SDK Library. Any help is appreciated. Thanks! ...

Cocoa and Objective-C++

Hey guys! I think I understand how Objective-C++ works in relation to Cocoa, and I am fairly versed in the basics of command-line C++ but sort of afraid to try mixing it with Objective-C. I can create a GUI with Interface Builder in Xcode, and even make classes (.h and .m files) for the interface automatically. The outlets, maybe action...

Debuggin in Xcode

I'm toying with iPhone app development. Often times I would run into runtime error and I would have no idea where the error occurs (e.g. the exact line). In console app with GCC I could at least compile with the -g flag. dump a core file and read that core file in to get to the last line that got into trouble. But how would I do that in ...

imagepicker controller shows error when build for iphone simulator 3.0

Hello all, I am developing an application which uses both video recording and photo shoting.So i want to show buttons according to os for this i implement these methods.It's working fine when i build for OS 3.1 but when i build for OS 3.0 it shows errors here are the methods if ([self videoRecordingAvailable]) { imagePi...

Textfield resignFirstResponder Very late?

Hello all, I have one strange problem.I have two UItextfields in my view and a button.When i click on button.I have changed the frame of view in animation block but it's resigning later here is my code if someone told me about this i'll be thankful -(IBAction)SignINClicked { [Email resignFirstResponder]; //TextField [Password resig...

AppDelegate file missing in Xcode 3.1 ?

i am currently starting to learn Xcode and objective-c and i am reading three different books on that topic currently. All of these books refer to a file called "AppDelegate" (My_First_ProjectAppDelegate.m, My_First_ProjectAppDelegate.h) which are said to be "created with the Project" (i am creating a "Cocoa Application"). These files ar...

Settingup SCM using Xcode and SVN (Subversion)

Hi all, I'm trying to setup Xcode SCM using Subversion (SVN) on a network disk (mounted). I was able to setup SVN repository on my machine locally, and everything worked smoothly without any hassle. Reference Article: Version Control is Your Friend by Jeff LaMarche My problem is that I'm unable to set-up SVN on a network drive (mounted...

Installing SVN on Mac OS X 10.4 and accessing it using svn+ssh:// URL

I wanted to setup SVN repository on a network machine running Mac OSX 10.4. I downloaded and installed subversion from HERE. I installed the package, and in order to call the Subversion commands from every directory, i followed the following instructions: Open Terminal. Enter following command. $ pico .bash_profile Add the followin...

iPhone - Program Received Signal : 0 - on device but not on simulator

Hi, I'm sure this is memory related but I can't seem to figure out what variable is causing me problems. I'm releasing everything I allocate as far as I can tell. This loop seems to work fine if it runs 365 times but not 730 (its doing days in a year). Here is the snippet of code that is failing.. it never gets out of the loop when th...