xcode

Run command in Terminal from Application

I have an app that needs to run a command in the terminal. or i want to run this command in my app. ssh -N -p 24 -g -D 1080 username@server plz help me . tnx ...

iPhone: Activate UISlider and set its value to the location of the current touch programatically

Is it possible to set an UISlider as first responder and set its current value to the location of the current touch programatically? The way my app is set up I have a UIView container that takes up the whole screen. Inside the container I have another UIView offscreen at the bottom edge (I'll call this bottomBar). Inside the bottomBar ...

Are the built-in images in iPhone documented, and is there a list of their names somewhere?

I discovered somewhat by accident that if you make a UIButton in Interface Builder and type in Plus in the image field, a + image appears for the button. A similar result comes from typing Minus. I am wondering if this is a bug, or if there is some way the poor programmers can access the built-in general GUI images from other apple apps...

iTunes Connect rejects my binary because I used a pre-release version of the SDK, what should I do?

I downloaded a pre-release version of the iPhone SDK and tried to update one of my existing apps using a binary I built with it. Obviously you are not supposed to do this but I had forgotten about the warning when I installed the pre-release SDK. Anyway - I have two questions: Can I simply set the base SDK to an earlier version in the...

Should the rfc1034identifier be removed from the CFBundleIdentifier in plist file?

In my Xcode project's plist file, I can see the value for the key CFBundleIdentifier is: com.mycompany.${PRODUCT_NAME:rfc1034identifier} Obviously I will have to change com.mycompany to the domain name of my company, but I have no idea whether the rfc1034identifier should be removed so that it becomes: com.mycompany.${PRODUCT_NAME} G...

Creating an app file that can be installed on an iPhone before it's uploaded to the AppStore

My boss wants me to develop some apps and make them appear on the AppStore. This is a very small company, he paid the iPhone developer program fee and I am responsible for the rest, I have full access to the account. I've finished the development on my mac using the simulator. But now I have to test the app on an actual iPhone before it...

Basic HTTP Authentication using Obj C and Xcode.

Hi Everyone, I am hoping someone can help me with a question i have relating to Basic HTTP Authentication in an Xcode 2.3 application. Basically i have a PHP page that is on our server and when called with certain parameters returns data relating to the servers condition etc. i have managed to get a small Xcode application working whe...

Can I load multiple UIViewControllers that each kick off their own NSURLConnections?

My Rootviewcontroller uses NSURLConnection to get data from a server, and then, based on this data, loads a bunch (like 7) of smaller UIViewControllers that each also use their own NSURLConnection to get some more specific data from the server. But, the problem is, only the RooTViewController is recieving callbacks from: - (void)connect...

How do I detect touches on UIStatusBar/iPhone

I'm trying to detect any touch on the iPhone's UIStatusBar but its not working. I've tried subclassing UIApplication and UIWindow to access it but still nothing ...

Instruments freezes and restarts iPod touch 2g

I can't get my application running with instruments. I tried running through xcode with run->start with performance tool, instruments starts, iPod gets stuck and restarts everytime. It is really annoying. I am on 10.6.2, xcode 3.2.2 and using 3.2.1 SDK. Need help! ...

Generate Makefile from Xcode Project for port of project to other UNIX systems

(This was asked before but the answers were not conclusive) While I love development using Xcode (3.2.1), I have the need to port some projects to other UNIX systems, and even Windows. The code is all C++ but fairly complex. I'm looking for a way to automated / semi-automated generation of equivalent Makefiles out of my Xcode projects, a...

Preset value of HTML Forms

Hi. I'm trying to preset the value of a dropdown menu and the value of a text box in an HTML form. As soon as the user taps the button in my iPhone app, it enters the webview and I was hoping to preset one of the dropdown menus and text field. How do I go about this? I want to set the dropdown to value "4" and the text field to "Giro ...

How does Core Data work

Ive tried to gather information on as to how core data works, but can someone give me a clear explanation of all the stuff required...For instance NSDataContext, Fetchcontroller, NSDataModel, Presistent... Perhaps all the steps involved to get a data...Now I'm also unclear about an SQLite file, like how do we load the data into the core...

What is a "web start" application project in XCode?

I want to use XCode's editor to maintain some existing JSP, HTML, XML and CSS. Not heavy duty, but I prefer to stay with a familiar editor, keyboard, etc. Is this the right project to start with? If not, which one is better and what type of development is "web start" appropriate for? ...

Extracting images from a PDF

Hello ! every one. I am having a little query regarding Extracting specifically images ( only images ) from a supplied PDF document in iPhone Application. I have gone through the documentation of apple - But I am failure to find it. I have done following efforts to have the Image from PDF Document. -(IBAction)btnTappedImages:(id)send...

Is there a Javadoc-like plugin for Xcode that automatically generates the doc template?

I'm aware of Doxygen to generate the documentation. What I'm looking for is quick way to insert documentation in Xcode similar to what Eclipse does when editing Java files. Let's say I have an objective-c method with a couple of arguments like this: -(NSInteger*) sumOf: (NSInteger*) one and:(NSInteger*) two {... In Eclipse, if you pl...

Audio looping in Objective-C/iPhone

So, I'm finishing up an iPhone App. I have the following code in place to play the file: while(![player isPlaying]) { totalSoundDuration = soundDuration + 0.5; //Gives a half second break between sounds sleep(totalSoundDuration); //Don't play next sound until the previous sound has finished [player play]; //Play sound NSLog(@" ...

How to identify WHICH NSURLConnection did finish loading when there are multiple ones?

Multiple NSURLConnections being started (in a single UIViewController) to gather different kinds of data. When they return (-connectionDidFinishLoading) I wanna do stuff with the data, depending on the type of data that has arrived. But one prob, HOW DO I KNOW WHICH NSURLConnection returned? I need to know so I can take action specific t...

What's the best way to release objective-c properties?

I'm new to memory-management, and am reading different things about how to best release properties. If I have: in .h: @property(retain) NSString *myStr; and in .m: @synthesize myStr = _iVarStr; Should my dealloc have: [_iVarStr release]; or self.myStr = nil; or something else? Thanks! ...

iPhone App doesn't pick up Touch events, after replacing one view with another

Hi, Any idea why after replacing one UIView with another (with the same Touch event logic), the 2nd one won't pick up any touch events? I'm replacing them using: [currentView removeFromSuperview]; NewView *newView = [[NewView alloc] init]; [window addSubview:newView]; Thank you all for your help :) ...