xcode

How do I configure Subversion 1.5 support in XCode?

According to the release notes for the iPhone 2.2.1, SDK XCode now officially supports Subversion 1.5. I've converted my working copy to use the new 1.5 format; however, XCode now will no longer track changes. I'm guessing there is somewhere in XCode that I have to tell it to use the 1.5 format. Has anyone found it yet? ...

How do you detect memory leaks on iPhone?

I'm using the Leaks Instruments feature through Xcode to (try and) find memory leaks. I still haven't figured out how to use this program. I click Leaks in the program and see memory increasing as I do various things in the simulator. I have Extended Detail pane displayed. The only thing in Extended Detail pane that references my app i...

How do you display custom UIViews in InterfaceBuilder?

I seem to enjoy designing new UIViews and UIControls that implement their own: - (void)drawRect:(CGRect)rect; function. This work well for me, especially when composed using UIViews in Interface Builder. But composing them in Interface Builder is annoying because they just show up as boring rects with backgroundColors. Boring. It wo...

iPhone SDK - Converting project from 2.1 to 2.2.1

I just read in an online article that 2.2.1 does not support previous sdk. I wonder what that means? I just downloaded 2.2.1 and want to use updated/latest API's framework. How can i convert my project so that it uses updated/latest API's/Frameworks in version 2.2.1? Are there any special steps required OR should i just 1.) delete 2.1 a...

Preserving window position in Interface Builder

Is there a way to preserve window position in Interface Builder? Every time I reopen a nib file, the MainWindow.xib window finds its way back to the top left of the screen, behind the window containing the interface I'm laying out. Moving it back to where I had it before every time is starting to get on my nerves. Seems like there should...

How mimic delete specific row in a TableView ?

I have a list of things in a table view. When a user tap a row, I increase score. I wish provide a way to clear the score for that row. My first try is put the table in edit mode, show the delete button to that row and proceed. However, all the other rows get blocked and can't tap again the score or tap in the disclosure button. So, o...

How build a custom control in Xcode for the iPhone SDK?

I want to build a custom control to reuse in my project which consists of two UITextFields that are linked together + a label. It is starting to become repetitive across my App and smells of code duplication ;) However, I wonder what is the best aproach here. Is it best do everything by code in a controller or is posible do a visual ...

iPhone (Xcode) interface builder resources

Hi I am looking for resources (especially video) to show how to use the Xcode interface builder properly for iPhone development. For some reason it just doesn't click how everything fits together and how this should be used properly. Thanks Stephen ...

How to rename XIB/NIB files in Xcode 3?

How do I rename XIB/NIB files in Xcode? There is no "Fefactor" option, and right clicking and choosing "Rename" does not work correctly. ...

How do I add a third party Framework to iPhone project?

I am trying to use the PLDatabase framework in my iPhone app. I've added the framework to my Xcode project. However, when I run my app, it crashes with the following error: dyld: Library not loaded: @loader_path/../Frameworks/PlausibleDatabase.framework/Versions/A/PlausibleDatabase Referenced from: /Users/todd/Library/Application Supp...

Do NSShowAllViews and NSShowAllDrawing work with XCode 3, OS X 10.5.6 ?

I am trying to enable these debugging preferences (NSShowAllViews, NSShowAllDrawing) as shown here: http://developer.apple.com/technotes/tn2004/tn2124.html#SECAPPKITVIEWS using this method: http://developer.apple.com/technotes/tn2004/tn2124.html#FIGXCODEENV Are these features present in XCode 3 and OS X 10.5.6 ? ...

How do get a script to automatically run before saving a file in XCode?

I want XCode to run a particular script before any file is saved. Is there a way to do that? ...

SVN and XCode woes

I've heard repeatedly that XCode's integration with SVN is lacking, but seeing as I have personally never used it, I cannot help but wonder why. Now I'm starting a new project, and once again SCM has come up. This time though, I think I want a better idea of what exactly XCode does and doesn't do right with SVN. So, have any horror sto...

XCode: How can I make it beep after compilation ends?

The subject says it all... I simply want xcode to make a beep or any other noise once the compilation process is over. How can I do that? Thanks, Adrian ...

Additional Xcode Documentation Sets

Xcode's help system includes documentation for all the Cocoa and Carbon APIs. However, it would be nice to also have documentation for the standard C and C++ libraries, POSIX APIs, BSD system calls, etc., integrated into the same system. Are additional Xcode documentation sets available, or is there any way to integrate man pages or ot...

UITableView with cocos2d

hello, i am a learner at the area of objective c. i am trying to build an iphone app. and here i have used cocos2d. now i would like to use UITableView for showing data from XML file. Now it is my question that , is it possible to use UITableView with cocos2d and is it also possible to retrive data from XML file. ...

Relative Paths Not Working in Xcode C++

There are numerous post over the net that detail how relative paths don't work in Xcode. I do have an Xcode template that I downloaded where the relative paths DO work, however I have not been able to figure out why nor replicate it in other projects. Firstly, I am using C++ in Xcode 3.1. I am not using Objective-C, nor any Cocoa/Carbon...

iPhone How to set the top position = 0 after setStatusBarHidden:Yes ?

Dear all, I found that after setting the [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO] at viewDidLoad, then if I want to align an image to the top, I will need to set its position as .y = -20; Is there anyway to make the y coordinate of the "top position" to "0" ? or is it doomed to be -20 after hidding the ...

Xcode complier warning "assignment from distinct objective-c type"

I'm learning objective-c, working through Aaron Hillegass' book "Cocoa Programming for Mac OS X - Third Edition". I'm working in Xcode to develop some of the example code, and keep getting a compiler warning on the last line of this method: - (void) setEntryDate:(NSCalendarDate *) date { [date retain]; [entryDate release]; e...

Read Cookies Using xcode in iphone app

Hi There, My application needs to be able to read cookies stored by a page loaded in the UIWebView. I need to be able to read the cookies using xcode so that I can store some values in application settings. Does anyone know if its possible to read cookies using xcode? Your help is much appreciated. Stuck on this for ages. Tony ...