xcode

Why does my iphone simulator's apps keep crashing?

Whenever i run my applications on my simulator it crashes This has never happened before.. any thoughts? ...

Opening Files - Cocoa

How would I be able to open files from my application? For example, they type in the directory in a textfield called "inputBox" and they press the button open, to open the file. Thanks Kevin ...

Create Unique String Iphone SDK 3.0

Hi, I wanted to create an unique string with length not more than 15 characters in objective C (or with the help of Iphone SDK 3.0). I need this for mysql table. I know mysql auto increment will do for primary key but I really need to send the unique key from Iphone Itself.Every record in my table had to have an unique key. The Unique...

Xcode iPhone app package missing files

I'm struggling to figure out what exactly it is that decides which files go into the .app-package when compiling an application in Xcode. I've noticed that most image files go there automatically, while others like yaml-files or psd don't, and I cant find anywhere to set this. So, how do you do this? ...

How to import JSON framework?

I've downloaded the JSON framework DMG from http://code.google.com/p/json-framework/downloads/list. I followed Option 3 here: http://code.google.com/p/json-framework/wiki/InstallationInstructions. For the copy files build phase, I set path to ~/Library/Frameworks/JSON.framework. Buid failed. I then tried setting it to my project root....

When you are using Xcode to make an iPhone app, how do you change the app's icon?

When you are using Xcode to make an iPhone app, how do you change the app's icon? Right now my icon for my app is just plain white. ...

When you are making an iPhone app using Xcode, how to you get a keyboard to work?

I have a editable text box and when I click on it I get a keyboard. But, it won't let me close out of the keyboard. When I go into the properties of the editable text object ( the Text View object ) and make the return button "Done" it still won't let me exit out. ...

How to organize unit testing of a library project in Xcode?

I'm not yet a fan of integrated development environments, but I'm trying to overcome my prejudices and learn Xcode. (Eclipse/CDT is next; I couldn't get that to work for me either when I tried last year, but that's a separate issue.) I am writing some new code in a new project that will become (part of) a small library. I want to unit...

How to remove NSString Related Memory Leaks?

in my application this method shows memory leak how do i remove leak? -(void)getOneQuestion:(int)flashcardId categoryID:(int)categoryId { flashCardText = [[NSString alloc] init]; flashCardAnswer=[[NSString alloc] init]; //NSLog(@"%s %d %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, __FUNCTION__); sqlite3 *MyDatabase;...

XCode, iPhone, WebKit Framework - What am I missing?

Hi all, I'm very new to XCode so please excuse my ignorance. I've spent a day now trying to figure out what I'm doing wrong, following several tutorials. I've got a iPhone/Window project setup in XCode. I've got a UITabBar and a UIWebView, when a tab is selected the UIWebView navigates to a particular URL and everything is working great...

Interface builder segmented controls?

I'm building a toolbar that I want to look at least somewhat like Preview's. I want to create the Previous/Next buttons. The way I THINK it's done is with a segmented control, each has an image in the control. The problem is that I can't figure out how to get the labels underneath. I can get ONE label centered under the whole thing, but ...

Want to share a MGTwitterEngine iPhone Xcode skeleton project?

Anyone want to share an Xcode project that has MGTwitterEngine in it? Mine won't compile. Are there certain project settings to set? I just made a stock tab bar app for iPhone and added the MGTwitterEngine files. Tons of compiler errors. What am I missing? ...

Objective C Leaks when releasing objects with UITableViewCell

I am running the following code in tableView:cellForRowAtIndexPath: File *file = [[File alloc] init]; file = [self.fileList objectAtIndex:row]; UIImage* theImage = file.fileIconImage; cell.imageView.image = theImage; cell.textLabel.text = file.fileName; cell.detailTextLabel.text = file.fileModificationDate; cell.accessoryType = UITable...

how can I reverse the for( ) loop in xcode?

I'm trying to reverse a for loop in xcode. for (enemyBullet *b in bullets) { } can someone help ? thanks ...

Is there a simple way to combine a text and icon in an NSCell in Cocoa?

Hi, I'm trying to create a very simple selection list widget based on NSOutlineView. However, I'm having a hard time figuring out how to display an icon and a label right next to it, which is really the expected behavior in all the mainstream implementations of that kind of widget out there (iTunes, mail, Finder,...). So far I am just ...

How do I link my executable to my test bundle when debugging test using otest?

I'm using kind of a hybrid of Chris Hanson's excellent Xcode unit testing guide. My program is a (command-line) application (which precludes using the executable itself to run the tests), but I need to be able to debug my unit tests. So what I have is as follows: Create test bundle and tests. Create new test target, set bundle loader ...

TabBar controller and Navigation Controller - who is the manager ?

I would like to have a view (Hierarchy structure) under Navigation Controller (the top blue navigation bar) that has a TabBar (the black one in the bottom part) to show additional views (each for tab) at the same level. If you select one of theese views (black tab bar) you should always have the TabBar visible to jump to another view ...

Debugging Code-Signing errors

How can one debug errors related to code-signing and missing certificates? Can I do the process from command line? In XCode under 'Organizer > Provisioning Profiles', I get 'A valid signing identity matching this profile could not be found in your keychain'. How can I debug this problem? ...

Not finding GCC Warnings section in my Build settings in Xcode

I want to set some warning settings for my GCC compiler in Xcode (using GCC4.2), but I am unable to find a section in my Xcode build settings which lists the Warnings settings. Any idea? For example, I am not seeing the screeshot posted in the answer for this post: http://stackoverflow.com/questions/711650/xcode-and-iphone-compiler-war...

How do I get animated series into my iPhone app?

I was trying to put a GIF into my iphone app, but it just showed the first frame. I read that you have to put this coding into my app with a UIimageView. UIImage *blur5 = [UIImage imageNamed:@"Picture 12.jpg"]; UIImage *blur6 = [UIImage imageNamed:@"Picture 13.jpg"]; self.imageView.animationImages = [[NSArray alloc] initWithObjects:blu...