xcode

Are subversion conflicts in project.pbxproj normal?

If I add files to my project, and my co-worker adds files to his project, and we both check our files in, should we expect to have conflicts? What's the best way to handle this? ...

NSRangeException Issue

Hi, I am writing a Core Data-based iPhone app and I am new to Objective-C. I have a bug that I am really struggling to nail. The iPhone simulator keeps crashing with the following error message: 2010-03-21 17:37:40.583 Patients[3689:207] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray insertOb...

Hope to remove armv6 architecture for iPad in XCode?

When building an iPad only application I get the following warning: "warning: building for deployment target '3.2' should omit the armv6 architecture." I would like to edit the Architectures setting so it only shows armv7. However, the options are coming from the following marco $(ARCHS_UNIVERSAL_IPHONE_OS). Is there a macro I should...

Nested factory methods in Objective-C

What's the best way to handle memory management with nested factory methods, such as in the following example? @interface MyClass : NSObject { int _arg; } + (MyClass *) SpecialCase1; + (MyClass *) SpecialCase2; + (MyClass *) myClassWithArg:(int)arg; - (id) initWithArg:(int)arg; @property (nonatomic, assign) int arg; @end @implem...

Xcode File Browsing doesn't open files!

Previously when I browsed source code files using Xcode's file browser (located on left side), clicking on a source file would open it in the right window. I must've accidentally changed some setting that stops this behavior -- now single clicking on any file doesn't do anything at all. I'd really like it to go back to the old behavior ...

Why is UITableViewCell text floating to top on the device?

The text lables in my UITableViewCells are getting displayed differently on the device than on the sim. How do I fix it? ...

Problems using xcode in debug mode with Core Plot

I'm having a problem compiling an application which uses Core-Plot in debug mode. It works absolutely fine compiling in release mode, but when I compile in debug mode I get an error that the header file for Core-Plot can't be found. Any idea which of the many settings in x-cide might be causing this problem? ...

How to go to the app store (from within app) programmatically?

After clicking on a UIView I want to take the user of my app OUT of my app and to another app on the app store. How do i do it? ...

How to control the color of a UIWebView (before contents load)?

I am trying to have a BLACK colored UIWebView before its contents load. In IB, i tried both making the background color of the UIWebView black, as well as, making it have a transparent background and have its parent view's background be black. Both don't work. When my UIWebView loads the background of it is white. How can I fix this? *I...

How to add a Tab Bar to an existing view controller, without XIB

Hi, I'm trying to avoid using Interface Builder as much as possible. At the moment I have the view controller created via code and change views via code as well. I now need one of the steps to send the app into a new view with a tab bar, that will allow me to change views as well. Ideally, what I'd do is tell the current view control...

Serious Application Error

I have a TableView controller class that uses a fetched results controller to display a list of 'patient' entities taken from a Core Data model. The sections of this table are taken from a patient attribute called 'location'. Here is the sort descriptor for the fetch request: NSSortDescriptor *locationDescriptor = [[NSSortDescriptor all...

Tableview Dominates UI in Interface Builder

I started my iPhone application as a navigation-based app which has served me well until now. In the nib for my TableViewController, I see the TableView (with its example values of California cities) but I'm able to drop any other UI elements on it (for example an UILabel). I can add a UIWindow which gives me a separate window to add st...

Turn off or fix Bounce Zoom warning from iPhone XIB compilation

This has been annoying me for a while in several XCode projects. I really don't like to have compiler warnings when I build. When I build my current project, I get the following warning from a bunch of XIB files: /.../CaseInformationView.xib:3:0 UIScrollView's 'Bounce Zoom' option will be ignored on iPhone OS versions prior to 2.1. ...

Xcode -> Build starting with a specific class

When I build with Xcode (I am porting a large project with tons of errors at this point), is there a way to have it start with the CPP file that contains my main class (I obviously know this file) so I can correct errors there first? I mean we have about 400,000 errors moving from CW to Xcode. ...

cstring replacement on OS X?

I have old code that uses size_t which IIRC comes from cstring.h. On OS X, I either dont know how to find/use this or it is not available. What would I replace it with? ...

Code Generation(based on templates) for Cocoa

Hi, I have written a library for iPhone which is based upon some object models (whose definitions I get via XML). Now I have one implementation for a sample model ready but to make the code library generic I want to write an application where I can templatize the code and provide placeholders for data model specific points. Is there an...

How to create table view?

Hello, I want to create a table with custom cell and the cell should draw dyanamicaly when we add the data data to the table. ...

Download image from url

Hi , I am trying to download the image from the url http://a3.twimg.com/profile_images/414797877/05052008321_bigger.jpg I am using the following code, but image is not saved. I want to know what i m doing wrong. NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://a3.twimg.com/profile_images/414797877/050...

App Store submission problem: A pre-release beta version of the SDK was used to build the application

I upload my app to app store, I already build my apps using device - 3.1 , which should be the a release version of app store. How can I avoid this warning? thz.... ...

How to upload contents of a file to a UITextView?

Hello! I have about twenty UITextViews and corresponding .txt files. What I want is to make each UITextView take the contents of the corresponding file and display it. Moreover, the text is formatted and it contains some formulas (copy/pasted from Grapher). I've heard about displaying formatted text in UIWebView, but I haven't found a c...