xcode

Can anyone point me a direction i can follow to learn how to handle audio in xcode

My real objective is to be able to use 1 audio file and create X amount of different pitches and then playing them in the app using some code to handle the timing. TIA for any helpful insight ...

uisearchbar in uitableview search result problems

hello all. i have a uitable view and a uisearchbar. i have a different nib file for each row that i click and works fine. when i use the uisearchbar to find a entry and click the row from within the search results i always have the same nib file (the first entry) displayed. any ideas? let me know if you need any of my code ...

Clicking "Run" in XCode runs my command line app, but the console windows does not appear

Well, the title pretty much sums it up, really. I've only just started toying around with XCode and stumbled upon this while coding the obligatory "Hello, World" app. When I click "Build And Run" (or just Run), my app runs, but XCode doesn't bring up the console window, so I can't, for example, see its output. If I double-click the exec...

Xcode leaks tool does not identify property leaks

Hi I have this simple code @interface chatApp4Message : NSObject { NSString* line; } @property (nonatomic, retain) NSString* line; @end @implementation chatApp4Message @synthesize line; @end As you can see, I don't release the line property. However, when running this following simple code under the xCode leaks tool, I get no indic...

How to use MPMoviePlayerViewController on iOS4(3.1.3 update)

My iPhone is a iOS4(3.1.3 update). I tryid this code. #import <UIKit/UIKit.h> @interface testViewController : UIViewController { } @end //------------------------------------------------- #import <MediaPlayer/MediaPlayer.h> #import "testViewController.h" @implementation testViewController - (void)viewDidLoad { [super viewDidLoad];...

iPhone device has taken over!

Hi, I have been developing an iPhone app for a few months now (my first app) using the 3.1.2 SDK. All of a sudden, my app started defaulting to running on the device during debug. I assumed that somehow my target settings had changed, but when I checked them, they said they were targeting the simulator, not the device. I checked all the...

Best practice on initializing your NSStrings on the iPhone

xCode's "build and analyze" complains about "s" being possible garbage. Which is the better solution? A, B, or C? NSString *s; // A NSString *s = nil; // B NSString *s = @""; // C if(x == 1) s = @"you picked 1"; if(x == 2) s = @"you picked 2"; if(x == 3) s = @"you picked 3"; ...

Xcode unable to create new "Window-based application" iphone app from template

I'm trying to create a new "Window-based Application" in Xcode and I'm getting the following message: Internal Error File: /SourceCache/DevToolsIDE/DevToolsIDE-1688/pbxinterface/Wizards.subproj/PBXWizardChooserWizard.m Line: 1365 Object: <PBXProjectWizardChooserWizard:0x200b845e0> Method: sheetDidEndWithReturnCode:fileSystemLoc...

XCode Documentation - Offline Reading

Is it possible to have the iOS and OSX documentation available for offline reading? If so, how? ...

A good XCode sample project with SQlite, tableview, starring and reordering

I'm a complete newbie to Objective-C/XCode and it's been a bit daunting so far. I wanted to get my hands dirty by building something that incorporates a few concepts. All I want to do is have a table which is populated by rows from a SQLite database. The table should have reordering capability, I want to have a starring facility, and th...

What happened to symbolicatecrash? (MIA from Xcode 3.2.3)

I installed Xcode 3.2.3 and the symbolicatecrash console utility that used to live here: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/Resources/symbolicatecrash is no longer there. Yes, yes, I know that reaching into random packages is dangerous business if you expect ...

Convert a string + a number to an onject

I am new to Obj C, but familiar with OOP. I am working on a game that uses collision detection to score points and change UIImageView properties like background color. I have a finite number of UIImageViews that are subviews of a larger view. I can manually check for collision and set the background colors of the UIImageViews accordingl...

OCUnit will not allow me to use my own data types

Hi, I am using XCode 3.2.2 to unit test some custom data types. The tests run properly without those data types, but when I use said data types, I get this error: "_OBJC_CLASS_$_classname", referenced from: (where "classname" is the, well, class name...) I have seen hints online that it could be linker related. The strange thing is, ...

Frameworks were disconnected reference from Xcode.

Hi there. I need help about iPhone development. I upgraded xcode and iphone sdk from 3.2.2 + 3 to 3.2.3 + 4. and I opened my project file wrote in 3.2.2. then Frameworks are lost (displayed red color) and Wrote "Base SDK Missing" on Xcode. where are these frameworks? I should do any settings? ...

PhoneGapLibTest linking problem - library not found for -lSystemStubs

hi all, Trying to compile PhoneGapLibTest using XCode and keep getting error message: library not found for -lSystemStubs if I add the paths mentioned below to the projects lib and include search path i.e. /Developer/SDKs/MacOSX10.5.sdk/usr/include /Developer/SDKs/MacOSX10.5.sdk/usr/lib I get thousand of errors?? Any ideas? Thanks g...

installing Opencv on mac os x 10.6 for use with Xcode 3.2.2 project

I am trying to install OpenCV on my Mac (OS X v10.6.3) for use with an Xcode (v 3.2.2) project. I have downloaded the current OpenCV tar ball from SourceForge, and am following these installation instructions: http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port (scroll down to the section called Using the OpenCV libraries in an Xc...

How come when I update my iPhone SDK all the frameworks in my project turn red (not there)?

I'm getting sick of this stuff happening. How come whenever I update my iPhone SDK all the frameworks in my project turn red as if there are not there anymore? Whats the situation? ...

menu over slider - iphone getting the x co-ordinate of UISlider Pointer when sliding

Hello ! Everyone. Let me explain. It is ok to set the max & min value for a UISlider control in iPhone. Accordingly slider will work - OK - Good. First, I will give an example of what exactly I want to implement. In iPad comes with Calendar application as a default. Open calendar, at the bottom - you can see day/week/month listing W...

Difference between writing #import<filename> in _prefix.pch and in .h or .m of a particular class?

I had imported a custom Framework in my application.If I import any class of this framework in _prefix.pch ,then changes I do in the custom framework later,are not reflected in my app.But if I do the same import in the .h of any class,the the changes are reflected? I could not understand why? ...

Debugging in Xcode: "Wait for next launch/push notification" not working.

Okay: I'm stuck! I wrote a little command-line-tool which I successfully debugged using the "Wait for next launch/push notification"-option, the other day -- worked like a charm. I updated Xcode. Now, I wanted to investigate an edge-case of said tool and therefore wrote a very short test-tool. I... set the exact same option, added b...