xcode

Choose build configuration for referenced subproject

I have an iPhone project which references a framework as a subproject. The framework has the following configurations: Debug Release My app has the following configurations: Debug Release Distribution-AdHoc Distribution-AppStore I would like the framework to be built with different configurations, depending on the app configurat...

NSTimer Lag - iPhone SDK

Hello everyone, I made a game that uses many timers throughout the code. However the timer has to deal with many tasks in such a small amount of time which leads to the problem where there is lag in my game. For example, my timer runs at an interval of (0.05) and it needs to draw and update many of the images on the screen. Is there any...

What's the point of having different Build Configurations for Debug and Release?

What's the point of having different Build Configurations for Debug and Release? Must we do anything different in the Release Configuration before building the app for distribution over the App Store? ...

Accelerometer & Calibration - iPhone SDK

Hello everyone, I need to use the functionality of an accelerometer in my iphone game. I just have to move an image by tilting the device. However most videos on youtube just show the tilt feature that is somehow inverted and forget to include the calibration. I want the user to calibrate their device to whatever position they're in. Do...

How can I see the entire SCM history in my Xcode project?

If I look at the SCM tab in Get Info for my project I only see the commits that affected the project file. Where can I get a list of all the commits for the entire project? ...

My iPhone App doesn't work in iOS 4. Why?

Hi everybody. I make a iPhone App that display some videos, I made it with Xcode 3.2.2 with iPhone SDK 3.1.3 and works fine. But a few days ago I downloaded the last version of the iPhone SDK for iOS 4, the proyect Build ok, no erros, no warnings, but when I run the aplication the video didn't work, the image didn't load but sound works...

Memory Problem - Release whole ViewController ?

Hi, I'm using a TabBarController with a few Tabs and I have memory problems when switching through the tabs and the contents. Is there a way to release and dealloc everything when I go to another ViewController ? So when I am in Tab#1 with ViewController #1 and I go to Tab#2 with ViewController #2, how can I free all the memory ViewCont...

iPhone Application: force landscape mode, strange behaviour...?

This is a method I use to switch display views, based on a string passed (for example you could pass MainMenuViewController to switch views to a new instance of that class): - (void)displayView:(NSString *)newView { NSLog(@"%@", newView); [[currentView view] removeFromSuperview]; [currentView release]; UIViewController...

Two variables will not subtract in XCODE

I am trying to subtract one variable from another, and use that output. but when I subtract them, the outcome is just the second variable negative! int distance = pointX-pointXTwo; NSLog(@"%d", distance); ...

Hide linefeed and tab characters in xcode editor

As can be seen in the screenshot the editor in xcode has started to show linefeeds and tab characters, normally invisible characters. I can't for the life of me find a way to hide them again and i have no idea why they started to show. Any ideas? ...

Cannot bind NSSlider in IB?

I just created a new Xcode project. In the AppControl class Header file I have the following objects defined (and some other ones, too): IBOutlet NSImageView *inputImageView; IBOutlet NSImageView *outputImageView; IBOutlet NSTextField *myNoiseLevel; IBOutlet CGFloat *mySharpness; After putting the basic code int...

Populate tableView with more than one array

The short version: Is there a way to populate one specific row in a tableView with one value from one array, then populate another row in that same tableView with one value from a different array? For example, cell 1 would have the first value from Array A, cell 2 would have the first value from Array B, cell 3 would have the first val...

Xcode 3.2 not recompiling changed files

I've been programming a new iPhone application and everything has been chugging along fine, until this afternoon when I noticed that any changes I was making were not being reflected in the actual app! Even code that throws errors isn't getting picked up by the compiler. To get around this, I have taken to the following procedure: Fin...

steps to fix a project that won't compile

Hi Pulling my hair out in trying to get a simple window based project to compile. I am running both 3.2.2 and 3.2.3 versions of Xcode. The latter is set up in a separate folder. Originally I used the latter to create and compile my project against the new 4.0 sdk. It compiled fine. Then I made the mistake of deleting some sdks I though...

Using the Apple Scripting bridge with Mail to send an attachment causes the message background to go black.

Hello, When I use the Apple Scripting Bridge to send a message with an attachment the background of the message is set to black which is a problem because the text is also black. The code in question is: MailApplication *mail = [SBApplication applicationWithBundleIdentifier:@"com.apple.Mail"]; /* create a new outgoing message object ...

how to autocomplete library class function in Xcode

Hi, I am new to Xcode. I am writing a C++ command line project. I used to use netbean. For example if I use a string, then I should be able to invoke the string library API function in a popup list for me to choose to autocomplete. So now I don't know how to do that in Xbox. Can some one help? My question is specific: how to find ...

"EXC_BAD_ACCESS: Unable to restore previously selected frame" Error, Array size?

Hi there, I have an algorithm for creating the sieve of Eratosthenes and pulling primes from it. It lets you enter a max value for the sieve and the algorithm gives you the primes below that value and stores these in a c-style array. Problem: Everything works fine with values up to 500.000, however when I enter a large value -while run...

Plist information in iphone project

what are the information to be shown on Plist in iphone Thanks in advance ...

Is it possible to use xib file in cocos2d

Hi all, I am creating application in cocos2d, but one thing I would like to know is it possible to use xib file in cocs2d as we are using in simple iPhone application creation? If yes then how to make call to such xib files, can any one tell me the answer, is is possible or not? Thanks in advance. ...

How to Loop NSThread?

Hello everyone, I am curious to know if you can loop an NSThread for the iphone sdk. I have learned that instead of using NSTimers which do run off of the main UI, I can use NSThreads to run actions in the background. Most of my NSTimers have the "repeats:" to YES, thus I need to know if NSThreads can be looped. Thanks Kevin ...