xcode

Calling methods from Xcode Debugger ?

Hello, what's the correct way to call a method from the Xcode debugger command line ? For example if I'm inside the sort: method of my class A (using the debugger), how can I call debugSort: method that belongs to class A too ? ( My code is Objective-C btw ) ...

Cocoa Xcode - how to pass a variable to a function

I'm trying to figure out how to pass a variable (in my case hostname) to a function i created from a programatically inserted "menu item". #function -(void)goToTerminal:(NSString *)hostname { NSString *s = [NSString stringWithFormat:@"tell application \"Terminal\" to do script \"ssh root@%@\"", hostname]; NSAppleScript *as = [[...

Xcode: Get rid of forward class warning

In Xcode, I have a forward class declared so as to avoid a circular import e.g. @class MyClass; And then I do a method call on that class e.g. [MyClass myMethod]; But I get a forward class warning e.g. warning: receiver 'MyClass' is a forward class and corresponding @interface may not exist How can I hide those across my ...

Xcode Local SVN

As I get into more serious project development in Xcode I decided to setup a local SVN repo. It seemed surprisingly easy and now I'm checking in and out files within XCode. Two quick questions. After adding a few files and commit some other changes, a 'M' has appeared at the top level of the Xcode "Groups & Files" column. I assume 'M' ...

combining live recording audio in another audio file iphone sdk?

Does someone knows how we can combine our current recording into another background playing music? I need some sample code for this. I want to create something like karaoke application in which we can record our voice over an instrumental music. ...

Running in the Terminal a build made in XCode, how?

Hi, Im creating a project in Xcode using OpenCV as a framework. It works great with the Build&Run option from Xcode, but now I need to run it in the Terminal and it gives me this error: dyld: Library not loaded: @executable_path/../Frameworks/OpenCV.framework/Versions/A/OpenCV Referenced from: /Users/Victor/Documents/PFC/src/opencv/blo...

How do I install iPhone2.0 SDK on snow leopard?

The snow leopard xcode only installs 3.1, 3.0, and 2.2.1. I need to install 2.0 to use as the base SDK for a particular app. I see the iPhoneSDK2_0.pkg in the Packages directory of the install image, but there is no option to install it... ...

How can I make building an Xcode target depend on a shell script?

I have a shell script that runs as part of a Run Script phase in my targets that conditionally copies some files into the product. If I modify the shell script then rebuild, the script is not run because the target does not know that there is a dependency there. How can I add a dependency so that modifications to the shell script cause ...

Tracking down the version number in OSX/xcode

I have a C/C++ program which is a Firefox plugin. I'm trying to find the version number resource. In my plist I have: Bundle versions string, short set to 5.09b and bundle version to 1.0 In my .rsrc file (yes, I'm still using rsrc files, it's not my fault.) my vers resource has a short string of 4.70 When I compile, the version on the...

display text with many clickable URLs

Hi, I'm using custom NSCell in NSTableView similar to: http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/ I wish to display text with many clickable URL. can any body throw me in tight direction? I was trying to do something like: http://snippets.aktagon.com/snippets/358-How-to-make-a-clickable-link-inside-a-NSTextF...

Xcode Error "Couldn’t load the next page."

It's really not my day, I was about to create a new class in Xcode (Version 3.1.4) so I went to (right click) Add > New File... selected Objective-C Class and i got the message "Couldn’t load the next page.". Anyone? Thanks in advance... ...

Preserving data while expanding/merging Core Data models

Two separate but related questions regarding the use of Core Data: 1) I add an entity/attribute/relationship to my Core Data model in Xcode. Is there a way to have it recognize the information in the existing storedata file and augment it, instead of simply saying that it is incompatible with the existing model? For example, if I have...

How do I get 'iPhone Device 2.2.1' listed as one of my active SDKs in xcode?

I just installed xcode on a snow leopard machine. I am wanting to compile and iPhone app with the 2.2.1 SDK. Under Project > Edit Project Settings I have the option for the base SDK to be "iPhone Device 2.2.1" but I'm not getting that setting as an option for my Active SDK... What do I need to do so I can get iPhone Device 2.2.1 listed...

Suggestions on how to organize Core Data visual layout?

Core Data is pretty amazing, and I've really enjoyed using the visual layout Xcode provides for it to organize things and get a quick sample of what data I've placed where. At times I've started to wonder if I'm making the best use of it, however, as after a while there tends to be such a mass of arrows that it becomes difficult to tell...

Run Xcode tools from the Terminal window

This is something really simple, but I can't seem to find the answer anywhere, and I'm new to both Mac and UNIX, which doesn't help. I've installed Xcode on my mac, along with the iPhone SDK 3.2. I'm trying to run Xcode command utilities that came with the SDK from the unix terminal, but I don't know how to update the paths so that the...

What is the best "how to" site to learn how to program for iPhone?

What is the best "how to" site to learn how to program for iPhone? ...

expected specific-qualifier-list before 'function' and expected '=', ',', ';', 'asm' or '__attribute__' before 'function'

Hello, I am programming in Objective-C but I would like to write a c function to increase the performance. I have written the code below this post but the compile keeps coming back with the following error: error: expected specific-qualifier-list before 'bool' error: expected '=', ',', ';', 'asm' or 'attribute' before 'addToBo...

EXC_BAD_ACCESS on very simple Objective-C program (Snow Leopard)

I'm following through one of the very early examples in Learning Objective-C on the Mac. My code is almost exactly the same as the code in the book (a couple spaces and trivial parentheses may differ). It looks like this: #import <Foundation/Foundation.h> BOOL areIntsDifferent (int thing1, int thing2) { if (thing1 == thing2) { ...

How to increase picker view ( transformed pickerview ) width ?

Hi all, I am trying to scroll the picker view horizontally and this is my code. in viewDidLoad I did this, CGRect frame = horizontalPickerView.frame; frame.size.width = 50; frame.size.height = 216; frame.origin.x=90; frame.origin.y = 200; horizontalPickerView.frame = fra...

Dragging 1 of 52 cards in UIView. Which is a better method?

Hi people! Currently I have 52 cards UIImageViews in IB UIView. And my objective is to drag 1 of this 52 cards into a Square, and if the the card is dropped into the Square, it will stay there. Otherwise, it will snap back it's original position. MY question is which is a better method? Creating a custom class NSObject and changing e...