xcode3.2

XCode 3.2: Changing the default "Code Sense" indentation and whitespaces

I'm working with XCode 3.2 (on "Snow Leopard") which (still) has this nice "Text Macro" auto-completion feature (eg. if you type if it will expand to if (<#condition#>) { <#statements#> }). These macros are also available via "Edit->Insert Text Macro". Unfortunately, the default templates don't match my beloved indentation and whitespac...

Padlock icon with iPhone frameworks in Xcode

I'm getting a lot of linker errors (and missing architectures in i386), and I've noticed that my frameworks have got little white padlock items next to them... what does this mean? How can i solve the missing architecture error for UIKit and Foundation? ...

how do i change the size of UIImageView according to my animationImages as they are bigger than initial UIImage.

This is my code, i'm trying to drag and drop a card which will animate on touchesBegan, but the animationImages are larger than the initial card image before touches begin. How can i change the UIImageView to accomdate the animateImages sizes? cardAnimationArray is an array with 19 images xxx1.png, xxx2.png... which have various sizes...

Add a custom compiler to XCode 3.2

I have a working gcc 4.3.3 toolchain for an ARM Cortex-m3 and would like to integrate it into XCode. Is there a way to set up XCode (3.2) to use this gcc toolchain instead of the built-in GCC 4.2? What I've tried so far: I've added a modified copy of the GCC 4.2.xcplugin and changed the name, version and executable path. It shows up in...

Insert UImageVIew into UITextField

How can I add an image to a textfield? I saw it in a few apps, but can't get around it. Also based on the location of the curser, the imageView will be initialized (add image to next line). Thanks. ...

Rookie Help With Undeclared Variables_XCode

Hello, I am having trouble with xcode and I am using the IPhone for Dummies as a training guide. I am totally brand new at any programing. I am getting the same errors that indicate undeclared variable in two places. Below is a copy of the program code. The first one is "savedNumberforKey" in the line below the 2nd commented out line beg...

Compile Error with: switch, "expected expression before"

Hello, Cut to the chase I have recreated my problem as it is fairly self explanatory. this complies without error: switch (n) { case 1: NSLog(@""); NSString *aStr; break; default: break; } this compiles with error and it's only missing the NSLog(): switch (n) { case 1: NSStri...

Fill in a box on page within WebView from XCode

Hello This is an interesting one for you all! I am looking at doing an app which contains a webview that points to a website that requires a login. I know how to do the webview, etc but is there a way that I can automatically fill in the usernanme and password through XCode? I am looking at storing the user name and password within ...

iPhone OS 3.2 on the iPhone?

I have edited this OS 3.2 question based on advice that it could infringe Apple's NDA which is something I have no desire to do. For what its worth I didn't reveal anything likely to upset their lawyers. And in my opinion the SDK is their IP, and therefore it's their decision regarding the terms we agree to when optionally downloading it...

after upgrading to xcode 3.2, can I still build projects into 3.1 simulator?

I upgraded to xcode 3.2 and now the build options from the drop down menu on the upper left of the main window in xcode are limited to only 3.2 versions of the sdk, however if I open a project up that was built in the previous version those options are still there(or at least 3.1.2 is) anyway to get that option into a project built in th...

How to speedup xcode builds without any project modifications?

Last version or XCode (3.2.1) is running very slow on OS X 10.6. What kinds of tweaks can you do to your Mac in order to speedup Xcode build process. I'm not looking for general hints like how to restructure your projects, just tweaks that are related to environment. For example I remember that on Windows for Visual Studio two signi...

Not able open open applications in iPhone SDK 3.2

Hi guys i have downloaded iPhone SDK 3.2 and installed it successfully, after that i shutdown the system and restart it. When i am opening previous applications or try to create new application i am getting "Not Responding". What may be the problem can any one help me out. ...

Auto-Completion in iPhone SDK 3.2

Hi all, I installed the iPhone SDK 3.2 in my mac mini. my problem is, i am using UITableview* i want to get the properties of the tableview i.e, when i am typing tableview. and press escape i have to get the corresponding values instead i am getting "No Completions found" if i am typing the wanted property and build i am not getting any...

Keyboard shortcut for Jump to Definition

I'm looking for a keyboard only shortcut for Jump to Definition. The built-in shortcut requires the mouse: Cmd + Double click. I've tried to add a regular keyboard shorcut for the Edit / Find / Jump to Defintion menu command, but, alas, it will only work when the method name is selected. I'd like to be able to position the cursor within...

Organizer reporting, "The version of iPhone OS doesn't match iPhone OS supported for development"

Hello, Earlier this week I was developing to the device just fine. I upgraded itunes to the latest version (9.0.2 (25)) and I noticed that Organizer was throwing the: The version of iPhone OS on “sk’s iPhone” does not match any of the versions of iPhone OS supported for development So I figured I'd upgrade to the newest XCo...

Xcode Wildcard characters??

I have a whole list of data that I need to replace some data with. Each line starts with: <select value="12345"> (where 12345 is different on each line) and I want to replace it with: @" How do I do this, I can find the right find and replace algorithm to do this? It would really save me hours. ...

How do you keep Xcode project source files in sync with your file system directories?

I'm new to XCode and I find the file management a huge pain. In most IDEs, you can simply have the project source tree reference a directory structure on disk. This makes it easy to add new files to your project - you simply put them on disk, and they will get compiled automatically. With XCode, it appears I have to both create the fi...

Xcode 3.2.2 refusing to open any project folders!?

Hi, I'm developing on a number of different machines and haven't used my laptop for a while. Today I tried to use for the first time after a couple of months only to find that Xcode steadfastedly refuses to open any .xcodeproj projects!? I ended up uninstalling the older (I think it was 3.1) Xcode installation and re-installing the lat...

How do I turn on Research Assistant in XCODE Version 3.2.1?

Seems like a mystery to me. I've read the referenced Q&A on this, but it still doesn't work. A bug? A Preference setting? Thanks... ...

CGFloat causes iPhone Unit Testing Bundle to fail build

I'm having problems getting an iPhone Unit Testing Bundle to compile when the code it references uses CGFloats. If I recall correctly, CGFloat is just a pre-processor macro so I'm guessing it's not getting replaced properly, but as I am relatively new to this iPhone caper I have no idea where to start looking to fix it. I've already comp...