xcode

How do I put a background image on a text area (IN THE IPAD)

How do I put a template'd background image on a text area? ...

Why does Xcode's editor jump upwards whenever I place a Breakpoint?

Whenever I place a breakpoint down in Xcode 3.2.1, for whatever reason the editor likes to jump upwards by 100-200+ lines, losing my place in the source code. This appears to only occur in projects that I've been worked on for a little while, opening/closing them several times. New projects don't have the issue, but eventually develop ...

import pictures from the iphone photos storage to the canvas within uiwebview

I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to import pictures from the photos storage to the canvas within the uiwebview.Its built on Html,javascript and css.Wou...

Adding Facebook iPhone SDK to Project = 102 error and build failed

As far as I can tell I've followed the instructions perfectly ... and yet I am getting 102 errors and build failed when I attempt to build my iPhone application project in XCode. I'm using XCode 3.2.2. What am I missing??? This is driving me mad! * UPDATE * Ok ... I was able to get this working by doing the following: Double-click...

Navigation bat not displayed at top of page. What's wrong?

I'm having what appears to be a simple problem. I declare a navigation controller but the navigation bar that comes up is not displayed at the top of the page. http://sphotos.ak.fbcdn.net/hphotos-ak-snc3/hs410.snc3/24784_889732028002_28110599_54506042_4580563_n.jpg I declare the navigation controller like so... UINavigationController...

Symbolizing plugins in Instruments' stack traces

Instruments is able to properly symbolize my app's main bundle (as well as frameworks and libraries) in the stack trace of the extended detail view. However, symbols aren't resolved for plugins loaded during execution. Setting the build directory where the dSym files for the main and plugin bundles are located (as well as the app itself...

iPhone + Provisioning Profile + app-info.plist + entitlements.plist = iPhoneApp ? How ? What exactly does entitlemets.plist do ?

To execute my application in iPhone first of all I have to add provisioning profile in to my iPhone. Good. But I don't understand the reason behind adding a entitlements.plist in iphone application in xCode under resources. What does that entitlements.plist file do actually ? Why that .plist file have only single Boolean in it ? (get-t...

Including an embedded framework using a cross-project-reference: Header no such file or directory

I'm trying to create a Cocoa framework by using a cross-project reference in Xcode. I have 2 projects: one for the framework; one for the application that will use the framework. This framework is not intended to be stored within the system; it is an embedded framework that lives within the application bundle. I have successfully made...

Iphone sdk - please help , 1 view takes me 45 minutes to do :(

Hey, I've been working on a Cook Book App but each view ( or recipie page) takes about 45 minutes to complete so as you can imagine its taking forever. The problem is that I have to manually: Set up a gradient image for the back ground (Somtimes I have to add a few image backgrounds to fit the view as I often use a scroll view, not s...

Xcode SDK version for testing & release?

I am just putting the finishing touches to an iPhone app that I have written, signed up to the developer program and installed Xcode 3.2.2 (1650) My question is which version of the SDK should I be using to build my application? I was thinking I should be using the latest 3.2 but when I select that I can only access the iPad simulator .....

How do I change the build's SDK version in Xcode?

I'm using Xcode 2.5 on Mac 10.4.11 PPC. javac -version returns 1.5.x yet when I imported my source code and tried to build it in Xcode, I get errors all over because generics, annotations, and for-each loops are not supported in -source 1.3. I thought I found the setting to change the source version in Xcode in the above but it doesn'...

Use C++ with Objective-C in XCode

I want to use/reuse C++ object with Objective-C. I have a hello.h that has the class definition, and hello.cpp for class implementation. class Hello { int getX() ... }; And I use this class in Objective-C function. #include "hello.h" ... - (IBAction) adderTwo:(id)sender { Hello *hi = new Hello(); int value = hi->g...

How to remove previous versions of Xcode

When the 3.2 beta of the iPhone OS first came out, Xcode for 3.2 had to be installed side-by-side with the version for 3.1.2. I installed the new version (3.2) in /Developer and moved 3.1.2 to /Xcode3.1.2. Now I want to get rid of the old version and just use the new one since we can do that now. I ran the uninstall tool at /Xcode3.1....

Is it possible to set up XCode to do the reference counting for me?

I'd like to know if is it possible to set up Xcode to do the reference counting and show warnings if number of "retain" and "release" are not matching? ...

How to change an NSBox location (or position?) programmatically in objective c

I am learning objective c and am making some small programs. for my current project i am taking a NSBox and changing it's location based on a random number. How do I change the box's location? With C# it was a simple "box.location = anotherLocation" but I can't figure out how to do this in objective c. Any help would be greatly appreciat...

Where is gcc on OSX? I have installed Xcode already

I have installed Xcode from the Tool cd, I thought that would let me use gcc from the command line but I can't find it. What am I missing EDIT When I wrote I can't find it I meant "I look for it using which gcc" If gcc would have been in the PATH in first place, which would have find it. Since gcc is not in the PATH ( that's what...

Unable to build mercurial on OSX - Python.h not found

For what I've read I need Python-Dev, how do I install it on OSX? I think the problem I have, is, my Xcode was not properly installed, and I don't have the paths where I should. This previous question: http://stackoverflow.com/questions/2685887/where-is-gcc-on-osx-i-have-installed-xcode-already Was about I couldn't find gcc, now I ...

looser throw specifier for in C++

I am getting an error that says: error: looser throw specifier for 'virtual CPLAT::CP_Window::~CP_Window()' On the destructor, I have never heard of this before and some Google Searches say this might be a GCC 4 problem, which I would not be sure how to work around since I need GCC 4 to build a Universal Binary. My Environment: OS X 1...

Audio Tweets from Within an iPad App, Sending a Selected Recording from the App Sandbox

I'm updating a music app I have with the ability to share your .wav recordings via Twitter (this is somewhat similar to TweetMic). The app already has e-mail sharing and has functioning text-only tweet capability using the code from iCodeBlog's Twitter tutorial. Somehow, I can't figure out how to use something such as chir.ps or some o...

NSMutableArray of Objects misbehaves ...

I hope someone understands what happens to my NSMutableArray. I read records a, b, c, d from a database, load the fields into an object an add the object to an array. To do this I read the records into an instance of that object (tmpEvent) and add the Object to the target array (NSMutableArray myArray). the code looks like: for (condi...