xcode

What can be causing the problem that I can't make a screenshot from my iPhone app in the Organizer window?

For some reason, when I press "Capture" while my device is connected and running the app (launched via Build & Run in Xcode), nothing happens. Never get a screenshot. iPhone OS 3.0. What can be the problem. ...

XCode Developer Documentation crashes after clicking any link on the startup screen

I just installed XCode 3.2.1. When I open the Developer Documentation and click any link on the startup screen, XCode crashes. Has anyone run into this problem? Also hints as to how to debug would be excellent -- I've only been using XCode for a week. I can still get into the documentation if I open some code and then right-click a s...

What does this error mean? malloc: *** error for object 0x103f000: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug

What does that mean? Getting this in the console during usage of my app in debug mode: malloc: * error for object 0x103f000: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Does that mean I'm over-releasing something? ...

UIView transitions present modal view at the bottom

I need to display a UIView/UIViewController when the user taps a button and the modal view should appear just like how the key board appears from the bottom bar when you edit text in a UITextField. Using the following code, I get to show it as a pop up. [self presentModalViewController:child animated:YES]; How to make it appear like ...

Changing the .ipa file artwork of compiled iPhone application

Hello ! Everyone. Just do following steps & you will understand what problem I am facing right now. Create a new project from template. File / New Project - Navigation based application. Create any 32 x 32 image (.png) from any image editor & name it as icon.png Drag that file to your applications resources. Compile & run your project...

iPhone executable file...

how can i create a executable file to iphone? i have written my code in objective c using xcode i want to create a application that must run on any iphone.. i want to go by a legal way with no jail breaking. please any body help.. ...

OSX/Darwin unresolved symbols when linking functions from <math.h>

I'm in the process of porting a large'ish (~1M LOC) project from a Window/Visual Studio environment to other platforms, the first of which happens to be Mac OS X. Originally the project was configured as Visual Studio solutions and projects, but now I'm using (the excellent) Premake (http://industriousone.com/premake) to generate proje...

In the XCode debugger, is it possible to do "run to current line"?

In XCode, there doesn't seem to be an obvious way to do this. Visual Studio's debugger provides a keyboard shortcut which sets a temporary breakpoint on the line selected in the code window, runs the debugger to that point, and then removes the breakpoint. In XCode, it seems that you have to manually set and remove the breakpoint to ac...

Load data from csv file (iphone SDk)

Does anyone know how to load data from csv file? For the code example, CPTestAppScatterPlotController.m that I downloaded from core-plot Google website, a line graph can be plotted based on randomly generated initial data x, y. // Add some initial data SMutableArray *contentArray = [NSMutableArray arrayWithCapacity:100]; NSUInteger ...

Xcode Objective-c warnings "creating selector for nonexistent method" with OCUnit (SenTestingKit)

I started getting getting warnings like the following in XCode when trying to write some unit tests with OCUnit (SenTestingKit). warning: creating selector for nonexistent method 'myMethodName1:' warning: creating selector for nonexistent method 'myMethodName2:' ... warning: creating selector for nonexistent method 'release' warning: c...

Running Xcode Applications without installing Xcode

I know nothing about Xcode, except it's a Developer interface from Apple that actually comes on OSX CD and it's used to create iPhone apps as well. I also know it have a Applications folder, filled with little utilities, that are indeed quite useful. I tried grabbing one of them and running, without installing Xcode but it doesn't work....

Do "beta" apps installed on iPod expire when their provisioning certificate does?

I have installed an app on my iPod touch. Will this app expire when the provisioning certificate does? EDIT: I am the developer in this case. I installed it using XCode. I used a development provisioning profile not a distribution one. Does this change anything? ...

SOAP Messages on iPhone

Hello everyone !! I have to use several SOAP messages to get data from a web service. I got some examples how to do that but they all have the XML (http://icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/) // ---- LOGIN ----- NSString *soapMessage = [NSString stringWithFormat: ...

Develop iPhone application remotely?

4 java developers are new to iPod Touch/iPhone app development. They have an idea for an app. They have never used Xcode or Macs before. Instead of spending money for a new iMac or Mac Mini for each of them, my boss would like to sell them a $999 Apple server, hosted at a facility connected a single T1 line, and have all 4 people work...

Can I create a custom plist structure definition?

When editing plist files in Xcode, it can detect the type of plist and show human-readable strings to make it more easy to edit the file. The Info.plist, for example. Thanks to This question, I found the (or a) place where it stores that structure definition, as InfoPlistStructDefs.xcodeplugin. If I put my own file in there, however, ...

Save UITextView content in NSString.

Hi, I'm trying to save the contents of an UITextView into a NSString which I will somehow persist later. The problem is that the UITextView "text" property doesn't save all the rows in the textView (after touching "return"). I tried print the TextView object and the textView.text, and they're different. Does anybody know how (after edi...

Migrating to MonoTouch from Xcode - iPhone

We're migrating our dev shop away from XCode to MonoTouch. In Objective-C, the [super] is the same as a call to base in C#? ...

How to link Interface Builder views

I'm trying to figure out how to link all the views I've made in interface builder with a navigation controller but I'm finding the concept a little tricky to grasp. All the example code I have looked at shows how to do this with arrays that store all your controllers and i'm finding it difficult to adapt to my project as my views have b...

Frustrated with Objective-c code...

Well, I've started with iPod/iPhone programming using Head First iPhone Development (O'reilly) and I'm typing code out of the book. There are two problems, one is programming related and the other is not. I don't understand the format of objective-c methods. I'm getting an few errors now, based on source code from the book. Which lead...

Xcode acting strange

I am typing code from Head First iPhone Development (O'reilly) and Xcode will build and run fine once and then, without any modification to the code, the second build will fail. Why?(I'm using command+R) EDIT: the first error was something similar to "can not take an object as an argument." ...