xcode

Cocoa Applications Examples

Hi! I've been doing some cocoa since a week, and I'm getting kinda good with it. I did some tutorials, calculators, currency converter, etc... But I was wondering if there was any more advanced guide? Like build a RSS reader, or anything else... I dunno.. If you know any good resource for examples please tell me. PS: I'm reading som...

Radiobutton in iphone

hi, i am using radio button image (empty circle) in button to answer the question from 3 options, and the 3 options are radio button's. i have created 3 uibuttons programmatically in tableview delegate method cellforrowatindexpath. i need when one button is selected(with filled circle image) other one if selected before gets unselected. ...

How to prevent a UiView from sliding down underneath the TableView?

I have a beginner iPhone project going. I have a TableView, which is just a listbox with a bunch of entries and a small UiView on the bottom. See the pic. The problem is that the UiView essentially becomes part of the listbox and will only appear when I scroll down to the last item in the TableView. I'd like the UiView to be anchored...

How to align messages in UIAlertView?

hi, i want to know how to set the alignment of delegate message of alert view. anyone has solution, plz reply with some code. ...

Adding libraries in /usr to xcode

Hi All, I'm trying to add static libraries found under /usr to an xcode project. (I'm new to mac dev). The problem is that this is a hidden directory and so the normal Add to project doesn't work, and although I can Edit Project Settings to add the include directories, there doesn't seem to be any obvious way of adding the actual libs....

Breakpoints get deactivated in Xcode: EXC_BAD_ACCESS when NSZombieEnabled == YES

My app crashes at (seemingly) random events. So, I wanted to add NSZombieEnabled to debug my iPhone application. I cloned my target and set its Info.plist to the same as the original target and set NSZombieEnabled to YES. Once i run the app, it crashes with a stack trace of... #0 0x3025db0c in ___forwarding___ () #1 0x30239db2 in __f...

How to append values in xcconfig variables?

I'm using Xcode and .xcconfig files. I'm trying to append some values in the preprocessor definitions, but I simply can't make it work. I tried the following (as well as many variations of this), but no luck so far: GCC_PREPROCESSOR_DEFINITIONS = '$(GCC_PREPROCESSOR_DEFINITIONS) NEW_VALUE' The NEW_VALUE symbol is simply never added t...

In xcode 3.2, does the iPhone simulator approximate CPU speed?

I just upgraded to Snow Leopard and have noticed that my NSLog() calls (among other things) in the iPhone simulator are taking quite a long time, way longer than they used to. Did Apple update the simulator to better approximate the iPhone's CPU speed? ...

Compiling for iPhone 2.2.1 using Xcode

Hi, I have been developing an iPhone app. and had the Base SDK set to "iPhone Device 3.0" and Deployment target set to "iPhone OS 3.0". Everything worked fine. I recently realised I actually needed to compile the project to run on devices using version 2.2.1 of the SDK, so I set the deployment target to "iPhone OS 2.2.1". Now when I hit ...

Carbon development on intel based mac

Hi, I am trying to make an application on mac.i am trying to develop a user authentication module that uses the OS authorization dialog and use its functionality in my application. i have two questions regarding the mac development; 1) Is there a possibility to port the carbon applications to cocoa? (i don't have any concern with ...

Create a global (not user specific) executable configuration in Xcode

Xcode normally saves its executable configurations in the user specific ".pbxuser" file. Is there a way to tell Xcode to save these configurations globally, in the "project.pbxproj" file, so all users can use them? Regards, Jochen ...

Can XCode 3.2 run on 10.5 Leopard?

Can XCode 3.2 run on 10.5.x Leopard? Or will it only work with Snow Leopard (10.6)? ...

Is there an Xcode syntax colouring for Rails, Ruby, Erb? If not, how can I write one myself?

Xcode's syntax colouring is poor at best and textmate's looks great, but I like Xcode, since I program in C++, too. I'd like to keep everything in one place and take advantage of other Xcode features. Has anyone already done this or is there an easy way to do it? ...

How to know - view controller's current view in iphone

Let's have an example. In application I have a tab bar controller. Tab bar has two items dynamically - two view controllers. User can select any of tab. Suppose user selects first tab. First view controller is already loaded. Now he clicks on a button of First view controller. From First View controller -> Second View controller is pu...

Include a resource directory hierarchy into app bundle

I have a directory structure (multiple levels deep) of resources, that I would like to include into the app bundle. Is this possible without creating a Copy Files phase for each directory in the hierarchy individually? ...

What is your favorite XCode keyboard shortcut?

What is your favorite XCode keyboard shortcut? I am a huge believer in using the keyboard as much as possible (its much faster that way), and I was hoping others could share what they've found to be the most useful. One shortcut per answer please. ...

XCode: How to set debug environment with multiple xcconfig files?

I'm using XCode 3.2 with xcconfig files. The files are organized by target. For example, I have a debug.xcconfig file and a release.xcconfig one. Both uses common settings, so I added a shared.xcconfig file which is included by both. The shared.xcconfig file looks like this: GCC_C_LANGUAGE_STANDARD = c99 GCC_WARN_ABOUT_RETURN_TYPE =...

How to have the Xcode 3.1 compiler warn of assignment operator in an if statement?

I've tried searching the documentation and the internet as best as I'm able, but I haven't been able to get the Xcode compiler to issue a warning if the assignment operator is used in an if statement. I'm coming from RealBasic, where I've got an extremely strong habit of typing this sort of comparison: if x = 5 then ... In C, of cour...

Building a backwards compatible OS X app, when a new API is present?

I'm trying to upgrade an app (Clarke) to provide 10.6 compatibility. My plan is to use two different code paths depending on the version of OSX in use. On 10.5 it will use one controller, which consists of completely custom code that isn't dependent on any specific Cocoa API. On 10.6 it will use another controller, which wraps the new...

How to launch XCode executables from command line

Hi, In my XCode project, I have multiple 'Executables'. Is it possible to run some of them via Comomand line in a terminal? Instead of running it via 'Run->Debug'? Thank you. ...