xcode

How can I recover formatting of application's info.plist in Xcode?

I duplicated default build target. Some code files are duplicated also. Problem is, duplicated info.plist file is not formatted by Xcode. I don't think this is normal. Any workaround? Or any way to specify formatting of plist? (which may format other type of .plist by my custom formatting rules) ...

IPhone Interface Builder: Z-Index, Z-order of a button, image, ui element, etc?

Hi, I'm dragging things around in the Interface Builder... I'd like to specify whether an image is in front (like an indicator) or behind of a button (like a background). I don't see any z-index property as I'm used to seeing on other environments. If there isn't a z-index property what is the best way to go about what I'm trying to a...

How do I store a persistent array of objects on the iphone?

I need to store an array of user created objects (a user enters data for several properties and then commits it), and I need it to be available in a database or something similar so that I can call it up and display the data when the user calls for it even after the user quits the program(the persistent part). Other considerations are ...

How can I make a button appear on screen until the user clicks it so it disappears?

Recently, yesterday actually, I just started learning how to program Objective-C. I am trying to figure out how to make a new button appear midway through the program and then disappear. I am not even sure how to begin on this one. I am not an experienced programmer and any help would be greatly appreciated! ...

Universal preference pane is forced to launch on 32-bit

I'm building a Preference Pane for an application, it's Universal (PPC/32-bit/64-bit) but when I install it on the System Preferences, i'm forced to run it on 32-bit. Any idea why and how to solve it? if i run file FILE_PATH i get: FILE_PATH: Mach-O universal binary with 3 architectures FILE_PATH (for architecture x86_64): Mach-O 64...

how to stop tabbarcontroller from being reset view controllers?

Hello, i have an application with tabbarcontroller.I have 4 tabs+4 navigation controllers.i am pushing views on navigationcontroller's stack on first tabbar button item's navcontroller,my problem is if i again push tabbar button it shows first view of navigation controller while it should show the last view of navigation controller.Here...

OCMock test fails to build: Foundation/Foundation.h : No such file or directory

Hi, I am a Xcode beginner, and am facing some problems in compiling an OCMock test. I have added the OCMock.framework in "Groups & Files", and then added a very basic OCMock test from the Unit testing target, basically for Canary testing. When I compile the OCMockTests.m file, the system returns around 38 errors pointing out all the i...

-isysroot or SDKROOT problem

I am a newbie to libhistory, so I was looking at the sample found with readline library. Compiled it on command prompt using: gcc -o ./a.out /usr/local/share/readline/histexamp.c -lreadline -L/usr/local/lib/It compiles and maintains history. Then crated a xcode project with the same file and linked against readline library it compiles f...

Can't use IBActon for button on after installing iPhone SDK 3.2

I have no idea what happened after installing this update ... I can't do this most simple thing which I've been using for a long time. Does anyone have the same problem as I do? ...

iPhone Application Starting Point?

I have a question regarding setting up a simple single view application. From what I can see there are two methods... METHOD_001 Start Xcode and create a "Window Based Application" Start setting up your interface in the MainWindow.xib METHOD_002 Start Xcode and create a "Window Based Application" In Xcode add a UIViewController su...

NSDate basic usage error

Next to a label showing the value of a slider i want to show the date that corresponds to a start date + the number of days in slider value units. When i move the slider the app crashes in the Simulator. As far as i could find out that happens when i try to create a new NSDate field and my startDate object being "out of scope". Reading...

Xcode - Call stack trace on assert?

Right now when one of my asserts is triggered in Xcode, I get the assert message, and a dump of the stack, which is full of numbers that are not very meaningful to me. In order to get a trace of the call stack, it requires me to debug the application, and run it up to the point where the assert occurred, and hope that it asserts again....

Leak problem with initWithContentsOfFile

My app is running good and looks ok. But after I ran it with Instruments, I found tons of leaks on it. There are several things seems not wrong like a code below. Is the code really have problems? Any single word will be helpful to me. @interface GameData : NSObject { NSDictionary* _data; NSDictionary* _localData; } @end @imple...

Temporarily restrict certain resources from build inclusion in Xcode?

Is there a way to temporarily restrict which resources are included in the build of an iPhone app (via Xcode)? I am testing a use case in my app and want to minimize the installation time on my device. I would like to do this by reducing the resources to only those needed by this use case... i.e. there are over 70MB of .wav and .png fi...

Linking Error in Xcode

Hi All, I am getting this error after adding the libxml2.2.dylib file Linking /Users/Biranchi/Desktop/Funmovies TabBarController/build/Debug-iphonesimulator/funmovies.app/funmovies (1 error) in /Developer/Platforms/iphoneOS.platform/Developer/SDKs/iphoneOS3.0.sdk/lib/libobjc.A.dylib, missing required architecture i386 in file Comman...

Xcode runtime error: ".objc_class_name_CContext", referenced from:

hi, I'm getting this error in Xcode while developing an app for iPhone , what is this error related to, ... what should i do to clear this error? Here CContext and CManager are interface which implement there own protocols.And TestManagerAppDelegate is the interface where i'm creating the object for CContext and CManager and i want to ca...

Method causing a weird crash

I am building this app and i am encountering some issues I havent seen before. the app crashes when I run the method below which is connected to a uibutton for a trigger. so when I hit the button it does the print and then the simulator crashes to the springboard. if I launch the app again from the springboard it doesn't get to the pri...

UITableViewCell displaying incorrect alpha based background colors

I have a UITableViewCell with the UITableViewStyleGrouped style and I would like to change the background color of the cell. - (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)ip { // Do cell creation stuff ... cell.backgroundColor = [UIColor colorWithRed:255.0/255.0 green:243.0/255.0 b...

How do I use a 3rd party C library in Xcode for my iphone project?

Hello Stack Overflow, love this site and all helpful people! I'm newbie to Xcode and iPhone programming but I've pretty much got the hang of using the SDK to make programs in Obj-C (simple programs right now but make me happy). My experience is web programming (such as PHP and Perl) and I'm not really used to a lot of the new Xcode/deskt...

Obtaining older SDKROOT behavior in XCode

I'm trying to setup a library for simulator or device building and everywhere I see explains that SDKROOT should expand to a /Developer/Platform/<>/SDKs/<>/, where <> is filled in by your project settings. Many links on the internet explain that SDKROOT will expand to a path, but the newer versions of XCode, SDKROOT expands to "iphoneos...