xcode

NSURLConnection get URL

Hi, how i get the URL inside the following method ?? - (void)connectionDidFinishLoading:(NSURLConnection*)theConnection ...

Set Orientation to Portrait on iPhone

Hi, I have an application that consists of a login, 3 tables, and then an image. You can rotate the image to landscape mode but what I want to be able to do is when the 'back' button is pushed and the app returns to the previous screen, I was the app to automatically rotate to give a portrait view. Is there any way of doing this? ...

OpenGL died when I upgraded to OS4 an iPod Touch 2G device.

So.. basically, at work I'm developing a game and now I'm testing OS4 in all kind of devices, there were some problems but so far so good, that was until I deployed the game on a iPod Touch 2G... now ALL OpenGL are not updating, the game doesn't crashes, but, is like the renderer is doing nothing.... This is only happening with OpenGL s...

How to create an NSDictionary with two values per key from plist

I have a dependent UIPicker that loads the values into its two components from a plist. It's an NSDictionary with NSArrays of strings. The user selects a pair of components and the picker sends those two strings back to the delegate. What I really need is a constant that goes along with each individual choice. For example, first comp...

Button disappears when iPhone rotates

Hi, In my application, I have a series of tables which leads up to an image. In portrait mode, there is a button in the bottom right hand corner, and when I select this the screen flips and I can make notes. When I turn iPhone to landscape mode, this button disappears completely. Any ideas? ...

where Xcode organizer stores devices list.

Hi, Can any body tell me where xcode organizer saves the list of devices attached with it??? I need that urgently. I am unable to add device from provisioning portal and need to add device from xcode organizer but that needs the device. i currently don't have the device just have the UDID. I think i could add the device UDID in the xco...

QuickTime component with Xcode 3.2: C++ compilation errors

I'm trying to compile the Xiph QuickTime component Xcode project on OS X. It depends on a number of libraries such as libflac and Theora; all of those dependencies appear to be C code which all compiles nicely with the 10.5 SDK. However, when it comes to compiling the component itself, I get a number of errors, mostly along the lines of ...

Xcode : Where is the Organizer Devices Information stored on Hard Disk ??

When i open Xcode Organizer, there is info about devices that were connected with the Mac. Where is that information stored on hard disk? ...

Keys in XCKnownRemoteComputers

Hi, Do all the keys in the XCKnownRemoteComputers key in the com.apple.Xcode.plist are mandatory or we can just give UDid. Regards Abdul Samad ...

Messed up method - if/then structure and string manipulation problems

I have a method that gets called any time a control on my view changes and should update a UILabel. It has two UITextFields and two UISliders. First I check to see if either of the UITextFields are empty and if so, advise that they need to be filled in. Otherwise I get the difference between the UITextFields' values and generate a cou...

Enable IPhone Intellisense without Pressing Escape Key

Is there anyway to just turn on the intellisense support in XCode without having to press the escape key? ...

How to target specific arch during iphone universal(arm6/arm7) build

Im trying to define different ld and c flags for different arch. im using this.. OTHER_CFLAGS[sdk=iphoneos*][arch=arm6] = blabla and whatever is set here doesnt make it into the build.. even setting as arm7 doesnt make a difference. Tested on both arm6 and arm7 devices. BTW im using .xcconfigs for my project. ...

Interface Builder and the preprocessor

Is there any way to force/cajole/encourage Interface Builder into running the C preprocessor when scanning source files for IBOutlet references? It's a tricky problem, I can see, since in an ideal world it would need to preprocess the file with the same context that the project would, ie with the precompiled headers etc (this is much mo...

XCode warning: argument 3 discards qualifiers from pointer target type

Hello, XCode is giving me a warning that I can't figure out why. @interface SFHFKeychainUtils : NSObject { } + (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting error: (NSError **) error; @end In another class I call storeUse...

xcode template with run script build phase requires root

I'm trying to configure a custom xcode template for building Apache 2.2 modules in xcode. Everything seems to be working okay so far, except the most important bit: the custom build settings. I currently have my template configured so that my target has a run script phase that executes apxs, the Apache module build tool, like so: Shell...

xcode - load localized images with the same name, not using nslozalicedstring

Hi. I'm trying to load a "Play" image(uiimageview) depending on the device language. In my AppBundle there are to folders, en.lproj(english) and es.lproj(spanish) with a Play.png image each one(one in english and one in spanish). I know how to load localized images using a Localizable.strings and images with different name, for exampl...

NSURL declaration /allocation showing error

Hi I Have tried NSString *alertTxt =textfieldName.text; NSLog(@"Name: %@",alertTxt); NSURL *urlAddress = [[NSURL alloc ] initWithString: @"%@/login/index.php",alertTxt]; error : too many argument to function initstring .. the user will giv the url address to the alertText field and i hav to embed in to the webkit may i know the proc...

Xcode not showing console output; How do you flush the console?

I have a simple C++ program that uses cout and printf to log stuff and it is only showing at the end when the program is closed but if I'm stepping through the program using debug nothing is shown. Did anybody have this problem? This is probably a punishment for doing homework for someone else. :|. ...

iphone: get User Defined variable in Target's setting by code?

My project have multi-targets. Each target has its own Class file for setting stuff. I want to store that Class name in a target setting (Info.plist or Target's Building setting). So that I can define which class I need to use in each target based on this setting. According to this question, I put "a target-specific User Defined variabl...

Upgrading to a universal app and sdk problem

Hi, I have an iphone app. I decided to upgrade it to iPad and installed the xcode_3.2.3_and_iphone_sdk_4__final.dmg I upgraded the app to an universal app. Before installation of new sdk, I could compile my iphone app with 3.0 sdk. However, after installation, I can only see iPhone Device 3.2 adn 4.0 sdks on xcode. I wonder, if I com...