xcode

Auto completion in xcode

In XCode 3.2.2 completion works whenever it chooses to. One time it will, one time it won't. Is there some flag or add-on to increase the auto-completion success rate ??? Is there maybe a better code editor that can link to xcode in a good manner which has better coding capabilities then XCode ? Thanks ...

Xcode - Automatic Scroll

Hi All, I'm currently developing an Iphone - App which requires a UITableView to scroll automatically through its cells without requiring the User to make it happen. (The user can if they want) Is there a way you can access the scroll function and give it a rate of scroll. i.e. 5 pixels a second or so. So that the UITableView can slo...

capture video of iphone4 in objective c using xcode

Good Day! i would like to know some tutorial or link or any help regarding how to capture video with sound using xcode 3.2.3. Any help in this regard is appreciated Regards ...

Does any body has simple application on ASIHttpRequest.

Hi, Does anybody has a simple and easy understandable application on ASIHtttpRequest. ...

XCODE iPhone Error NSInvalidArgumentException

Hello. I do not understand what is this error. i tried some stuffs, i looked over, but nothing helped me. here is the code of the error : 2010-08-13 14:37:37.587 iPilulier[6520:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.' ... ...

how to get index of a item in a array

i am having array called stored and i want to access thier indexes so that i can select them individually to do my operations... if i want to print thier indexes what should i do?.... ...

Where should I copy the files for programming languages and highlighting definitions?

I found additional files that allow to use new programming languages in XCode, and to highlight the code written in such programming languages. Where should I install those files? I do remember that there is a particular directory where such files (and templates) should be copied, but I keep to forget which directory is. ...

EXC_BAD_ACCESS with iPhone SDK UINavigationController

Okay so I am trying to use a simple UINavigationController with iPhone SDK in Xcode and it works all well when pushing but if go past 2 pushes and try to pop the view controllers I keep getting the error: EXC_BAD_ACCESS I know what it means but how the heck do I fix it? Here is my code... (Assume the MainViewController has a button tha...

how to concatenate values to the string ..

i want to cancatenate strings with comma as a separator and result must be stored in string... comma=@","; for(i=0;i<[resources count];i++) { Record *aRecord = [resources objectAtIndex:i]; temp=aRecord.programID; if(i==0) pid=temp; else //i am using this one to cancatenate but is not working why? pi...

CorePlot iPhone error : CorePlot-CocoaTouch.h: no such file or directory

Hi everyone. I'm trying to walk someone through adding CorePlot to their iPhone app. I have it working on my computer, but he keeps getting the CorePlot-CocoaTouch.h: no such file or directory error. I get the same error if I mess up the "header search paths" in the build settings. Otherwise, I can build it just fine. The only d...

Class Methods Used Many Times Cause Leaks?

Let's say I'm developing a game. I run the following class method thousands of times: NSBundle *bundle=[NSBundle mainBundle]; I do not create an autorelease pool and release the objects that call the above class method all the time. I create an object, it calls the above class method, I release it, and on, and on, thousands of times. ...

Is there compile warnings or errors for deprecated code in XCode for iOS4 projects by default?

Hi Everyone, I took over an iPhone project recently that was developed prior iOS4. I'm wondering if XCode would prompt warnings or errors on compile. It currently succeeds with "No issues" when built so is it safe to assert that it contains no deprecated code? Or is there a setting to be set on XCode to warn on compile for deprecated co...

Setting Up OpenGL ES 2.0 Textures

Hi everyone, I'm working on an iPhone project in Xcode 3.2.4 for which I'd like to display textures using OpenGL ES 2.0. I don't have much previous experience working with OpenGL, but so far it doesn't seem too awful. So far I've mainly been referring to The OpenGL ES 2.0 Programming Guide (gold book). Right now I've got a project base...

Load music files on my iphone application

Hello all this is my first post here i have been working in an iphone application it sound like a small music instrument i've used this code to load my music notes : // get the path of the sound file NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"do" ofType:@"mp3"]; ...

Add views inside Iphone application

Hey all i've tried to add an other view it work properly but it look like a tableview I want it just like the first one how can i change the view to be like what I want not tableview btw this is my flip button code : - (IBAction)flip:sender{ // create a new SecondViewController SecondViewController *playback = [[SecondView...

Difference between running Iphone app through Xcode and running it through the Iphone

Hi, I'm having some strange behaviour ocurring when I try to run my Iphone app without using Xcode. If I run it by choosing Build & Run in Xcode it runs just fine, but if I do it by disconnecting the USB cable and tapping on the app on the Iphone, it crashes, yielding an unhelpful crash log. Is there any difference between these 2 scena...

Memory Management Autorelease vs. Alloc Question

3 correlated questions: 1.Do the code snippets below provide the very same results in terms of memory? NSBundle *bundle=[[NSBundle alloc] init]; [bundle release]; bundle=nil; and NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init]; NSBundle *bundle=[NSBundle mainBundle]; [pool drain]; pool=nil; bundle=nil; 2.Why in NSBundle...

NSAutoreleasePool question

I drained an autorelease pool. The warning *** attempt to pop an unknown autorelease pool means the autorelease pool was created and drained in different methods - that's fine. But does it mean such pool is NOT being drained? Is there a solution? ...

How do I add a shared library in Xcode?

Let's suppose that I enter Xcode, and select File>New Project...>Cocoa Application. I'll call this new project StupidTest. Now, once the project window opens up, I can select Build>Build and Run, and the project will build and run, creating a nice blank window. Now, lets suppose that I have a library, libStupid.so, or libStupid.dylib,...

how to request url to connect

how to request url to execute or connect to server .. what i was using not working.. NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@%@%@%@%@%@%@%@%@",[ConfigDB valueForKey:@"mailURL"], @"?ownerID=", [ConfigDB ownerID], @"&userid=",[ConfigDB userID],@"&pID=",pid,@"&emailAddress=",emailTxtField.text,[ConfigDB valueForK...