Hey guys,
Can anyone give me a head starters on this question. How would I be able to make an app that searches through your music contents that are already synced on your phone and play them. I don't want to do a scroll view, where the user just presses on the options. Instead I want the user to type the song name and if the song is f...
I downloaded urlcache.zip from http://developer.apple.com/iphone/library/samplecode/URLCache/index.html#//apple%5Fref/doc/uid/DTS40008061
I opened the project in xcode and clicked on urlcacheconection.m and started scrolling down with the arrow key and xcode crashed with <see below dashed line>.
Any assistance greatly appreciated.
Ste...
I have a Run Script phase configured for my project's target. It is run on every build. Is it possible to temporarily disable this script without removing it from the target?
...
I'm running Xcode, trying to get my app to run on my iphone. I'm getting the error message "the program being debugged is not being run."
...
Application uses 3.x SDK feature, but needs to run in 2.x devices. The solution seems to be using "weak linking", which I did, but app still fails to * compile * for iPhone 2.2.1: "Framework not found MapKit".
Compile for target "Device 3.0 - Debug" is ok, even installs on my iPod Touch running 2.2.1! Runs ok as long as I don't activate...
//---------MyAppDelegate.h
@interface MyAppDelegate : NSObject <UIApplicationDelegate, AVAudioPlayerDelegate> {
//---in some other .m file, trying to acess the device token residing in MyAppDelegate ----------
MyAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
// Results in
// warning: type 'id ' does not c...
I need to debug a command line application with Xcode...
and I need to have the debugger launch my app with 'sudo'.
How do I tell Xcode to do that?
thx->adv
...
Is there any watch window to see variable value in XCode during debugging?
Can we check value just typing variable name as in watch window?
On mouse over, I can't see value for dictionary type objects.
I see "Variables View" option but it has only first option enabled.
in "Debugger" window, I can't type variable name.
Watchpoint stops ...
Hello!
I'd like to see the content of NSObjects like properties ( arrays, Integers, floats... ). Since I'm a Flex developer I'm used to use the eclipse debugging tool. But now I'm starting with the iPhone I'm kind of lost.
For example, I just downloaded the SeismicXML application from the dev's sample code, and I put a breakpoint on th...
This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do this like so:
int main()
{
char* str = "Hej du kalleåäö";
printf("length of str: %d", strlen(str));
for (int i = 0; i < strlen(...
I have a library compiled into a .a file, linked against my application. (iphone, developing with Xcode)
Everything seems to be fine, linking seems to succeed, but when I run the program it crashes. The point of crash is at a memcmp() call in the statically linked library. The debugger shows all kind of stuff called with "dyld" in their...
I have a number of places where I need to re-use some template code. Many classes need these items
In a .h could I do something like:
#include <xxx.txt>
and place all of this code in the .txt and just have it included?
Something like a PHP include!
Does gcc allow this?
...
Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the sound that i want it to.
Now the problem is with the timer. I want the timer to start on the click on the same button, and the timer value wil...
Hi,
I'm using Xcode on OSX to develop command line C applications. I would also like to use Instruments to profile and find memory leaks.
However, I couldn't find a way to display the console when launching the application from within Instruments. I'm also unable to attach to a running command line process (it exits with an error):
He...
Hi,
i'm new to xcode / cocoa and even objective-c thus my question might be stupid. Im trying to write a program that will hash files in a folder. I looked around and found a way to load a file via a NSData object and than hash it's bytes with CC_SHA512.
If i try to hash a few more files i noticed my memory running out. Using the Run -...
My client is providing me with two precompiled libraries, blah-device.a and blah-simulator.a. How do I tell xcode to use blah-device.a in Device compilation mode and simulator in Simulator compilation mode?
My client gives me these instructions
Open the Targets group (in the Groups & Files panel), right-click the
project icon,...
Okay, I'll bite.
I've got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible.
When I am doing a project search and iterating through the results, however, the results list stays in focus and the found text remains out of focus, using a different background color. This color is extremely h...
I'd like to sell a static library for Cocoa Touch apps but want to protect it from being freely distributed. Has anyone tried this or have suggestions on a scheme(s) that I can build to handle it?
One example from the desktop world is a vendor sending a license key to you after purchasing the library. That key must be embedded in your...
I have hit the proverbial wall trying to figure out how to populate an NSImage with data returned from an asynchronous NSURLConnection in my desktop app (NOT an iPhone application!!).
Here is the situation.
I have a table that is using custom cells. In each custom cell is an NSImage which is being pulled from a web server. In order to ...
Hi, I want to create a plain BSD library in Mac OS X which provides a plan C wrapper for Objective-C bases system APIs (like the CoreLocation API).
Although I've written and gotten this to compile, it won't load from DLOpen in other programs. I used the "Cocoa library" project type, because when I used the normal "BSD Library" project t...