xcode

What are the main differences in iPhone project build settings for Debug build and Distribution build?

I want to make sure I am using the most correct build settings for my distribution build, which is based off of my Release build settings. Right now I am not seeing a whole lot of difference between the settings for Debug build and Distribution build. Is it safe to just go with the default settings? ...

Attempting to deploy my app on my jailbroken iphone, but the app closes immediately!

I'm trying to develop iphone apps on my jailbroken iphone, and I can't seem to get the process down, for whenever I deploy my app, set all file permissions to 777, and respring, the application closes immediately when I try to launch it. Furthermore, it does not have the auto-gloss xcode shows in the iphone simulator, so what gives? I'v...

iPhone One Time Events Programming

How can I make my application display something only when they first launch the application for the first time. Example: They open up my app, an alert comes up, saying something like, "Do you want to play the tutorial?" Then, if they close the app, then re-open it, it won't show up again. Thanks ...

Does intellisense work in XCode?

I am a noob to XCode, so forgive what could be a dumb question. It seems like XCode kind of does intellisense (or code completion). When I type in: [self setT it suggests the setTitle because its the first matching one. Is there a way to make it work a bit more like Visual Studio where you get a dropdown of available methods/proper...

Keeping lots of localized content in sync

If you localize for a number of languages and have lots of content, how do you keep any changes in sync? For example, a bird app that list various birds (200 of them). If you have chosen to localize for five languages, that means you need 1000 localization files. Not only is it a lot of initial translating but very time consuming to k...

How to get correct line numbers in symbolicated crash reports (iPhone / Mac)?

When symbolicating crash reports, I noticed that line numbers are off. I tested this with a project in which I deliberately cause a crash. It seems the generated line number do not include certain lines, e.g. comment lines or compiler preprocessor statements (not sure what it does and does not include)... Is there an easy way to get fro...

Xcode 3.1 localization: If I change the interface, do I need to change this for each localization??

Hello! I've just made an application in Xcode, and I'm trying to localize it. I right-clicked (Ctrl-clicked) my .xib and clicked 'Get info'. I added Dutch to the list of localizations and Xcode made copied my .xib file. Do I need to change the .xib file for every single localization when I make an adjustment? Or is there another way to ...

Xcode Developer Documentation Link Hover Jumps To Top

I don't know how I got into this state, but the Xcode documentation window has been exhibiting this strange behavior of "jumping to top" whenever I hover over a link in one of the doc files. For example, I'll be scrolling down to, say, the methods of a Class Reference, and as soon as I hover over one of them, the doc window jumps right ...

iPod Touch on device debugging crashes (EXC_BAD_INSTRUCTION, EXC_BAD_ACCESS)

I'm using iPod Touch 2G as a developement device with Xcode 3.1.3. When I try to trace the execution on the device from a breakpoint in the debugger I get EXC_BAD_INSTRUCTION, EXC_BAD_ACCESS or some error with debugger not being able do disassemble something. The same thing will work properly on iPhone Simulator. Previously I've been abl...

String Help - Objective C

Hi all, I'm trying to make an app that will respond to your command when inserted. So you type in any text in the first box and press enter. It will respond with a response in the 2nd field. I'm not sure how the coding is done here. I'm having trouble with the "if inputbox text = @"whatever", I'm pretty sure that is completely off. Here...

Auto-Indentation in a NSTextView

I'm working on a simple code editor in Cocoa. I have a text view, and I want it so that when the user hits return, the new line is indented the same as the previous line (like in Xcode or any other code editor). My problem is that I can't figure out how to either intercept when the return/enter key is pressed or when a new line is creat...

xcode debugging maximum depth for investigating variables?

Hey There! I use Xcode to code for a current iPhone Project. It's the first time i work with XCode. What i wonder is, whether i need to set somewhere how 'deep' i can be able to recursively look into the variables in the debugger. If i have the debugger open, i can see all the current variables and open them. I can see all the fields o...

iPhone dev view swapping

So I'm trying to find out the best way to swap views for an iPhone game I'm making. I have a "root view controller" that has a reference to all the view controllers I want to swap between. So I add the main menu view to this root view controller - [self.view addSubview:mainMenuController.view]; - Then in the main menu view I have an in...

Installing updated SVN (1.6) on Mac OS X to integrate with Xcode

I have an svn client installed on Mac OS X. I'm not sure if it came with Mac OS X or when I downloaded Xcode which contains Apple's Developer Tools. I can run "svn" off the command line but I'm not sure where the file/app is located. When I run "svn --version" it says I have version 1.4 installed. I notice that when I try to use SVN in...

iPhone Screen Rotation: Can I enforce 90 degree rotations?

My iPhone app rotates fine in the simulator but when I deploy it on a physical device, rotating is very very sensitive. How can I fix this issue and make sure the screen rotates only when a 90 degree angle is made? ...

Xcode compiled application does not start after deleting file.

Hi all! I've added an image file (png) to my project. Compiled my application and it all worked. Now I have deleted the image file, cleaned the build target and compiled again. Everything compiles but the application does not start. All I see is a jumping icon on the dock. Xcode says: __TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION__ Can any...

Slice up image into icons at build time or runtime in xCode

I need about 100 icons inside my application. Would it be logical to have one large image file with all the icons and then somehow split it up into individual NSImage objects? Is there a way to run some code at build time to regenerate the individual icons? ...

How to build a VST-plugin with OSX/XCode

I want to build a VST plugin on OSX. I can compile it just fine, but the VST-host (Cubase Essential 4) always crashes when trying to load it or reports that the plugin is somehow broken. Probably, this is because I am missing some ingredients to the VST-bundle. Which preferences need to be set in XCode and what stuff has to be put into ...

Play Music? - Objective C

Hey guys, How would you play any type of music in objective-c (not iphone sdk), and how would you stop the music? Thanks, Kevin ...

How do I programmatically play an MP3 on an iPhone?

I'd like to include an MP3 with my app and play it on demand. Unfortunately I am not sure how to get started. I keep reading about .caf files, but I am not sure what those are. I am looking for a step by step, if possible. ...