xcode

Where does Xcode's open quickly search?

I'm not sure how to get it to index my project files. ...

Where to put project files?

When I first started using Xcode, I didn't like the default project files location. Instead, I made a folder in my user directory instead. Now, I think that is a mistake, since I now link to libraries in my user folder. If I share code with someone, it breaks (since my user folder isn't located on their machines). What's the best prac...

What's the difference between a View XIB and an Empty XIB?

I know that the View XIB has a view already in place, but are there any other differences? I've read tutorials which say to create a View XIB, change the class and delete the view, then insert a Table View and remake the connections (File's Owner to the Table View, Table View delegate and datasource back to the File's Owner). Is there an...

Passing NSMutableArray into a function

Hi, I have this problem with Cocoa, I am calling a function and passing an Array to it: Some where I call the function: [self processLabels:labels]; And the function is as follow: - (void)processLabels:(NSMutableArray*)labs{ labs = [[NSMutableArray alloc] init]; [labs addObject:@"Random"]; .... } When debugging, I notice...

Xcode: Running a script before every build that modifies source code directly

What I did: I have a script that Read some configuration files to generate source code snippets Find relevant Objective-C source files and Replace some portions of the source code with the generated code in step 1. and a Makefile that has a special timestamp file as a make target and the configuration files as target sources: SRC =...

iPhone apps crash if debugged on a jailbroken iPhone OS 2.2.1 (libgcc version?)

Hi, I'm new to iPhone development. I used a jailbraked iPhone (OS 2.2) for for some time with no problems. Recently I had to upgrade to OS 2.2.1 and after the update I am no longer able to debug apps on the phone. In the console I'm getting the following warning and the apps crash at launch (only when debugged) : ... warning: UUID mism...

buttons in interface buider

has anyone an idea if it is possible to create ellipse or polygon buttons in IB? ...

Apple/iPhone Development IDE Preferences?

I'm going to do something I never thought I'd do... learn how to program for Apple hardware . After working in C, C++, C#, .NET, and even in the golden days of DOS (a little DOS4G/W memory extender in Borland Turbo-C, anyone?) and even as a kid, playing around with Atari 8-Bit Turbo-BASIC, I feel a little traitorous on multiple levels ...

how to get cell's text on the nextview when click on a cell in uitableview

i want to show the text text from the uitablevicell selected to the nextview's navigationbar..any idea regarding this? ...

How to create a new XCode project from an existing c/c++ code space

Hi, How to create a new XCode project from an existing c/c++ code space? What type of project I should pick from XCode project template? Thank you. ...

How to set a conditional breakpoint in Xcode based on an object string property?

I'm looking to be able to have the debugger break when it reaches a particular string match. As an example, I might have something like this: Foo myObj = [self gimmeObj]; myObj might have a property called 'name'. I want the debugger to stop on the assignment when [myObj.name isEqualToString:@"Bar"]; How can I set my conditional brea...

How to get headers into framework in Xcode?

I'm trying to build a framework for MacOS in Xcode 3. It looks like it's building everything except the Headers directory according to the layout listed in the Apple documentation. I can't find anything that tells me what settings to use to get the build process to copy the headers into Headers directory in the framework, or alternately ...

Is it better to load from Bundle or disk?

I have about 10 images in my app. They are in the bundle as resources. Is it better to load them from the bundle on each app start? Or deploy them to disk once and always load from disk? ...

How can I free-up or release the memory I've allocated to a .wav file?

I load some .wav files in my iPhone app like this: SoundEngine_LoadLoopingEffect([[bundle pathForResource:@"loop" ofType:@"wav"] UTF8String], NULL, NULL, &MySounds[Loop]); SoundEngine_LoadEffect([[bundle pathForResource:@"intro" ofType:@"wav"] UTF8String], &MySounds[IntroMusic]); The "intro.wav" file takes up some space (approx 2 meg...

Objective-C : Object declaration question

Hello there is something I try to understand. I have this object declaration in my AppsController-Class for a Cocoa Application NSMutableArray *personArray; In can put this declaration inside the Header file or inside the implementation of the class in the code file. It makes no difference. I can even put it outside the @implementati...

Xcode 3.1: setting copyright statement on a per-project basis?

I'm an independent developer working primarily with iPhone applications, and I'm currently engaged in several different projects. Some are for myself, and others are for one of a number of clients. Because of this, I'd like to have a way to have Xcode set the copyright notice at the top of each source file on a per-project basis. I've s...

Reading HTML content from a UIWebView

Is it possible to the raw HTML content of a web page that has been loaded into a UIWebView? If not, is there another way to pull raw HTML content from a web page in the iPhone SDK (such as an equivalent of the .NET WebClient::openRead)? Thanks in advance! ...

Rename a class in Xcode: Refactor... is grayed out (disabled). Why?

Why is Refactor... grayed out (disabled) in Xcode? I'd like to rename a class. ...

What's the easiest frame by frame animation technique in the iPhone sdk?

Hi, i've been developing for the iphone platform for about 3 weeks now, and I'm trying to set up a frame by frame animation with 16 1000x1000 png images (with transparency) and plan on animating with around 100 later, so first I tried using imageNamed to animate all the images like this -(IBAction)startClick1:(id)sender { clou...

How do I show details view in iPhone App using Sqlite

I am trying out iPhone Apps, coming from C#, I am finding very difficult to grasp the iPhone dev environment. So far, I am able to get my 'Makes' listed in a TableViewController. I now wish to get by 'Models' listed when a Makes is selected. Can someone help me with sample code. Can I use the same TableViewController to show the Models...