xcode

Comparisons Windows and Mac OS X as development environment

I have been using Visual Studio (VC++) and Windows API for a long time, and quite familiar with Linux tool chains, but have no experience on Mac OS X development. I would like to hear your opinions about the pros and cons of Windows and Mac as development environment. But, as it may be subjective, I would appreciate if you could enumera...

XCode - Ruby on Rails Project Templates

Where can I find project templates for Ruby on Rails to use within projects? I am using Xcode version 3.2.2. From what I understand, Apple stopped shipping all project templates with xcode and made them available as optional downloads, yet I cannot find the templates for Ruby on Rails anywhere. Regards Mick ...

Why won't this program launch??

Hey all, I'm working through the Beginning iPhone Develoopment book and for some reason the project we're working on refuses to launch in the simulator, I think I've narrowed it down to something in the datePickerViewController.xib but heck if I know what is wrong, if I disconnect the uidatepicker outlet from the file's owner it works ...

How can I record the audio output of the iPhone? (like sounds of my app)

I want to record the sound of my iPhone-App. So like someone is playing something on a iPhone instrument and after that you can hear it. Is it possible without the micro? ...

Which macro to wrap Mac OS X specific code in C/C++

While reading various C and C++ sources, I have encountered two macros __APPLE__ and __OSX__. I found plenty of use of __OSX__ in various codes, especially those originating from *BSD systems. However, sometimes I find that testing __OSX__ only is not sufficient and I have to complete tests with __APPLE__ macro. The Porting Command Li...

Do launchDaemons keep running on iPhone Lock Screen?

Hi there. I need an answer to a simple question. Do the launchDaemons keep running even if iPhone Screen is Locked? ...

How to pass an XCode variable to the HTML file in resources folder?

Hi all! I have a UIWebView that loads a local HTML file from the resources folder. Now, this HTML file has Javascript inside it. My question is, is there a way to pass an XCode variable to the HTML file that gets loaded inside the UIWebView which I can pass to the Javascript function in the HTML. Thanks a lot for any help or suggestio...

Does Xcode Support Java program Compilation and Running ?

In XCode, I saw the template for Java but I could not get the output of my program written in one of the Java templates (Java Application). Does Xcode supports Java compilation? If it supports it, should I add any thing to my program to run? It is just a "Hello World" program. ...

Is there a way to create a subfolder in the resources folder in Xcode?

This might be an overly simple question, but I am a beginner at programming for the iPhone with Xcode. My project uses a lot of picture files for UIImageView animation arrays. I add all of the pictures into my resource file but the resources folder is getting a bit unwieldy. Is there a way to add subfolders in resources that do not ch...

Can two view controllers be delegates for one another?

Hi all, I'm learning objective-c and cocoa touch at the same time as building an app so I've got a fairly simple question (I think), sorry I don't have enough brownie points on the site to show a visual diagram of my site. But let me explain, I have the following Main ViewController ViewController A ViewController B ViewController C...

Xcode property list editor shows Mac app attributes instead of iPhone app attributes. How do I fix it?

Hi. My Xcode is configured for iPhone dev, and it worked well until yesterday. But it's property list editor currently shows me Mac app's attributes for my iPhone project which includes 'Java', "plugin" and "quicklook" related items. OK, I can input them manually, but it means something wrong to my IDE, so it does not sure it works corr...

How can I write an Automator action in bash with files and folders as arguments?

When I create a Automator action in XCode using Bash, all files and folder paths are printed to stdin. How do I get the content of those files? Whatever I try, I only get the filename in the output. If I just select "Run shell script" I can select if I want everything to stdin or as arguments. Can this be done for an XCode project to? ...

CoreLocation for OS X using iFrame Google Maps can't select "Map, Satellite, Terrain" as default

I have been modifying the code here: WhereIsMyMac to try and get a better understanding of CoreLocation for OS X. Unfortunately, I haven't been able to figure out how to modify the template HTML file to force a "Maps" view - my frame defaults to "Satellite View" Here is the relevant line: src="http://maps.google.com/maps?ie=UTF8&am...

What does program received signal: SIGKILL mean when profiling an app running on device and using the xcode profiler to detect leaks

What does program received signal: SIGKILL mean when profiling an app running on device and using the xcode profiler to detect leaks? My app broke on a line calling drawInRect on a UIImage instance top of call stack is CGGStateCreateCopy ...

iPhone App Submission Question

In my Xcode project I put all my images, audio files, ect... in the resources folder. When I opened the project folder in finder all of my "resources" are not in a resources folder instead they are just scattered in the main folder (I have a good number of files). I already submitted the binary to Apple on Friday so will they care if t...

How to make and link static library in Xcode for iPhone?

I have a static library project and an application project. I thought it should be easy to link my own library, but it was not. I cannot figure out how to link my lib into my app project. I built lib.a successfully. I added the .a file into my app project's framework folder. But I cannot access classes inside there. And the header file...

Codesign prompt doesn't pop up...

Hi, here's my issue: i've prepared everything as the tutorial said on Apple developer site. I got two certificates for my app, one of is for developmnet (testing on my iphone) and second for distribution. While first one works excellent, i cannot get the second one to work, here's the problem: - i obtained certificate for distribution, ...

error log SIGABRT how to fix it?

when i insert this code it will make an error how can i handle event without error? - (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error { switch (result) { case MFMailComposeResultCancelled: URLCacheAlertWithError(@"Result: c...

Xcode, git, and intermediate build folders

I would like two things: to be able to change branches in git, and then Run or Build in Xcode without recompiling the entire project. have git ignore intermediate build files during merge, so it won't ask me to resolve any conflicts. Putting the intermediate builds folder outside the project, or using .gitignore to ignore that folder...

When do I alloc and init objects in iPhone programming with Objective-C?

Sometimes when I program for the iPhone, I wonder when you have to allocate and initialize objects and when not to. When you are using UI controls, it seems as if you don't have to do so. Is this true and why? (Assume that they have been declared in the .h of the view controller.) Example: label1.text = @"Hello"; vs label1 = [[UILa...