xcode

How can I turn on parenthesis matching in Xcode?

Curly brace matching was pretty easy to turn on. How can I turn on parenthesis matching in Xcode? ...

How can I make auto-complete display a list in Xcode

How can I use auto-complete in Xcode like I can in Visual Studio and Eclipse? Specifically in VS and Eclipse auto-complete displays a list of choices... while Xcode just displays a single choice. For example Xcode might suggest "myVariable" when I type in "myV". That's fine but what if I have the following objects in the scope of my...

Xcode: Breakpoints disabling themselves

I set a breakpoint but when I run my program it looks like it disables itself. Any ideas what's going on? The breakpoint arrow is dark blue before I run the program, and upon execution changes to light blue. ...

how to reload or refresh a view in iphone?

i have a uitableviewcontroller here is the .h file code @interface addToFavourites : UITableViewController { } @end and here is the .m file code #import "addToFavourites.h" @implementation addToFavourites - (id)initWithStyle:(UITableViewStyle)style { if (self = [super initWithStyle:style]) { } return self; } - (NSI...

Mac developing - building an application with toolbar

Hi, I am new to mac developing, and kind of confused. I am trying to create a program with a toolbar, but can't seem to get it working. Can anyone explain me the steps needed to do this? Beside, is there any control on the mac developing system similar to iPhones UITabBarController? Thanks, Hans Espen ...

Error building pch file with CPP definitions

We're adding CoreData support to our iPhone app. It's a far reaching change (moving from SQLitePersistentObject). To avoid branching, we are running a single codeline with the new code within #ifdef blocks. When I enable this code from one of my headers (#define CORE_DATA_BUILD) everything works fine. When I create a new target and defi...

Is anything "sensitive" stored in an iPhone Xcode project folder?

I want to open source one of my iPhone applications (that I've already published in the iTunes store) but I obviously don't want to expose anything "sensitive" like provisioning certificates and code-signing keys, etc. I'm guessing that stuff is merely referenced from the Xcode project folder (actually stored in my keychain elsewhere on...

iPhone app running in simulator won't quit (or be killed)

I have an iPhone app running in the simulator that won't quit. I also cannot kill it, not using Activity Monitor nor kill or kill -9 or killall. cyrus:~ ajbrehm$ ps auxc|grep Vocky ajbrehm 76450 0.0 0.1 153116 5212 ?? UE 12:59pm 0:00.05 Vocky ajbrehm 76437 0.0 0.1 153116 5212 ?? UE 12:58pm 0:00.05 Vocky ajb...

Using Clang Static Analyzer from within XCode

Since there is no Xcode script variable for "current project directory," how can you create a script menu item to run the Clang Static Analyzer on your current project from Xcode? ...

Just change the name of the app executable for an iPhone app

I have an iPhone app where I will be using it as a template for several apps. I want to change the name of the executable for each individual app (Not the app display name on the phone). I see in the target build settings where I can change the key "Product Name" to the new executable name I want. Is there anything else I need to chang...

Xcode : Garbage Collector Setting

I just realized for my cocoa application I can set the garbage collector setting for the target but also for the project. My app did crash since I activated GB only in the project properties not in the target properties like I used to do. Changes in the project settings did not apply to the target settings. What use is the Garbage Coll...

how to detect which cell is clicked then generate next view according to it in iphone uitableview?

hello all i am new to iphone development i am working on a application called flash cards... my problem is i want to generate flash cards from database... here is some code to explain home screen---- index View categoryView TileView bookmarks search download indexView is a uitableView category1(section header tit...

how to generate differernt data on row from arrays in different sections of uitableview cell?

i have some database and i am genrating data something like this. first getting categoryid and categoryName form the database. and sectiontitle of the table is categoryName hrer is sample code (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return categoryNamesList.count; } -(NSString *) tableView:(UITableView *)t...

Padding string to left with objective c

Hi There, How can one pad a string to left in objective c. E.g if if i have an integer value of 6 I want it to be displayed as 06. I use stringByPaddingToLength but it pads it to the right like 60. Your help is much appreciated. Tony ...

XCode: Shortcut to toggle between Editor and Help Window?

Is it possible from a keyboard shortcut to switch from the XCode editor window to help and then back again? ...

Selectively disable GCC warnings for only part of a translation unit?

What's the closest GCC equivalent to this MSVC preprocessor code? #pragma warning( push ) // Save the current warning state. #pragma warning( disable : 4723 ) // C4723: potential divide by 0 // Code which would generate warning 4723. #pragma warning( pop ) // Restore warnings to previous s...

Reference a library in Xcode for iPhone App

I am used to Visual studio, I have class library projects that I reference in my web sites or windows applications. Using class libraries allows me to create common functionalities, utilities once and use them over and over again. How do I do this with Xcode and iPhone App development? I am looking for some details on how to create the...

NSLog tips and tricks

Hi, I'm doing a presentation on debugging in Xcode and would like to get more information on using NSLog efficiently. I'd like to know if there are any tips and tricks to using NSLog which you guys have picked up. For example, is there a way to easily NSLog the current method's name / line number? is there a way to "disable" all NSLo...

Where to place common utility methods on iPhone

In Visual Studio projects I almost always use the App_Code folder or a reference to a separate class library to store my most commonly used Methods, like a method that formats dates. Where and how should I do the same when developing an iPhone App using Xcode? Is this best practice when it comes to iPhone Apps? ...

Xcode "index is corrupt, will rebuild" message followed by "Segmentation fault" when running under root

Can anybody explain to me the cause of the following message, perhaps along with suggestions as to how to fix it? I'm running XCode under root using sudo <path to xcode because I need to debug a daemon that has to run as root. I've done this several times successfully, but now when I try to open the project in Xcode I get the following...