xcode

XCode-like auto completion in vim (without tab)?

Greetings. I've been using vim for years, and I've recently started toying with XCode. One of the things I really like about XCode is that it will auto complete words without me hitting <TAB>. For instance, in this image below I only need to type NSSObj and the rest is filled in automatically, no special keystroke required. I'd like...

How to pass a command line switch to XCode when I start 'Build and Debug'

Hi, I have a XCode project and I can 'build and debug' with it. But how can I pass a 'command line switch' so that XCode to invoke with that command line switch when I 'build and debug'? Thank you. ...

what does this error mean in x-code debugger window?

[Session started at 2009-05-28 22:36:25 +0600.] 2009-05-28 22:36:29.400 FlashCards[4440:20b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "indexView" nib but didn't get a UITableView.' 2009-05-28 22:36:29.407 FlashCards[4440:20b] Stack: ( 25176...

Error Installing App on ipod/iphone

I am a registered iPhone developer and I am getting the following error: Your mobile device has encountered an unexpected error (0xE8000001) Try disconnecting and powering off the device; then power the device on and reconnect it. My System Specifications: PowerPC G5 Mac OSx - 10.5.6 iPhone os - 2.2.1 I am gettin...

Is there any opengl example so that I can run on MacOS?

Is there any opengl example so that I can run on MacOS 10.5.5? And if there is a XCode project with the opengl examples? Thank you. ...

What is the meaning of the color of the 'breakpoint' mark in Xcode

When I set a breakpoint (double click the border of the editor at a particular line), there are 3 colors: 1. blue 2. faded blue 3. yellow with blue border can you please tell me what are the meaning of each color? Thank you. ...

How to set breakpoint in a dependent xcode project

Hi, i have a XCode project (my main xcode project which has its executable). It has dependencies on a few other projects (under the Project tab in Detail View, there are a few other xcode project that it depends on). My question is how can I setup breakpoint in the code of the dependent project? I tried this, but this does not work 1....

how to flip view with an application with tabbarcontroller and navigation controller

i have a application like this from the first view when i click on a cell i loaded a new view using pushviewcontroller method now i want to flip that view with another view and vice versa. also when i click on the cell i want to hide the tab bar.but unable to do this. here is the link from where i created my views. http://www.iphonemusin...

getting sqlite3 database from a server and copy it into iphone's documents directory?

I need to extract data entries from a server-based sqlite database into different objects in my project. I have only been able to find tutorials and write-ups on how to feed data to a Table View through a local database. Say the database has 5 rows, each with 10 columns. How do I take the text from e.g. column 3, row 5 and make it show...

How can I display all the threads for my program when debug in Xcode

Hi, How can I display all the threads for my program when debug in Xcode? I am using eclipse for java debugging, it can show all the current threads in the program and I can suspend each one of them and show their current stack trace. Can I do that same in XCode? Thank you. ...

how to dynamically update UIlabel text in two UIViews Same Time?

hello all, i have two uiview's named question and answer. the question view is loaded from a cell's click. on the question view i have two iboutlet buttons named "view answer" and "next" when i click on button named "answer" the answerview loaded. both uiviews have one label.now i want to display a question when the first time question v...

Xcode : Recover complete project from snapshot ?

Hello today I am playing a bit with the Xcode snapshot feature and I wonder if I could recreate a complete project from a snapshot if all code is lost. It seems to me in the Snapshot-Manager I can only see snapshots of the current project, not of all projects. So if my projectfile is lost or damaged is there anyway to recover my files ...

how can i override malloc(), calloc(), free() etc under OS X?

Assuming the latest XCode and GCC, what is the proper way to override the memory allocation functions (I guess operator new/delete as well). The debugging memory allocators are too slow for a game, I just need some basic stats I can do myself with minimal impact. I know its easy in Linux due to the hooks, and this was trivial under code...

longer than five seconds iphone sounds

Hey everyone. The following is the code that I am using to play random sounds on the iPhone simulator. Some of the 30 or so sounds won't play and after some investigating I found out that the ones that weren't playing were longer than five seconds. Does anyone know why this is? Thanks in advance for your help! NSString *path = [[NSBund...

where is $PATH set in xcode?

It looks like xcode's $PATH environment setting is different from my user shell environment. Where does xcode get the $PATH setting from and what's the best way to append to the search path? ...

Calling method on category included from iPhone static library causes NSInvalidArgumentException

I have created a static library to house some of my code like categories. I have a category for UIViews in "UIView-Extensions.h" named Extensions. In this category I have a method called: - (void)fadeOutWithDelay:(CGFloat)delay duration:(CGFloat)duration; Calling this method works fine on the simulator on Debug configuration. Howe...

XCode / Interface Builder : How to rename the default NSToolbar Items?

When I add an NSToolbar to my application it comes with some default items like "Customize" or "Colors" and I am unable to rename them. These attributes are disabled and can not be edited. I am looking for an easy way to translate these items since I don't need an English application. I also would like to edit the text of the "done" But...

iPhone en_* sublanguage localization

I want to localize strings in my iphone app for en_GB and other 'en' sub-languages, but XCode and the iphone refuse to let this happen. I have created a localization of "Localizable.strings" for en_GB and en_US (I tried both hyphens and underscores) for testing purposes, but they just aren't recognized. The only language code that works ...

How does MacOS developer navigate large code base

Hi, I am new to MacOS development. I would like to know how developer navigate code in a large code base on MacOS? E.g. webkit? I have webkit (c++) built in XCode, but the source code navigate is not that great. I am looking for something like Java source code navigation in eclipse. e.g. display class hierarchy, e.g. caller of a parti...

Cocoa MySQL Framework pointers and/or advice?

Hey, I'm looking to find a good MySQL framework for Cocoa that I can use in my XCode projects to access a database on the web. Do you know of any good, open source/free ones? I have looked at http:// mysql-cocoa.sourceforge .net/index.html but haven't had a chance to play with it. Should I start there or is there something better? Tha...