xcode

How do I create a command line frontend for a GUI Cocoa app?

I'm creating a mainly GUI Cocoa app, but I want to create a command line front end as well that prints the same data so I can display it using geektool. I'm guessing I need to create an additional command line custom executable in my Xcode project and build it alongside the GUI executable? Is there a tutorial around for how to do this? ...

Referencing AppDelegate Methods - iphone

I have an AppDelegate which has 3 views. I add all three [window addSubview:gameViewController.view]; [window addSubview:viewSettings.view]; [window addSubview:viewController.view]; [window makeKeyAndVisible]; In the app delegate, i have some methodes for swapping views by calling [window bringSubviewToFront:gameViewController.view]; ...

Project without an .xcodeproj directory, how to open?

I'm finding a few open source projects, mostly older, that lack an .xcodeproj directory hierarchy. It seems like all other crucial files are there. Curiously enough, I'm wondering how these projects are even accessed via Xcode? I'd like to compile them, break them, fix them etc. Is there a way to open these more legacy projects? Here'...

profile doesn't match application identifier

I have just created a AdHoc distribution provisioning profile for the app id 49776ZQRBG.com.gfeed.ride I have the Bundle ID in the info.plist set to this, yet this provisining profile in the project settings is greyed out and states "profile doesn't match application identifier '49776ZQRBG.com.gfeed.ride'" If I look at the profile in t...

What does the Subversion status symbol "~" mean?

I am getting a tilde symbol when I do an svn status. Here is the output of the project after editing it in XCode. svn status M build/Currency_Converter.build/Currency_Converter.pbxindex/imports.pbxbtree M build/Currency_Converter.build/Currency_Converter.pbxindex/pbxindex.header M build/Currency_Converter.build/Currency...

How can I jump from one placeholder to the next in Xcode autocompletion?

When Xcode autocompletes an method for me, it gives me blue blocks for parameters. I always go into the first, but then I click into all next ones rather than fast going there by keyboard commands. I guess that there are some good ones to know. ...

Is it possible to set up a Linux box with distcc to build my XCode projects?

I have a mac mini on which I do some iphone and other experimental development. It is hideously slow to build some of the larger projects I have tried out (like 3d engines and such). There are some support for distributed builds with distcc and I have a quad core linux box just standing idle beside it. The question is: is it possible to...

OS X gcc "installation problem"

OS X 10.5.6, Xcode 3.1 with iPhone support. After compiling some apps for iPhone device in Xcode, I've noticed that calling GCC from command line no longer works: $ gcc gcc-4.0: installation problem, cannot exec '/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//i686-apple-darwin9-gcc-4.0.1': No such file or directory Note ho...

iTunesArtwork and XCode

I'm trying to add the iTunesArtwork file to my iPhone application in order to follow the guidelines for icons/artwork for iTunes. I've added a file that matches the iTunesArtwork requirements (512x512 JPG) to my project. Once I do that, I can no longer install the application on my device. I keep getting this error: Your mobile de...

xcode gives syntax error on cpp code

I am trying to reuse Apple's Speak Here sample code in my own iPhone app. I downloaded and compiled the project with no problems, so I then added some of the files to my own application. When I try to compile my own application, the compiler gives me MeterTable.h:54: error: syntax error before 'MeterTable' The relevant code is: #inc...

Can clang be told not to analyze certain files?

I'm trying to use clang to profile a project I'm working on. The project includes a rather large static library that is included in Xcode as a dependency. I would really like clang to not analyze the dependencies' files, as it seems to make clang fail. Is this possible? I've been reading the clang documentation, and I haven't found it. ...

How to build a library for two architectures (simulator, iphoneos) in XCode

I made a little library for the IPhone that I would like to redistribute, but I cannot find how to compile it to work on both the simulator and the iphoneos. I know there is a way to build a lib.a for both architecture, but I cannot figure it out. ...

How to print and use constants with gdb (through xcode) ?

I am debugging a Cocoa application using xcode-gdb. I am at a break point and I want view the value of some Cocoa constants (ie NSControlKeyMask) and to do some test with the values in the current stackframe. Specifically I am in - (void) keyDown:(NSEvent *) e , and I have done set $mf = (int)[e modifierFlags] on the gdb prompt. Now ...

Unhide a Document Set in XCode

Hi all, I fat-fingered my XCode Doc Set in two ways: entered the wrong password/name, and it doesn't prompt for a new one (I'll solve this in a little time) accidentally hit "Hide Doc Set" when I right clicked it, trying to figure out how to reset the name / password to try to subscribe. where'd it go?! ...

iPhone SDK: Checking the ID number for each object in a UITableView and change the badge number accordingly

Hello there! I'm tryin to use some code to create a badge number for the iPhone App Icon. I can successfully do this, however the code I am using (below) is pretty bad and could easily be done better, however I do not have the logic knowledge to be able to do this. This is what it's doing... Get's the 'ID' of a user from the first me...

Does Xcode have code navigation feature?

Does Xcode have a code navigation feature? Like unix's cscope type of tool which I can enter the name of a class and it will open the file for me? Or find out the caller of a particular method of a class? Or show the type hierarchy of a class? ...

How does one properly lay out a standalone system service in Xcode?

I've recently become interested in writing some system services for OS X but since I have no application to advertise the services under I must resort to writing standalone system services. Apple's documentation on System Services is spartan as it is, but its documentation on standalone services is non-existant. What I have thus far is ...

Setting a provisioning profile from within xcodebuild when making iPhone apps.

I'm using xcodebuild to compile my iPhone app from the command line. Is there a way to pass in some sort of option to set the provisioning profile? There seems to be not very much information about xcodebuild in general. ...

what is the method to delete the custom cell from UITableView?

i have a custom cell i want to delete it when a button is clicked situated on the custom cell itself.how do i achieve this. someone help i am stuck at this from many days ...

Add Resources to an Xcode Project Recursively with Applescript

Is it possible to add a folder to an Xcode project as a group with Applescript, recursively adding everything below it as if it were dragged to the Groups & Files list? ...