first of all, I am very new to mac and Iphone development.
I have a project, that uses the OpenGL framework. In order to try to get some other aspect of the project to work, I may have fiddled around the developer libraries (it was more then a week ago so i don't remember exactly what I did).
now when I try to build the project I get ...
Hello,
I want that my app shows an actionsheet when the user presses on the "Tweet"-Button and the username or password is wrong.
For my Twitterfunction I use the TwitterRequest.m/h from Brandon Trebitowski. If everthing works great and the username/password is right, this happens in my app:
TwitterRequest * t = [[TwitterRequest...
Hi all,
I'm debugging a heavily assert()'ed iPhone app (Xcode, Objective C++, device simulator). In some cases, the assert failure would just terminate the app, instead of breaking into the debugger as I'd expect.
I made a workaround by implementing my own kinda-assert to the effect of:
#define AssertLite(b) if(!(b)) {asm {int 3}}
(f...
I have a relatively simple goal: I want to create a Cocoa application which doesn't have much functionality itself, but is extendable through plugins. In addition I want to work on a few plugins to supply users with real functionality (and working examples).
As I am planning to make the application and each plugin separate open-source p...
Project file here if you want to download: http://files.me.com/knyck2/918odc
So I am working on the book "programming in Objective c 2.0" and working on exercise 8.5, where you have to build a bunch of classes and subclass a homemade abstract class into a square class a triangle class and a circle class. you also have to calculate the a...
Hi,
So I've followed this tutorial to setup unit testing on my app when I got a little stuck.
At bullet point 8 in that tutorial it shows this image, which is what I should be expecting when I build:
However this isn't what I get when I build. I get this error message: Command /bin/sh failed with exit code 1 as well as the error mes...
Just wondering if you can return two arguments in an objective c method, for example I'd like to return a cartesian coordinate (x,y), basically two ints. is the only way to do this by creating a class and returning an instance? Is there some other way I'm not thinking of, kind of a beginner here.
any syntactical help would also be appre...
I'm still finding my way around the iPhone SDK, I've followed some good tutorials but I am trying to find some simple solutions for the time being.
Right now I want to knock up a simple app that will share the same UIViewController.
I have created multiple views in Interface Builder and given them unique names in the Inspector (Identit...
Is there a way to determine how many lines of code an Xcode project contains? I promise not to use such information for managerial measurement or employee benchmarking purposes. ;)
...
There are 2 members in our team. We use Xcode's SCM (use SVN) to manger our source code files. We all add files to our Xcode project. He has commited to svn server. When I update, Xcode find there has conflicts in project.pbxproj file.Then I select quit Xcode and manual merge the conflicts. Then I start to edit my project.pbxproj, merge...
I'm developing an iPhone application using mixed Obj-C and C++. It seems that sometimes the values of various fields are totally bogus as reported by gdb when stepping from an Obj-C file to a C++ file. For instance, in a method:
int count = 1;
for (int i = 0; i < count; ++i) {
int x = 0; // put a breakpoint here to see how many ti...
i tried to compile by iphone app in xcode and i got this
Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain
how do i get rid of it? i dont plan on selling anything on the app store just yet cause i just started with objective-c. do i have to register with the d...
Hello,
I want my app to do something when the last NSLog has a certain string. I thought I could realize this with an if-query and isEqualtoString, but how can I make this?
Sorry for my bad English ;)
...
I have an instance variable lat (NSString) in my App Delegate. What i want to do is set this variable equal to the user's current latitude in didUpdateToLocation:fromLocation, such that i can access it from a different view. This is key. So i have this code:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLoc...
I've seen how to define the __MyCompanyName__ macro value that displays in all header comments in XCode by defining it globally via a terminal command:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "My Company";}'
However, I do work under multiple company names and would like an easy way to sw...
I'm working with xcode and I have classes associated with other projects that I want to be included in new projects. I realize that the #import will do the job technically (although what should i do if it's out of the project root folder). But what do I do if I want to include the class "properly" --basically so i can double click and ed...
I get this message on the debugger console, but the application seems work. The full console below.
[Session started at 2010-01-05 20:17:29 +0100.]
Warning - No location found for "BGTangramLevel.m:1"
Warning - No location found for "BGTangramClues.m:1080"
Warning - No location found for "BGTanRender.m:143"
Warning - No location found f...
This is definitely obsessive, but I am fascinated by how cleverly the compiler translates C code into machine instructions. Since I am a little fuzzy on some instructions, it would be helpful if I could watch the operation of a compiled program at the level of individual machine instructions - "below" the level of a C statement (which ...
So ... we have this bit of motion detection:
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (event.type == UIEventTypeMotion && event.subtype == UIEventSubtypeMotionShake) {
[[NSNotificationCenter defaultCenter] postNotificationName:@"ShakeBegan" object:self];
}
}
Innocuous enough. We also c...
Hi there.
I am creating a project in which i have to change the main.m file, so that UIApplication doesnt appear straight away, so i deleted the following line from main.m
int retVal = UIApplicationMain(argc, argv, nil, nil);
and deleted these lines from AppDelegate
- (void)applicationDidFinishLaunching:(UIApplication *)application ...