xcode

Problem initializing UITableViewCell

if (cell == nil) { //cell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(0, 0, 260, 44) reuseIdentifier:CellIdentifier] autorelease]; //The line above works like a breeze cell = [[[UITableViewCell alloc] initWithStyle:initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; //This is the line that...

need guidance before revoking my developer certificate

Hello all, When i install a provisioning profile into Xcode,it shows "A valid signing identity matching this profile could not be found in your keychain". Checking my login keychain(default), it has the public and private key along with my developer certificate and Apple's intermediate certificate. Also, while building my app in Xcode i...

In Xcode 3.2 under iPhone-SDK 3.1, how do I avoid "Dead store" error from CLANG analyzer?

I just upgraded to Xcode 3.2 and am using the Build and Analyze feature to check old code for errors. While doing something I thought was innocuous, I get this error: "Dead store: Value stored to 'newBook' during it's initialization is never read in SpellTest.m" #define kSpellBookFilename @"TestBookSaver" -(void)testBookLoadFromDisk...

HTTP Authentication for iPhone

Probably Duplicate of Basic HTTP Authentication on iPhone HttpBasicAuthentication in IPhone i want to write an http authentication program for iphone. should i do it using soap request or NSURLConnection? Please give me one good link where i can get help how to do it step by step , Regards, ...

XCode Debugger: Why is it only showing me assembler?

I'm just starting out with Cocoa development in xcode, doing the hello world example. I'm up to step 6 of the section "runtime debugging", which is Using the Step Over button in the debugger toolbar, begin stepping through the code. As each line of code executes, you can examine the program’s state. The value of a variable is someti...

Remove documentation popup in Xcode 3.2

When I alt(option) double-click a keyword in Xcode 3.2, I get the following popup: I absolutely hate it. Is there a way to go back to searching the documentation (as in Xcode 3.0) rather than popping up this dialog? ...

Using GCC through Xcode to compile basic programs

So, I'm a brand new CS student, on a Mac, and I'm learning C++ for one of my classes. And I have a dumb question about how to compile my super basic C++ program. I installed Xcode, and I'm looking through the documentation to try and figure out how to use it (and I highly suspect it's extremely overpowered for what I'm doing right now)...

How to remove the session start code from XCode 3.2

I recently updated to the new version of XCode and the session start code is very long and appears every time I run the program. Is there any way to shorten it to what it was like in previous versions? (Just the first line) Here's what it says now... [Session started at 2009-09-14 18:49:17 -0400.] GNU gdb 6.3.50-20050815 (Apple version...

What's the missing step/information in this iPhone Interface Builder tutorial?

I'm following a tutorial on how to use Interface Builder from Chapter 2 of Zdziarsky's "iPhone SDK Application Development." The idea appears to be to create a very basic app which consists of a Tab Bar Controller which has two buttons, each tied to a different view object (and each view object in its own respective .xib file). What I en...

how to open camera from native applicatioon in iphone?

i want to write a app in which i open the camera.take a picture and then edit the picture..means put some cool effects on it...something like image editing...does some one knows a good or i say best approach to achieve this? i want to know that is open-gl necessary to create an aap like image editing? i have iPhone with OS 2.0. i also h...

Build same RubyCocoa application version for Leopard and Snow Leopard

I have RubyCocoa 0.13.2 based application. It works on 10.5.8 and earlier versions. When i try to run it on 10.6 it crashes on infinite loop. 10.6 has 0.13.2 built in, but it's not same binary as for 10.5. When i tried to build my application's Xcode 3.1.3 project with 0.13.2 framework from 10.6, it gave a link error - malformed object o...

How can I test an iPhone 3.0 device with Xcode 3.2?

I hope it's a simple one. I have a fresh install of Snow Leopard. I've installed the iPhone 3.1 SDK from the Apple Website, which includes Xcode 3.2. I all works fine, but in "Project > Set Active SDK" menu item, I can only find "iPhone Device 3.1" and "iPhone Simulator 3.1". Now, I'd like to test my app with an iPhone 3.0. How can I ma...

How to draw a dotted rectangle marquee on iphone?

How to draw rectangle something like this in iphone sdk using core graphics ...

Xcode 3.2 Debug: Seeing whats in an array?

Whilst debugging in Xcode_3.1.2 I am pretty sure I could see the contents of my NSString arrays. However after upgrading to 3.2 I only see the following ... I know I can print the object in (gdb) using "po planetArray" or simply click in the debugger and "print description to console" I am just curious, as I am sure it worked prior to...

libxml/tree.h no such file or directory

i am getting following errors. I have already added libxml2.dylib to my project, how ever i am getting this type of trouble. Plz any body help me. ...

iPhone programming: avaudioplayer leaks memory on play

I'm new to using avadioplayer and I seems to have a memory when ever I play a sound. I cannot figure out what I am missing to get rid of it inside Instrument. could this be a false positive? ViewController.h : @interface ISpectatorViewController : UIViewController <UIAccelerometerDelegate>{ AVAudioPlayer *massCheerSoundID; } @proper...

vtable problem with cppunit and xcode project

...

How to run gdb with -quiet in xcode

I'm a newbie, so you'll have to explain this pretty clearly. I'm looking for a way for Xcode to automatically run gdb with the -quiet command so that it doesn't show startup text. I tried to edit the /Developer/usr/bin/gdb executable by adding -q to the exec lines at the end after "$gdb" in this code (somebody mentioned doing that elsew...

Mapping Visual Studio keyboard shortcuts in Xcode

At work I use Visual Studio 2008 and at home I use Xcode 3.2 (and I love both of them). But a major annoyance is the difference in keyboard shortcuts - I will be happily coding and then attempt to perform an autocomplete (Ctrl+Space in Visual Studio, Esc in Xcode) and a GeneralTypingFault will throw a SwearAndHitYourDeskInAnger exceptio...

Xcode/GCC predefined macro for target name?

I was wondering if there is an Xcode or GCC preprocessor symbol for the target name of the application. For example if I'm building an application called "MonkeyChicken", is there a preprocessor symbol such that printf( __TARGET_NAME__ ) outputs: MonkeyChicken ...