xcode

Xcode 3.2.3 - No SDK 3.1.3

Hello, after having installed Xcode 3.2.3 with iPhone SDK 4 (Seed) on OSX 10.6 there is no SDK 3.1.3 more available. Is there any possibility to reactivate it? BR Sven ...

I have an Xcode static library project, how do I add a test target to it so I can run it there? (Instead of in a project that links to it.)

I want to be able to test library code in the library target so I don't have to switch over to a separate project to run it. I see how to add a target, but I'm not sure how to set it up to run like the "Command Line Tool" project template does. I tried adding a new "Shell Tool" target, but I don't know how to make it run like one. What ...

Problem importing Quartz framework

I have added the Quartz framework to my project, but when I compile I get the following errors: ld: framework not found Quartz Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 ...

Custom warning in Xcode

I'm working on an API library and I'd like to add a few warnings that would appear when another developers builds the app if an optional apikey is not included. It should be buildable w/o the key (since it's optional) so I can't just add a syntax error to force a build error. I know Xcode supports TODO and FIXME but those aren't really...

get data from online once and then viewable offline

Okay, I want to have an app that takes phone numbers from an online database and displays them in a table view. When the user is not online, I want them to still be able to see the numbers they already got from the database in the table view. If the user manages to go back online, the database updates the view. My question is, is this po...

Building two executables in one project

Hi, I've a project that must produce two executables: the main application and an executable that is called by a separate process. I've created the second file in Xcode and added a second target of type Cocoa Shell Tool. I can now build the second executable but when I try to build my project normally I get an error saying there's two ...

Difference between [object variable] and object.variable in Obj-C?

I was working on a program today and hit this strange bug. I had a UIButton with an action assigned. The action was something like: -(void) someaction:(id) e { if ([e tag]==SOMETAG) { //dostuff } } What confuses me is that when I first wrote it, the if line was if (e.tag==SOMETAG) XCode refused to compile it, s...

Linking against older iPhone OS in Xcode 3.2.3

I installed the new GM iPhone sdk. When I try to compile against iOS 3.0, it claims that libraries are missing. What now? I think that I have the install DMG somewhere for 3.2.2, if that helps. ...

iPhone dev question: "No provisioned iPhone OS is connected" error, I don't know what else to try for troubleshooting....

Howdy, I am trying to compile and install my first application onto my iPhone after setting up a profile and certificate. At this point I am getting the "No provisioned iPhone OS is connected" error when I Build & Go. I am using iPhone OS 3.1.3, and Xcode 3.2.2 on 10.6.3. • I have verified that my iPhone is connected to my development...

how do I take the URL and page title from a UITableView?

Hi I have an iPhone app that shows the user a UIWebView in the first view, what I am trying to do is allow the user to save what is essentially favorites to be saved and then displayed in a table view in the second view. To do this all i need is the page URL and also the Page Title to be saved to then populate the table view. Now here i...

iPhone SDK Tableview Datasource singleton error

I basically followed apple "TheElements" sample and changed "PeriodicElements" .h & .m to my own "SortedItems" .h & .m During compile I get this error: "Undefined symbols: "_OBJC_CLASS_$_SortedItems", referenced from: __objc_classrefs__DATA@0 in SortedByNameTableDataSource.o ld: symbol(s) not found collect2: ld retur...

iphone build error that makes me want to buy a nail gun

I'm just trying to build a simple update (which I have done before) for an iphone app, but now for some reason I'm getting this error. Can anyone tell me what it means? Command/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist failed with exit code 127 sh: plutil: command not found Here are the Buil...

Simple libxml2 HTML parsing example, using Objective-c, Xcode, and HTMLparser.h

Please can somebody show me a simple example of parsing some HTML using libxml. #import <libxml2/libxml/HTMLparser.h> NSString *html = @"<ul><li><input type=\"image\" name=\"input1\" value=\"string1value\" /></li><li><input type=\"image\" name=\"input2\" value=\"string2value\" /></li></ul><span class=\"spantext\"><b>Hello World 1</b></...

ipad simulator error after distribution

Hi all, I developed a test app and I tried to use into the simulator.. all works fine! After, following the document "iPhone_developer_program_user_guide" I made the distribution version of my app (and xcode built it without problems). After this, I couldn't try the distribution 'cause I don't have iPad, but when I selected the debug typ...

GCC/XCode equivalent of _CrtCheckMemory?

When dealing with random memory overwrites, in MSVC it is possible to validate the state of the heap at various points with a call to _CrtCheckMemory, and know with at least a small level of confidence that the code up until the check was not responsible for any errors that might cause new or malloc to fail later. In XCode, whats the eq...

Xcode Simulator for iPhone 4 (960 x 640

Is there an iPhone4 simulator supporting the new RD 960x640 resolution included within the next release of the iPhone SDK / Xcode? much appreciated. Gary ...

Have different fallback language than the keys used in NSLocalizedString(@"Text aka. key",@"Description")

I use everywhere NSLocalizedString(@"Text in deutsch",@"das Textfeld Text in deutsch") I have two Localizable.strings files. One for german and one for english. What I realized now is. If you have a german iPhone, you get the german text, if you have your iPhone set to english you get the english text. But if you have lets say french, t...

What is #import and @class for and why are they in both the .h and .m files?

Why do you need to use import statements in the .h and .m files What is the difference between @class Possession and #import Possession.h ...

How to fix codesign when it says user cancelled the operation? (And I didn't)

I'm compiling an iPhone app meant to be Distributed. It's my first app so I followed the "iPhone Provisioning Profiles" instructions. Unfortunately it fails with this: CodeSign build/*_*_.app cd "/Users/videojuegos/Documents/*_*_" setenv IGNORE_CODESIGN_ALLOCATE_RADAR_7181968 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/code...

Stack Info button above UIView in Utility App

I've started creating a iPhone Utility app (main view and flip view). I want to draw some graphics in the Main view, so I dragged a UIView object onto it. This works, but I find that if I resize the UIView to fill the Main view, it covers the Info button that invokes the Flip view. Is there any way to get the Info button to appear on ...