xcode

XCode automatically deactivating breakpoints

I'm using xcode in C++. I'm trying to debug my project, but at random intervals, it seems to ignore my breakpoints. There are three things that it does: 1) Sometimes, when I run, it automatically switches to "de-activate break points" mode. (the relevant button goes light and says "Activate") 2) Sometimes when I run, ALL of my breakpoi...

XCode debugger: display long strings

While debugging a program in XCode I have several CFStringRef variables that point to strings with lengths around the 200 character mark. In the debugger, it only shows the value of these strings up to a certain length and then just ellipses them away. I'd really like to see the full value of the strings. Is there some option I can con...

Reading cookies using xcode on the iphone

Hi there, I'm trying to read cookies using an xcode application im writing for iphone and testing on emulator. However when I run the code below the value stored in mumcookies is 0. Cookies are allowed via iphone settings and I also used mobile safari to navigate to gmail, hotmail and other cookie setting sites to increase cookie count o...

Porting OpenGL project from Visual Studio to Xcode

I'm in the process of converting/migrating a Visual Studio OpenGL project to an Xcode (iPhone) OpenGL project. Do you have any experience or suggestions? ...

compiling a C++ class in Xcode: error during compilation: stl vector

I have a C++ class that compiles fine on linux with gcc and on widows in visual studio. boid.h: #ifndef BOID_CLASS_HEADER_DEFINES_H #define BOID_CLASS_HEADER_DEFINES_H #include "defines.h" class Boid { public: // Initialize the boid with random position, heading direction and color Boid(float SceneRadius,float NormalVel); ...

Overwritten file with tar

I was trying to tar a file and ended up overwriting it. I was working in Xcode and I'm wondering if there is a way for me to recover the overwritten file. ...

Xcode String Format Error

Hi There, When debugging the following code NSString *var1 = @"blaa"; NSString *var2 = @"blaaaaa"; NSString* script = [NSString stringWithFormat:@"Set_Variable( %s, %s )",var1,var2]; the %s placehoders in script are replaced with funny gibberish characters. Can you see any errors in the code. Many thanks, (Confused .NET developer tr...

iPhone: one nib, different assets. Bundles?

I have an iPhone application that comes in differently skinned flavors, with different art assets and sounds, but all the same code. I've got things set up with multiple targets, but the problem I'm having is I have to have a different set of UIBuilder nib files, one per view per target, set up to point to the correct art for that targe...

Resolve symbolic links when copying bundle resources in Xcode

Hello! I have a project in Xcode and some resources for the project. The resources contain several symbolic links. When Xcode builds the project, it copies the resources, but does not resolve the symbolic links. Is there a way to tell Xcode to resolve the links? (Ie. have the link targets copied instead of the links themselves.) Update:...

Linking to Boost.Signals using Xcode

I can't for the life of me get Xcode to link to Boost.Signals properly. I've built Boost using MacPorts, and I even went as far as downloading Boost myself and manually building it. I've set the Library Search Paths to include /opt/local/lib, and I've added "-lboost_signals-mt" to the Other Linker Flags. I've tried dragging and dropping...

initializing a class. Can you see any problems with this?

-(id)init { if (self = [super init]) { self.name = [[NSString alloc] init]; self.type = [[NSString alloc] init]; self.phoneNumber = [[NSString alloc]init]; self.webAddress = [[NSString alloc] init]; NSMutableArray *pricesArray = [[NSMutableArray alloc] init]; NSMutableArray *poolsArray = [[NSMutableArray alloc] init]; self.pric...

Any way to tell if my iPhone app is running under the debugger at runtime?

I would like to have my error handling code behave differently if it is running under the debugger. Specifically, if I am running on a handset, not attached to a debugger and fail an assertion I want to send the error to my server. When I am under gdb, I want to break into the debugger. Although I can imagine how Apple would write the c...

Xcode duplicate/delete line

Coming from Eclipse and having been used to duplicate lines all the time, it's pretty strange finding out that Xcode has none such function. Or does it? I know it's possible to change the system wide keybindings but that's not what I'm after. TIA ...

XCode: permanently ignoring warnings

I have a project that compiles with some warnings. It's an iPhone project that uses some methods on NSDate, that are seemingly not the headers of the iPhone SDK, but work flawlessly none the less. When I call these methods I get warnings like: So how do I silence the warnings permanently, in order to tell XCode "it's OK, really." O...

iphone OS Version Appstore Deployment

Hi There, My question is related to the iphone appstore deployment handles deployment for when different versions of the iphone request the application. Also, does one have to submit a build for each version i.e 2.0,2.1 and 2.2. I've developed for Windows mobile and redirected users to a certain url based on the windows mobile platform t...

Deploying sqlite DB on iPhone app upgrade

I'm using sqlite as a datasource in an iPhone app. I have two questions regarding application upgrades. 1.) The data is all config/nontransactional. Meaning, it is readonly. When I update/add config data, I'll issue an upgrade for the app. When a user gets an updated iPhone app, does the original get uninstalled? If that is the case...

how can disable button of xcode?

hey,friends i am new at the iphon app. i am building an app by using xcode but now i would like to disable button. friends how it is possible. ...

How do I debug with NSLog(@"Inside of the iPhone Simulator")?

I'm used to programming and having log messages be viewable. I know you used to be able to use NSLog() to trace out messages when debugging Cocoa apps. What is the best way to "trace" messages when coding in a iPhone XCode development environment? ...

how i can navigate to another page from a button

hey, i am new at the area of objective c. i am building an iphone app by using xcode . i have taken two button on a page and from among one i would like to go to another page how is it possible at xcode? ...

Installing IB plugin

I have created IB kit plugin now i want to use that plugin in other Xcode project how to do that? I have tried developers guide but not able to get that done ..please answer ...