xcode

Xcode 3.2.4 Analyzer skipped this file?

Having just upgraded to iOS 4.1 (Xcode 3.2.4) I am getting warnings when using the static analyser that I don't think I was previously getting when using 3.2.3 Now the project compiles just fine, is this something that has changed or do I have something set wrong? NB: I have the build results window set to "All Messages" EDIT: I th...

XCode 3.2.4 iOS 4.1 (Final) and CoreData Crashes in Simulator

I've got 2 applications using Core Data with a sqlite persistent store. I've got a data loader routine that I run to populate the CoreData DB from csv files. During development, when my data changes I run the routine from the simulator to generate new databases and copy the new one into the project. This has been working quite well for...

Problem doing logic tests after XCode 3.2.4 upgrade

The recent upgrade to XCode 3.2.4 and iOS SDK 4.1 lead to that my unit tests are not working any longer with my iOS project. The project is currently only running on the simulator, not real hardware. I tried to make a new blank project with a dummy test case added that will always pass, but it does not work either, giving me this result...

How do I download the SDK for iPhone for Leopard?

I have a Mac with Leopard installed (not Snow Leopard). I'm trying to start playing around with iPhone development, so I want to download XCode and the iPhone SDK. I found a version of XCode on Apple's site which runs on Leopard, but it doesn't have the iPhone SDK bundled with it, and I can't find the iPhone SDK anywhere except bundled...

Should I test a model class which sync often to the server?

And how do I do it, since obviously there are a lot of async methods, and no way (that I know of) to check them in a unit test. For example: - (void) testSomeTest { // things [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(helperTestSomeTest:) name:connectionFinished object:nil]; // connect to server } - (void)...

Need to load data from Bundle into my iphone app.

Hi Guys, I'm looking for some guidance/code-snippets/tutorial on passing some simple data into my app. I have some data in a text file at the moment. Name,Age,Weight Name,Age,Weight etc, etc,etc There is not much. It will be read only since i wont need to change it. How can i go about reading this into my app? What do you recommend? ...

Symbols in Obj-C

What are all of the symbols in obj-c? Like %@, %d, etc. What do they all mean? Thanks ...

How to Resize View so That Its Subviews Get Resized Too

My window adds a subview (my root ViewController's view). Such subview is superview of several other subviews. I have just finished an app, and now I want to add an ad. Here's some code: [window addSubview:viewController.view]; viewController.view.frame=CGRectMake(0,0,320,480-48); viewController.clipToBounds=YES; Ad *ad=[Ad alloc] in...

Offline map using cloudmade

how can i implement offline map using cloudmade? is it possible with cloudemade? is there any sample code? Any help is appreciated! ...

Fetching reference to superview from UITextField ?

Hi all, I have created three UIImageViews. I then added a UITextField to each image as a subview. When the user clicks on the text field I want to capture which UIImageView ths text field belongs to. I am trying the following code : -(void)textFieldDidBeginEditing : (UITextField *)textField { textField = retainedObject; MyPicture *...

Run Xcode on PowerPC

Is there some special tricks to launch Xcode on PowerPC? I can install it, but it doesn't launch, just hangs. (Have to use off-button to turn it off) ...

iPhone Binary Upload - Bundle ID Problem

Hi, We have our app all ready to upload to Apple for approval but have unfortunately hit a brick wall when trying to upload the binary due to an issue with the Binary ID. In iTunes Connect the Bundle ID shows as GTYOP2FEGW.com.mycompanyname.myappname (I've replaced some of the values here for privacy but the structure is the same). Wh...

UIView not displaying in landscape

Hi, I have a window with a UIView and a transition to another UIView. But when I do the transition, the window to transition to is displayed in portrait, and after the transition is finished, it goes to landscape.. But I want the UIView to be in landscape BEFORE the transition because otherwise the screen looks f*cked up because the bac...

Open a new line below current line in Xcode

Is there any easy way to open a new line below current line in Xcode text editor? Currently I have to press cmd+right and enter for this purpose. Eclipse (Shift+Enter) and vim (o) can do that with simple key combination. ...

c++ xcode debugging locals in constructors

Hi! I'm developing a c++ application with Xcode 3.1.4 while debugging, if i step into a constructor, i see only the membervariables, but no locals used in the constructor. does anyone know that problem and how to solve it? ...

Embedding Python in an iPhone app

So it's a new millennium; Apple has waved their hand; it's now legal to include a Python interpreter in an iPhone (App Store) app. How does one go about doing this? All the existing discussion (unsurprisingly) refers to jailbreaking. (Older question: Can I write native iPhone apps using Python) My goal here isn't to write a PyObjC app,...

NOT targeting iPad with new 4.0 iPhone Application, error on submission

I'm about ready to pull my hair out. I've built a new app but opted to go iOS4 only and exclude an iPad target. I keep getting this error when submitting: "This bundle is invalid. An application targeting the iPad device family may not require a iOS Deployment Target of 4.0 or 4.1, which support iPhone and iPod only." I don't know wh...

NSTimer crashes, when I call [Timer isValid] or [Timer invalidate]

Hi, I have two NSTimers in my iPhone app. DecreaseTimer works fine, but TimerCountSeconds crashes when I call [timerCountSeconds isValid] or [timerCountSeconds invalidate]. They are used like this: -(id)initialize { //Gets called, when the app launches and when a UIButton is pressed if ([timerCountSeconds isValid]) { [timerCountSecon...

Previous View after dismissModalViewControllerAnimated of email function somehow defect

hello there, i am trying and trying.... but no result yet. i have a view with a navigationcontroller and -bar. in addition there is a tableview. if you click on a row, the iphone email function is getting startet by using the email example from apple (MailComposerViewController.h and .m). it opens and i am able to send or cancel the m...

Xcode: MainMenu.nib (English) remains under SCM twisty after Commit Project.

After I Commit Entire Project, in the left pane, under the SCM twisty, I still see the listing for English, which is described as MainMenu.nib (English) in the top right pane. The file is already added to the repository, because I can select SCM | Repositories from the menu bar and then browse all the way to <REPOSITORY>:<PROJECT HOME>/...