xcode

tableview array

hi i am making an application of iphone, in which i hav one view name dealsviewcontroller, in this view i have table view in each row i am showing 3 arrays values. now the problem is that i have to shows these arrays values in next view in separate label. if anyone has any solution of this, it would be greatly apreciated. Thanx in advanc...

How do I insert a value into a textfield of an HTML form using xcode?

I have been playing around with NSURLConnection. Now I'm trying to grab some data from a webpage, but first I need to insert my username and password on the website, in order to get the data. I want to know: How to insert a value into a textfield on the webpage How to press the log in button, once I have supplied the username and pas...

Setter for NSString, how is it working?

This question follows on from a previous question, that has raised a further issue. What I am trying to understand is just when the pointers and object in this example are being created and what ultimately happens to them. I am still trying to get my head round this, so please excuse any false assumptions I may have made. // MAIN int ma...

Writing to files in bundle?

If you scroll down to the section 'Writing to Files and URLs' at this link, would the path varaible have to be a file on disk? Is it possible to write to a file in the bundle or must it always be deployed first? ...

How do I change an existing XCode target from dynamic to static?

I'm working with an existing project that produces a dynamic library (Cocoa API). I'd rather generate a static library, but if I change the [Linking|Mach-O Type] field from "Dynamic Library" to "Static Library", both the Clean Project and Build Project complain that the target has an invalid MACH_O_TYPE value of 'staticlib'. Is there ...

What is the benefit of Xcode's seemingly over-complicated control/outlet workflow?

I'm new to Objective-C, Cocoa, Xcode and Interface Builder. I've got some C background in the past, as well as a fair amount of RealBASIC experience. I'm working through Mark and LaMarche's iPhone 3 Dev book and I'm really just sort of stunned about how tedious some things are. Maybe someone can shed some light on this for me. My questi...

Show baseball stats in a table for iphone app

Hi, I want to know how to enter baseball stats manually in a table like hr, RBI AVG with tabs and all that. Is there a table that i can use for my iphone app? I want to use a navigation table and link to a table with the stats in it. ...

How to customize tableView Section View - iPhone

I know how to customize the tableViewCell. I have seen many application customizing the tableView Cell. Similarly, I want to customize TableView Section Header "Suppose - A section name should be in different font, It has different background images etc." Is it possible How? In which method Should I implement the code? ...

Snow Leopard and XCode 3.1

My Original Leopard's XCode installation works fine (for iPhone 3.0 Development) with Snow Leopard without making any changes. What are the benefits I'll get if I install XCode 3.2 that comes with the SL DVD? Is it mandatory to upgrade? ...

how to release uiview added as subview in scrollview?

i have added a UIViewController's view and a button to scrollview as subview...now how do i release all instance of UIViewController's...here is an attached image in the view every uiview has a button over it for further navigation.... now i want to release uiview's and remove buttons from the scrollview ...here is my method to add su...

AVAudioPlayer memory leak

Hi there, I'm stuck on some weird memory leak problem related to the AVAudioPlayer and I need help after trying everything that came to mind. Here is the short description of the problem - code appears right after. I initialize my player and start to play the sound track in an endless loop (and endless loop or one time play did not cha...

Which is faster? Using Quartz & CGRects vs an array UIImageViews

Just wondering weather its faster, if you have lots (~several hundred to a thousand) 2D images, to use Quartz or an array of UIImageViews. Cheers! ...

How do I run a subset of OCUnit tests in XCode

I have a suite of unit tests that I use before checking in my project. However, very often it's the case that only one of them finds some regression in the code. In these cases I'd like to only run that particular unit test while debugging the failure. I haven't found any way to do this in XCode. Is it possible? ...

Play music using Objective C?

Hey all, I want to play music in my Objective-C program. How would I do that? I'm a noob, so please go easy. It's my 2nd program in Objective-C. Thanks, Kevin ...

Upgrading project to Xcode 3.2 under Snow Leopard won't debug

Hi all, I have an Xcode project that has been upgraded to Xcode 3.2, and whilst it builds fine (and produces an executable that runs fine), when I try to debug it the debugger doesn't start. When I look in the debugging window, it says that the build was fine. When I look in the console, I get a 'Session started ', but the application...

How to delete breakpoints in XCode

Hi, I go to Breakpoints panel in XCode, in the 'Breakpoints' I click a breakpoint and click 'Delete', but it does not remove the breakpoint. And I try go to go to 'Project Breakpoints' and find the same breakpoint and click 'Delete'. But it still does not break the breakpoint. ...

How to set an Xcode attribute in CMake for a specific configuration?

I'm using CMake to generate an Xcode project, and I use set_target_properties(myproj PROPERTIES XCODE_ATTRIBUTE_WHATEVER "some value") to explicitly set a build setting. I'd like to only set it for a particular configuration, similar to using set(CMAKE_CXX_FLAGS_MYCONFIG "-O2") How can I do this? ...

Xcode's Refactor menu is always disabled

For some reason Xcode's Refactor is always disabled. I used to be able to activate it via selecting a class name and right clicking in the editor to select it. But now no matter what I do, it remains disabled. Any idea what's going on? ...

How to make XCode Run Script Build Phase run if the build breaks?

Hi, I want to be able to launch a Run Script Build Phase in XCode that does this: /usr/bin/say "Broke it." if my build fails. Not sure how to capture the build failure to prompt that though? Two reasons I guess, one "what to catch", two "the build is done so the script has already run in theory... ?" How would you do this? Thanks //...

How can you go forward/backward at the file level with Xcode 3.2?

Xcode 3.2 has implemented cursor-level history for the "Go Forward", "Go Backward" commands. Previously these worked at the file level, so you could navigate back and forth through recent files you've been editing. Now they navigate at a more fine-grained level, through the places within files where you have been editing. The downside t...