xcode

handleOpenURL not called using a custom url schema in iPhone OS

Hi, I have successfuly added my own url schemes to my App. The App correctly launches using the schemes. Now I want to handle the incoming data but the delegate is not called. It is an universal app and I have added the following function to both AppDelegates: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url...

Creating Unix Commands with Xcode

Hello, I'm trying to make a Terminal Unix command with XCode, and I'm having a little trouble... What I've been doing is creating a "Standard Tool" written in C in XCode, then copying the produced executable to Developer/Tools/. What am I doing wrong? Thanks for any help in advance. ...

Why might my Xcode be crashing (or at least displaying an error on launch)?

I am getting an error thrown when I launch my Xcode 3.2 all of a sudden: Uncaught Exception: * -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0] I can click through the error and Xcode seems to launch properly. I removed and reinstalled Xcode to no avail, and yet cannot find a config or perference that mig...

Purpose of CALayer?

Hi, I'm slightly used as to what the purpose of CALayer's existence is. Why not just put the properties in a UIView? Thanks. ...

iPhone "Quick Start" tutorial question.

Newbie at coca touch/xcode and the iPhone. Within the "Quick Start" tutorial, I would like to extract the StreetKey. ...

Xcode : How to add support OS 3.0 in XCode 3.2.3

Hi, Is there any way to detect the SDK prior to 3.1.3 in the latest XCode that is 3.2.3. Looking for answers. Thank You. ...

Changing icon of package created by package maker

I have created package (.pkg) file using packagemaker ver 3.0.4. Is it possible to provide custom icon to the .pkg file. Can some one help me how this can be done ? Thanks in advance. ...

what does *~ mean in glob?

What is the meaning of *~ in glob syntax? For example, in a sample .hgignore file: syntax: glob .DS_Store *.swp *~.nib what is difference between a *~.nib and *.nib ? Thanks ...

TouchXML - reading only certain elements

Hey everyone, So I have an XML file and am using TouchXML to read it. There are only some elements in the XML file that I require. So I created a class 'Contact' with properties that I wish to save from the XML file. What i've come up with so far is this: NSMutableArray *res = [[NSMutableArray alloc] init]; CXMLDocument *doc = [[[...

XCode : linking different libraries depending on architecture (cpu type)

I'm developing an iPhone app which needed voip support so i added the ARM version of pjsip libraries. But if I'm using the iPhone simulator i want to link the i386 version of the libraries. How can i do that? ...

Why is XCode Organizer console sometimes empty when I connect my iPhone

When testing my iPhone app I have found it incredibly useful to log information to the console window. I think it is amazing that I can send out an adhoc build to my co-workers and if they experience problems I am able to plug their iPhone into my mac and grab their console output. However, sometimes the console window is blank when we...

Xcode Code Sense horribly broken?

Ever since I started using Xcode, I've experienced extremely annoying problems with Code Sense. The problem is that when Code Sense kicks in for code completion, sometimes the source code text below the line I'm working on goes "crazy". If I continue typing, the problem gets worse, and after a while the source code is completely screwed ...

xcode iphone UITableViewCell with html link in cell.labeltext.text

I am reading a twitter JSON feed and displaying it in a UITableView which works fine, my problem is each cell contain a http link. How would one enable http links in a UITableViewCell? Thanks Frames ...

one picker, multiple arrays for datasources - working fine but how ?

hi guys, I have a class with 4 arrays: tab_1,tab_2,tab_3 and tab_T. I set the picker's delegate and datasource to self (which is the class containing the arrays). The picker is called when textfields begin editing. I return NO in order to prevent the keyboard from being shown. I have a method animating the picker instead. Depending on...

Defining a Class in Objective C, XCode

Hello; I am new to Objective C, and am trying to write a class that defines a complex number. The code seems fine but when I print to the console, my values for instance variables are 0. Here is the code: // // ComplexNumber.h // Mandelbrot Set // // Created by Brett on 10-06-02. // Copyright 2010 __MyCompanyName__. All rights res...

Advanced DataModel in Xcode with CoreData

Hi I have a question regarding a rather advanced DataModel which I would like to use with CoreData. Before I get into details about what I did so far, I will describe what I want to do. I have a List of Hotel Guests that stay in one Room and have Preferences. Once ready the user should select a guest and see the data and should also b...

Alternatives to Ctags/Cscope with Objective-c?

Are there any alternatives to ctags and cscope with Objective-c support. This does pertain to cocoa development, so inevitably it seems I will be using Xcode (and probably should). I was just wondering what are my Vim options. Maybe there is some type of plugin system like eclim, but for xcode? EDIT So it seems that other than upda...

Using Xcode to switch configuration profiles between development/staging/production

I have an iphone app that I want to be able to configure to configure for different serves that I have in a multistage deployment Currently I have them in three .plist templates (containing urls, API keys, etc.) that I switch between, but that is getting annoying and since XCode has the different build configurations, I was wondering if...

Problem adding data to NSMutableArray

I'm trying to add the value playerhight, among other values to NSMutableArray, but it won't let me build and I can't figure out why. #import "iGameViewController.h" @implementation iGameViewController @synthesize player; int playerheight; NSMutableArray *location = [NSMutableArray arrayWithCapacity:3]; -(IBAction)up;{ playe...

UIActionView Opens Higher than it Should

I have an Action Sheet that is called from my root view controller using the code below. That view has a Toolbar on the bottom of the view measuring 44 pixels high. The problem is when the Action Sheet opens it's not at the bottom of the view, the bottom of the Action View is about 20 or so pixels above the bottom of the view so some of ...