i trying to do basic application.
my files list;
DatabaseClass.h and .m,
IDRGameAppDelegate.h and .m,
scoredb.sqlite,
ScoreViewController.h and .m,
MainWindow.xib // Main Window
ScoreWindow.xib //Show Score Window
1.) my database is ;
CREATE TABLE "game" ("id" INTEGER PRIMARY KEY ,"name" VARCHAR(32),"score" VARCHAR(20));
INSERT INTO ...
Hi guys,
It seems that I am doing something wrong or the linker is not very good in xcode (I imagine is the first situation :) ) but I found that I need to manually add the OSBundleLibrary references on the plist.
The problem is that sometimes I don't know which bundles should I include, for example, I am building a kernel extension an...
Hello,
When building a project in Xcode (3.1.2), 2 folders are automatically added as header directories with the '-I' option:
/ (ProjPath) / (ProjName) / build / (BuildConfigName) / include
/ (ProjPath) / (ProjName) / build / (ProjName).build / (BuildConfigName) / (ProjName).build / DerivedSources
I realized this when trying to ...
Hello,
I'd like to know how long my project's builds take, for example by displaying it in the build pane.
Is this option available somewhere in Xcode?
Thanks.
...
I want to write a unit test of just the GUI part of my Cocoa application.
In the textbook unit test, there's a test framework and test case that calls the unit under test. All the code below that unit is mocked out. So, both the input and the output are controlled and monitored; only the code in the unit under test is tested.
I want to...
My application tested whether my selectedViewController was equal to my moreNavigationController.
if( self.tabBarController.moreNavigationController == self.tabBarController.selectedViewController )
{
// do something awesome.
}
else
{
NSLog(@"No match");
}
The expression always evaluated false, so I started debugging. I put a break...
Version 1.0 of an application has a data model, which is saved/loaded using the NSKeyed(Un)Archiver classes, as all model classes adhere to the NSCoding protocol. Say the following hierarchy exists:
-> Houses (NSMutableArray)
-> -> House (Custom Object)
-> -> -> Color (3 ints, RGB)
-> -> -> Number of Residents (int)
Say that there are...
I've been toying around with some Project Euler problems and naturally am running into a lot that require the handling of bigger than long long type numbers. I am committed to using Cocoa and Objective-C (I need to stay sharp for work) but can't find an elegant way (read: library) to handle these really big numbers.
I'd love to use GMP...
In my program I need to create sockets and bind them to listen HTTP port (80). The program works fine when I launch it from command line with sudo, escalating permissions to root. Running under XCode gives a 'permission denied' error on the call to binding function (asio::ip::tcp::acceptor::bind()).
How can I do debugging under XCode?
...
Xcode allows you to create automated scripts for performing repetitive tasks. What scripts have you written to speed up development?
...
For example, I'd like to not indent namespaces in C++ code, but the prefpane doesn't seem to have any place to make a decision of this granularity. Is there some hidden config file or something? Or am I just out of luck?
...
In my current project inside the file ViewController.m, running the method:
[[connection writer] writeData: data];
returns the warning:
warning: multiple methods named 'writeData:' found
I am attempting to call the method:
- (void) writeData: (NSData*)data
in TCPWriter.m. Unfortunately there are two other writeData methods
- (...
I am creating an application for the iPhone which involves having buttons which animate a image view, I created another view in which the buttons are held, however I would like to be able to horizontally or vertically, scroll this view of buttons. I have looked into adding scroll views and I have even followed a tutorial, But I just can...
I'm trying to watch a variable with Xcode. I'm following the instructions in here by pausing at a breakpoint, selecting Run > Variables View > .... but with the exception of "Enable Data Formatters" the rest of the options are all greyed out. Any ideas?
I'm using Xcode Version 3.1.3 if that matters.
...
I'm a longtime Codewright user on the PC for doing software and I recently moved over to iPhone development and have been learning to use Xcode. Is there a way to see a function list for the current open file so I can quickly move around in my source files like I could back in Codewright? Or do I have to just create book marks?
Keith
...
This animates the UIImageView in the impactdrawarray:
if ( ((impact *) [impactarray objectAtIndex:iv]).animframe == 70){
((UIImageView *) [impactdrawarray objectAtIndex:iv]).image =
[UIImage imageWithContentsOfFile:
[[NSBundle mainBundle] pathForResource:@"explosionA71"
...
Can we change keyboards programmatically.
can we give user option to change keyboard to different language from application at runtime?
kindly reply.
thnx in advance
...
how do i count double tap in simulator?
...
In an iPhone application I'm developing I have a Image View that displays eyes and I want to make them blink, an obviously blinking is a random thing, it can't be routine and keep repeating like a UIImageView Animation would do on repeat.
How would I set up an animation that displays one frame (blinked eyes) then sets back to the origi...
In Xcode, the Utility Application template makes a project with:
MainView, MainViewController
and
FlipsideView, FlipsideViewController
In my app, the two views correspond to the main UI and a preferences screen. Obviously I want the prefs to be reflected in the main UI and persisted to disk to remember settings. I know how to do that...