xcode

How to get .app file of a xcode application

Hi i have created a xcode project. Now i want to give .app file to my friend to use that application. From where i get this file. How to install this .app file in his Applications folder using installer package? ...

Profiling C++ with Xcode

Hi, is it possible to profile C++ apps with Xcode so one gets; memory leaks like with valgrind possible errors before running the program Thanks, I am very new to mac and xcode Where can one find a good tutorial for this? ...

Generating a computer-specific UUID in Xcode

How do I generate a UUID that will uniquely identify a computer using Xcode / Objective-C? Windows has UuidCreateSequential(), what can I use on a Mac? ...

Missing c.h in Xcode?

Simple question really.. I'm just starting out programming with Xcode and I'm creating a simple ANSI C program and the Xcode book I'm reading says to include c.h because it defines true and false for you among other things. I don't have c.h though and I'm wondering if it's a big deal or not. How can I solve this problem? ...

Error building release target with Growl framework included

I just addred Growl integration to an Xcode application. The source compiles and runs correctly under the Debug target while testing. When I try to build the Release target however, I get the following error and I'm not sure why, or whoe to resolve it. Building target “EchowavesNotifier” of project “EchowavesNotifier” with configura...

PhoneGap Build errors

Hi, I am new to PhoneGap and got these errors when I compile the bundled PhoneGap.xcodeproject I am using osx 10.6.2 and xcode 3.1.3 What have I missed? Many thanks Don Building target “PhoneGap” of project “PhoneGap” with configuration “Debug” — (5 errors, 3 warnings) gap-phonegap-80458a0/iphone/build/Debug-iphonesimulator/include -...

Why does the XCode debugger output not match what I expect, when interrogating UIButton values?

This screenshot explains it all: The screenshot shows the debugger reporting buttonType as 2 but the console showing button type = 0. The same variable is being shown in the debugger and the console. Any idea how this mismatch happens? (gdb) po ((UIButton *)control).buttonType There is no member named buttonType. As requested:...

lost library when recompiling Obj-C project

When I recompiled an old Obj-C project (a Cocoa app), the linker couldn't find some common library modules, including sin() and sysctl(). This project had been working in the previous version of Xcode. I am now using Xcode 3.1.2 in OSX 10.5. The error message was: Line Location Tool:0: collect2: ld returned 1 exit status Line Locat...

Using macros without the escape key

I am trying to use the a macro in xcode. I type in a then hit escape and select it. This is annoying because I have to hit page up 5 times to get to the a. Is there a different key combination that will just let me use the a as typed without having to select it? ...

Cannot find OpenGL headers

I programming an app for the Iphone that uses a 3d object loader. the code of this loader is uses: #include <OpenGL/glu.h> the compiler is telling "no such file or directory", but I can see the file "glu.h" inside the OpenGL.framework under "External libraries & frameworks". I am using Xcode 3.2.1 what am I doing wrong? ...

iPhone Leaks not showing trace

I am running my iPhone App on the simulator and looking for leaks using instruments. The problem is that the trace is not sensible. It does't show any of my code or label any of the system calls. It's all just numbers. ...

Best approach for one view to call a tabbed view on iPhone

EDIT Let me simplify the question: Suppose your application has two views, the home view and a tabbed view with 3 tabs. The home view has three standard buttons named "Tab1", "Tab2" and "Tab3". When you click on "Tab1", the tabbed view should be opened with tab 1 selected and the same goes for Tab2 and Tab3. Any hints? /EDIT What I'm ...

NSConnection Delegate thread problem

Hi all, I have an NSConnection's delegate set to a class. I take the data from the delgates composed object and show t in my tableview. But the problem is I don'tafter the connection is established the View is diaplayed first and then the Connection delegate is ran and the data is loaded.WHich of no use to me. I need to run the delegat...

Info.plist file processing modifies executable

I've been working on an iPhone application had an issue where dSYM file generation was seg faulting on me. GenerateDSYMFile /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app.dSYM /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app/NodeAppGen cd /Users/kaom/Projects/Apps/NodeAppGen setenv PATH "/Developer/Platforms...

iPhone App link to iStore for commission

Is it possible to link from an iPhone application to the iStore so a user can (a) play a sample of music and then navigate to that track in order to buy it? In a bit more detail: the application lists a number of tracks for a particular artist (a recommendation by the app based on user criteria). The user scrolls down the list and finds ...

TortoiseSVN checkout problem in Windows

The problem is that I'm checking out some files with special characters in their filenames -- when TortoiseSVN attempts to check the code out, it can't create those files and the checkout fails. this applies to updating as well. Is there any fix/workaround to this, maybe to give an alternate filename or something? Update: Apparently, t...

C API with Mysql in XCode

Dear All, Setup: Running Mac OSX Snow Leopard, X Code 3.2.1, Mysql 5.1.42 and Mysql C-Connector 6.0.2, all 64-bit. I am having real difficulty configuring X-Code to run Mysql scripts. XCode is running fine (i.e. can Build and Run), MySQL server is running and I am confident on the installation of the programs listed under my Setup at t...

XCode SCM with Subversion - not getting new files

I have a subversion server and repository setup and it seems to be working in the basic capacity, but whenever I add a new file to the project from one devstation I am not seeing that file on any other devstations. I have looked all over for documentation on how to really use SCM in XCODE - must say apples documentation is purely about s...

NSString sizeWithAttributes: content rect

How do I get a NSString's size as if it drew in an NSRect. The problem is when I try -[NSString sizeWithAttributes:], it returns an NSSize as if it had infinite width. I want to give a maximum width to the method. Is there any way of doing so? (BTW: Mac OS, not iPhone OS) Thanks, Alex ...

Generate a random number with a random numberlength in Objective-C

Hello, always when I try to generate a random number with Int = arc4random % MAXNUM the length of the number is as long as the MAXNUM number length -1. So if I set arc4random % 1000000 the number is between 100000-999999. How can I get different numbers like 78, 476 or 4842? Here a sample: int number = arc4random() % 1000000; outputLa...