xcode

Difference between writing #import <filename.h> and #import "filename.h" i.e written the file name in angular brackets and quotes?

Possible Duplicate: what is the difference between #include <filename> and #include filename Difference between writing #import and #import "filename.h" i.e written the file name in angular brackets and quotes? ...

NSDateFormatter problem with increased Date

hi, im trying to increase a date and get a formatted output for every month ... it works fine, but the step Dec 2010 to Jan 2011 doesn't work. please have a look at this: NSCalendar *gregorian = [[[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar] autorelease]; NSDate *lastDate = [[NSDate alloc] init]; for (int i = 0;...

Xcode debugging problem, seems to cache something

Hi, i have a rather odd problem with the Xcode debugger. In my iPhone application project I'm able to debug some of the files but not all, some of them simply won't allow me to view variable values. I first thought of a configuration problem of my project itself, but when I copy my project say from /A/projectdir to /B/projectdir or ren...

Linking the Developer Page at the appStore from an iPhone App

Hi. So I know how to open an app page on the appStore from within my iPhone app. Is there a way to open my company's page? On iTunes on my mac I can do that, but using that URL in the iPhone I can't (or I'm not doing it right). Thanks in advance. ...

XCode and SCM conflicts

Is there a decent Subversion client available for XCode? I am so tempted to write my own as of this morning after having a conflict on an update. I've done merges manually editing the ">>> mine" and "<<< theirs" markers but there has GOT to be a better way in this day and age. Does anyone know of an easy way to resolve conflicts graphica...

Want to play video but there´s only sound, no visible content..

Hi, i have a tabbar based application with 2 tabs. One to show images and the other to show videos. If i click on the video tab, different thumbnails are showing up. If i click on one of these images, i would like to push that videoviewController to play a video in another navigation view - if i turn the iphone around, it will play ful...

How to get the name of the backgroundImage from a button?

Hi, i´ve created different buttons and initalized them with an array with photos as backgroundImage. UIButton* myButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [myButton setBackgroundImage:[UIImage imageNamed: (NSString*) obj ] forState:UIControlStateNormal]; [myButton addTarget:nil action:@selector(buttonDown: ) forContr...

Game Design - Reusing an objects properties?

I am new to Obj C, but have developed many types of games in Flash. I have multiple squares (UIImageViews) that have the exact same properties; can be collision detected (converted to CGRect) can have a background image (image.png) can set an int variable on itself to set state (0-3) can be a type of square represented by another int v...

Imported files not recognized in OCUnit

Hi, I am doing unit testing on my iPhone app using OCUnit on XCode 3.2.3, and iOS 4.0. I have successfully set up my testing environment to pass and fail basic tests appropriately, but when I import my own files (in this case, "UserAccount.h", it fails to compile and tells me: "_OBJC_CLASS_$_UserAccount", referenced from: It then says...

Setting font in UIWebView for a loaded in rss feed

Hey guys, How would I set the font for an rss feed I am loading into UIWebView? Right now the rss feed loads in fine but is a default font and size that is undesirable. I would like to somehow control that. I am a super beginner so I apologize if this is a dumb question. ...

Xcode's Build and Archive not working.

The current issue I'm having is that Build and Archive will build my current target but after it's finished building, a pop-up will appear with the message: "The operation couldn't be completed. No such file or directory" I have reinstalled Xcode (3.2.3 with SDK 4.0), rebooted my machine, cleaned the cache, cleaned the project, man...

Testing app with 3.1.3 and last xcode

hi! :) i'm testing an app for iphone and iPad with the last xcode version! like written in "xcode 3.2.3 readme" i'm using this configurations: Base SDK is set to iPhone SDK 4.0, iPhone OS Deployment Target is set to iPhone OS 3.1 (beacuse i want that also iphone2G and ipodTouch1G users can use my app) and Targeted Device Family is set to...

Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs

I created this community wiki to bind together a number of other Q/A's I've seen here on SO. If you're here, you've probably installed the final version of Xcode 3.2.3 with iPhone SDK 4 (download link, reg reqd), and then encountered one or both of these problems: In your previously working xCode iPhone project, you get "Base SDK Missi...

IOS4 NSDateformatter return nil, before in 3.1.3 OK

I know there are a lot of answers about that problem, but I need someone explain me easy, why on SDK 3.1.3 the code bellow returns the correct result, and in the same code in IOS4 return nil. Thanks a lot for any suggestion. Marcello NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; [dateFormatter setDateFormat:@"yyyy-...

iPhone App compatibility between different OS versions

Currently, I have an iPhone app published in AppStore. I've developed it using XCode 3.1.4 and compiled it under the iPhone SKD 3.0. At AppStore the application shows 3.0 as the minimum OS required. Everything is fine. Now, I have downloaded the XCode 3.2.3 and I want to send an update of my app with compatibility for iOS 4. My questio...

How to add another annotation in the mapview a certain distance from current location

Wondering how to add another annotation in the mapview a certain distance from current location? ...

Deprecated constant in iOS

I building an app targeting iOS 3.1.3 and later and I've run into a problem with UIKeyboardBoundsUserInfoKey. Turns out it is deprecated in iOS 3.2 and later. What I did was use the following code to use the right key depending on the iOS version: if ([[[UIDevice currentDevice] systemVersion] compare:@"3.2" options:NSNumericSearch] != N...

Set Text in NSTextView with NSData

Hi folks! I have an instance of NSData that I stored from a previous run of my application. I want to set an NSTextView's text using this data. It is RTF and I can't figure out how to do this. Any ideas or suggestions? It needs to be done with code and not Interface Builder. Thanks ...

Invalid recever type int

Hi! I cant sem to find what would be the problem here... NSArray *oneMove; oneMove = [[bestMoves objectAtIndex:i] componentsSeparatedByString:@","]; int from, to; int temp = [[oneMove objectAtIndex:0] intValue]; from = [temp intValue]/100; //"Invalid receiver type int" to = [temp intValue]%100; //"Invalid receiver type int" NSLog(@...

How to parsing JSON object in iPhone SDK (XCode) using JSON-Framework

Hello All, I have JSON object like this : { "data": {"array": ["2", {"array": [ {"clientId":"1","clientName":"Andy","job":"developer"}, {"clientId":"2","clientName":"Peter","job":"carpenter"} ] } ] }, "message":"MSG0001:Success", "status":"OK" } I want to get t...