xcode

Is an iPhone SDK patch available, or do I need to download the entire tool set?

I've looked around Apple's site, and searched Google, but I can't find anything. I was wanting to patch the iPhone SDK to version 3.1.2 so I can deploy to my device again. I see the download for the iPhone SDK/Xcode bundle, but I was wondering if there was a patch that wasn't 2.7gb. Thanks ...

Declaration with no type...

I am confused. I do this: #include <vector> // List iteration typedef vector<registeredObject>::iterator iterator; typedef vector<registeredObject>::const_iterator const_iterator; vector<registeredObject>::iterator begin(void); vector<registeredObject>::const_iterator begin(void) const; vector<registeredObject>::iterator end(void); ve...

Memory leak log message while *compiling* with Xcode for the iPhone

When I compile my iPhone project (in the command line), the log output looks like: 2009-11-05 22:19:57.494 xcodebuild[51128:613] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' === BUILDING NATIVE TARGET Foo OF PROJECT foo WITH THE DEFAULT CONFIGU...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have a manifest file listing what goes in, which limits the copy. We have our own Python script which does the copy, refreshing only the files...

Why does instantiating a UIFont in an iphone unit test cause a crash?

I'm trying to unit test some iphone code that instantiates fonts. I've narrowed it down to the following crashing unit test: #import "test.h" #import <UIKit/UIKit.h> @implementation test - (void)testFonts { [UIFont systemFontOfSize:12]; } @end This crashes with the error: Test Case '-[test testFonts]' started. /Developer/Tools...

Mac OS X port crashes in pthread_setspecific in glibstdc++ vsnprintf - how to troubleshoot?

I'm testing a Mac OS X port of my multithreaded server. It starts up, but it dies in vsnprintf soon after the first client request is taken by a worker thread. It seems that vsnprintf is trying to manipulate some thread local memory with pthread_setspecific. This dereferences a bad pointer. Then, gdb traps a dlopen call, gets an error,...

Xcode beginner (from Eclipse to Xcode)

I want to learn Xcode in order to use its Obj-C, C, Java etc. project development facilities. I'm trying to start from the tasks I've done easily in Eclipse. For instance: In Eclipse I used to create a new project and add a .java file with a main() whenever I wanted to test a snippet or a short algorithm that writes on standart output or...

XCode: Possible to auto-create stubs for methods required by Protocol interface?

Coming from an Eclipse / Java background, one of my favorite features is the ability to quickly stub out all the methods required by an interface. In Eclipse, I can choose 'Override / implement' from the source menu to generate stub methods for any method of the Interface. I'd like to do the same thing in Objective-C. For instance, if...

iPhone plist file versions... Adding keys sometimes does not work.

I created an iPhone project using the Core Data template. Now when I try to change my plist file to "Status bar is initially hidden = YES" I can't find that key in my options. Instead I find a lot of keys that are relevant to Core Data, keys that I've never seen before. Anyway, I add the key "Status bar is initially hidden" myself and s...

ERROR: iPhone Private Frameworks "No such file or directory"

I have added Private Frameworks To my project. When I build in DEVICE | RELEASE everything works fine and I am able to ldid -S the application and it successfully launches on my device. However, when trying to BUILD AND GO in Simulator, I get the error "No such file or directory" as indicated below: (I also get the error twice which is ...

Replace Xcode's Navigation template UITableViewController with a UIViewController and UITableView

Is there any simple way to replace a UITableViewController from Xcode's "Navigation based application" with Core Data with a UIViewController containing a UITableView? I'm looking to add things that the normal UITableViewController can't have, so I replaced it with a UIViewController, but my problem is that whenever I do replace the UIV...

Starting with Liferay and a bit overwhelmed with how to begin

Hello I would like to start developing a lifeRay theme and am a little bit lost! I am a Mac user and i have installed liferay and also Xcode but i am not clear how to begin. I have downloaded the SDK for liferay but i do not understand how to install it or use it for that matter, so questions: Is Xcode an appropriate development envir...

XCode open two editor windows with same file

Is it possible to open the same file in two separate windows in XCode. I can open a file in one window and the same file in the main xcode editor window, but I wanted two separate fulltime editor windows. ...

How do I check if a WebView is loading a specific page?

Hi guys! I want check if my WebView is loading a specific html page locally (for example index2.html). Is that possible? Thanks!! ...

Unexpected results using istringstream for string to double conversion in C++

I'm currently trying to take a string ("0.1") and convert it to a double using C++ in Xcode on 10.6 with gcc4.2. I'm using a function I pinched from another question, but when I try to use the function, my input according to gdb is (string)"0.1", but my output is (double)2.1220023981051542e-314. Here is my snippet copied straight out t...

XCode Target Phase Python Script

Hi everybody: I am trying to add a Python script to into my project to obtain the build and marketing numbers directly from Git. I have created a new target phase and that runs a script as explained in: http://yeahrightkeller.com/2008/10/19/xcode-run-script-build-phase-tip/ And I have written a Python script that parses the program In...

Giving Command line arguments in Xcode in C program

I am solving my C assignment in Xcode and in that program i have to give command line arguments when running the program and for this i have to user terminal like this: ./a.out myfirstCommand mySecondCommand I was wondering if it possible to give these kind of commands within xcode instead of going to terminal. Thanks ...

Where can I find RSS feeds for Xcode Documentation?

Occasionally I like to work completely disconnected from a network. In those cases it's really nice to have complete sets of documentation on my Mac. Xcode supports subscribing to feeds of documentation. I've subscribed to the sets that I'm interested in but there's a problem: It doesn't appear that the lists are up to date. I'd like...

how to run .java file or execute a java application in iphone simulator?

I have an application made in java.I have .jar and also the complete source of the project.I want to use it's classes in xcode means i want to use function in objective-c without converting them.Or is there a way to execute the whole app in iphone simulator or device.please tell me step by step.I have SDK 3.0 and xcode 3.1.4 ...

How to change time and timezone in iPhone simulator?

How do I change time and time zone in the iPhone simulator? ...