xcode

Xcode: iPad iOS 3.2.2 debugging problems

Hello all, I am trying to provision my app to run on my iPad for testing. I have everything set up properly, but in the organizer, Xcode displays this message: The version of iPhone OS on “iPad” does not match any of the versions of iPhone OS supported for development with this installation of the iPhone SDK. Please restore the devi...

very strange plist loading problem

hi, heres the situation: firstly i create a plist in my resource folder. when my app start it will load from doc folder plist, if there is no plist, it will copy the plist from resource folder to doc folder and load from doc folder. ok up to here no problem. ok i load to device and simulator no problem. now here is the strange part. ...

iOS 4.1 SDK - Duplicate Symbols in Multiple Static library Linking for Device Builds

My company is building an app with SDK 4.1 for the iPhone. To do this we have 3 levels of project dependencies, our main App "CSM" is linking to our SDK called "csm-sdk" (in libsrc_csmsdk.a) csm-sdk then links to our XMLRPC library ("libXMLRPC.a"). When compiling csm-sdk for the device, it include definitions for all of the ObjC classe...

Xcode: How can I add large sql querys to the xcode editor without double quotes at the start and end of each line?

I asked a question earlier today "Xcode: How do I wrap a long string around to the next line in the xcode editor" ... http://stackoverflow.com/questions/3778589/xcode-how-do-i-wrap-a-long-string-around-to-the-next-line-in-the-xcode-editor ... but this is going to be inconvenient, I`ve got some quite large sql statements, which are nice...

git with XCode and ignoring .xcodeproj on merge?

I'm getting up to speed on using git with XCode but have run into a situation that I'm not quite sure how to handle. I have a branch of my project "branchA" that has a build target base SDK of iOS 3.2 I have "branchB" that has been forked from branchA that has a build target base SDK for iOS4.2 I'm continuing with development on both ...

Can you establish a button in IB and move it programmatically?

I have a button set up in IB. I have an IBOutlet set up and the onscreen object linked to it. Is there a way to programmatically change that buttons position and/or size? I know you can change the title and some things but I don't see how to change it's position or size. Thank You. ...

IBAction being called NSCFDictionary and crashing app

I have an NSObject set up to control various elements on my screen. I initialize the class inside my View Controller like this: self.pageSetupClass = [[PageSetup alloc] set:self.pageID]; In IB I have added my NSObject object and linked a button to an IBOutlet on it. I've also linked it to an IBAction found in the object. When I cli...

Is the current MacBook a suitable machine for XCode?

Hi Everybody, I'll like to buy an Apple computer to develop Apps for the iPhone. I am a hobbyist, not a professional programmer and I would favour a laptop for portability. Going by Apple's website, the standard MacBook looks Ok for me. I don't need mega performance, provided I can write, compile and test iPhone Apps at an acceptabl...

Missing UITableView after swapping in a UINavigationController

Hi all, I've been working on a simple iPhone app for a couple of days now, and haven't been able to wrap my head around quite a bit of the interface. Specifically, I've got a main menu view with an ImageView and a couple of buttons that will eventually swap out to other views. In addition to the main menu, I've got a UIViewController ...

How do you step in/out/over the Xcode debugger via Applescript?

I am developing an iOS application. I spend a lot of time in the simulator and it would be really helpful if I didn't have to switch back to Xcode to access the debuggers step in/out/over/continue controls. Is there a way to do this without Xcode being the application with focus? (I know about the mini debugger, but that doesn't have st...

mac os 10.5.8 can support any version of xcode that supports iphone os 4.0?

Hi i have an mac os 10.5.8 i am trying to port my project which runs on xcode version 3.2.4 fine my current xcode version on the mac 10.5.8 is version 3.0 it gives me an graphic assertion error. so i am guessing its a problem with the version ...

How to obtain current timezone in xcode or objective c

I need to get time zone for the current location such as -5 or +3 and so on. I am unable to do so. I am using datecomponents: // Turn the date into Integers NSInteger year = [dateComponents year]; NSInteger month = [dateComponents month]; NSInteger day = [dateComponents day]; ...

Interface builder is crashing upon startup

I downloaded xcode 3.2 and the iphone sdk 4.1, which has been working wonderfully, until a few days ago. For some reason whenever I open interface builder by clicking on a xib file all the pictures in the buttons and imageviews display a big blue question mark, and then interface builder gives me this: Assertion Message: An uncaught exc...

XCode debug vs release build when debugging.

Ok, i think i've seen it all now. For about 24 hours i've been trying to debug my app, trying to find where all the weird crashes are coming from all of a sudden. I've been debugging via Simulator/Debug mode. As usual, when i hit a breakpoint, i could see the value of variables (most of the time). Then suddenly i was unable to view vari...

Internationalization: Only key name is displayed instead of localized string in Simulator

Localization is working for other languages except of English pretty well. Every time I compile my app I see the key name instead of the localized string. Example: NSLocalizedString(@"WelcomeKey", @"") In Localizable.strings I have the corresponding entry: "WelcomeKey" = "Welcome"; In the simulator I always get the key name Welcome...

Iphone: How do I add a year to the current date and return it as a string in the format 2011-11-20

I need to get the current date. Then add a year to it. And output the result in the format YYYY-MM-DD aka 2011-11-20 ...

NSMutbleArray - add/remove objects with properties - leaks

Hi guys, i have a leak issue in my app. I'm trying to add and remove objects to a NSMutableArray. Here is the class Demande : @interface Demande : NSObject { //attibuts de la classe demande NSString *demId; NSString *demStatut; NSString *demTitle; NSString *demCreated; NSString *demIdCopro; NSString *demIdImmeuble; NSString *demIdLo...

iPhone app - interface design

After I complete my application, and want to hire a designer to work on the "user interface" what files do I supply him with? (I dont want to give him my entire app with source code, to the designer, is that possible to get get the interface done?) thanks. ...

Cannot choose "Run with Performance Tool" -> "OpenGL ES" in Xcode 3

In Xcode3, out of all options under "Run" -> "Run with Performance Tool", I can only select: Leaks CPU Sampler Allocations Activity monitor I cannot select any other option including "Zombies", "UI Recorder", etc., or most importantly for me, "OpenGL ES". I think this is consistent in all iOS projects on the machine, but I did not c...

Xcode 3.2.3 and up - static libs with targets for multiple platforms

Hi. I have a static lib project with targets for iPhone and for os x. With Xcode 3.2.2 and earlier versions all worked just fine, but in 3.2.3 apple seems to have introduced changes in how to handle target settings. In 3.2.2 I just could choose "base-sdk" from drop-down menu and set up a target for each, iPhone simulator, iPhone device a...