xcode

Recommendations for C++ open source game engines on IPhone

I decided that I want to make a game for the iphone I was thinking of using oolong or sio2 any recommendations? Both have the problem of lack of tutorials, is it possible to somehow use a normal C++ game tutorial and integreate the engines rather than the one used in the tutorials? So if the C++ tutorial talks of creating an engine I c...

Why is it so hard to find a C++ 3d game tutorial

I'm planning on learning 3d game development for the iphone using a 3d engine, but because of lack of tutorials for the iphone I was planning on using C++ game tutorials and making the necessary changes. The problem is that I've had limited success when searching for things such as 'c++ 3d fps tutorial ' I dont really get anything usefu...

Xcode's colored console output

Is possible to format/color the output in the Xcode console? I know that you can do that while debugging CoreData on Mac by setting: com.apple.CoreData.SQLDebug 3 and com.apple.CoreData.SyntaxColoredLogging YES What with our own logs, can we color/format them too somehow? ...

Installing ode using Macports

I am trying to install ode via Macports, but get this error: On Mac OS X 10.5, ode 0.11.1 requires Xcode 3.1 or later but you have Xcode 3.0. Error: Target org.macports.extract returned: incompatible Xcode version Is there any way to install ode without xcode 3.1? ...

How to directly store SQLite data in XCode?

Hi guys: Searched on here and got some vague answers, so I thought i'd rephrase the problem to get some clearer answers- Right now I have an SQL Lite db that reads/parses information from a pre-formatted .txt file. When I open the app, there is a slight 'lag' as the iDevice parses the info, then gets fetched for the iDevice. I'm just wo...

Multiple View application and Navigation Bar

Hi. I'm working in a iphone view-based application. The application works this way: First view is a welcome view with buttons for load other views. Second view is a map that shows the location using gps. Third view is a search engine that loads some information to show on the map and on a list (This has two button to load map or table). ...

Organising files and classes in XCode (iPhone application)

It's a generic question and really a newbie one too, so bear with me... I'm playing with some iPhone development, and trying to create a simple "flip type" application. Nothing sophisticated, let's say on the flip side is a short application summary, bit like 'help' and on the main screen is a simple board game, let's say tic-tac-toe or...

Parameter becoming zero somewhere

Hey guys, Something really weird is happening: when I call foo(100*1.0f), somewhere along the line that becomes 0. To verify I put a breakpoint on foo(), and it indeed is zero and it indeed gets called with 100*1.0f. The code is in Obj-C++. Here is the calling function in XCode's GDB frontend, as you can see, score*scoreMultiplier is ...

How would I include open source library in my iPhone application?

I have found an existing open source library that I would like to include in my iPhone project (the unrar source code found here: http://www.rarlab.com/rar_add.htm ). I have compiled this source as a linked library on my Mac with "make lib" which creates the libunrar.so file just fine. These are the makefile settings for that target:...

quartz composer view output: How can I get immediately the new values of outputs, if they change?

Hello, I created a cocoa program with a quartz composer view. I can get the output values with: [qcView valueForOutputKey:@"Output"] But how can I get immediately the new values of outputs, if they change? ...

Can we execute methods / code in XCcode just like in Visual Studio?

Visual Studio is one of the best developer IDE of all times, and now was improved with multithreading debugging and much more. My question is regarding Xcode and the ability to execute code just like we do in Visual Studio. Let's assume an object in a view and I want to run, let's say: [pickerView setHidden:YES]; in a breakpoint jus...

#import still gets "duplicate symbol" error

When I compile my iPhone app, xCode gives "duplicate symbol" error for my variables in MyConstants.h I thought if I used: #import "MyConstants.h" it would avoid that? But I still have the problem. Added info: The error occurs during "linking". (I'm just using xCode's "Build and Go" button.) I also tried the (unnecessary with #im...

iphone twitter posting

I have some twitter code I modified from: http://amanpages.com/sample-iphone-example-project/twitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl/ His code used view alerts to login and post to twitter but I wanted to change mine to use windows. It is mostly working and I can login and post to Twitter. However,...

Changing position of selector programmatically in Pickerview when it is initially loaded.

How can we change the position of the selector in the Pickerview when it is loaded. For example, I want to make row 3 initially selected when it is loaded. Anyone please help. ...

getting the url of opened link uiwebview

so user touches link in uiwebview, the page opens.. how do I get the new url so I can show it in a uilabel? thanks. ...

Adding # & search sign to TableIndex in UITableView

In iPhone native Phone book - there is a search character at the top & # character at the bottom. I want to add both of that character in my table Index. Currently I have implemented following code. atoz=[[NSMutableArray alloc] init]; for(int i=0;i<26;i++){ [atoz addObject:[NSString stringWithFormat:@"%c",i+65]]; } ...

adding a view to an alert view in xcode

hello, i want to add a 414 X 210 size view to an alert view instead of a normal alert view display. I used MyTicketAlert = [[UIAlertView alloc] initWithTitle:@"NEW TICKET"message:@"Ticket Generated Successfully\n GOOD LUCK!!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; [MyTicketAlert setBackgroundColor:[UIColor...

UIModalTransitionStylePartialCurl not rotating

I've got a modal view controller that is being displayed using UIModalPresentationFullScreen with the TransitionStyle set as UIModalTransitionStylePartialCurl. This works beautifully. My problem is that when the device is rotated, my view rotates (as intended), but the "curl" effect does not. Does anyone know if this is by design, o...

How do I run a universal app on the iPhone 3.1.3 simulator?

I'm working on a new app that I want to be universal for the iPhone and iPad. I started out with the "Create a Window-based app" wizard, and it created separate app delegates in "iPhone" and "iPad" groups. Since I already was quite familiar with iPhone dev, I did that part of my project, and now I'm ready to do some iPad stuff. So... I...

iPhone SDK: How to generate a random time of day

Hello all, I am having some problems trying to figure out the best way of generating a random time of day. For instance, if I want to choose a random time between the hours of 9am and 5pm, what would be the best way with the least amount of overhead on the device? I guess I need someone to point me in the right direction. Thanks! ...