xcode

XCode - Debug configuration removes all GCC 4.2 settings

I have a project that I've just finished painstakingly rebuilding because duplicating a target would cause it to fail (the copy would fail to find its info.plist file no matter what you set in the build settings). Anyway, now that I've rebuilt the project I've encountered another problem: If I'm in "Release" configuration, I have acces...

Xcode: must re-download all of Xcode to get iOS SDK?

Possible Duplicate: Way to update iPhone SDK without having to re-download Xcode? I installed Xcode 3.x from my Snow Leopard DVD. Then I spent a few hours downloading the update to 3.2.3 via Software Update. Then I noticed this didn't have the iOS SDK. Now all I'm finding on developer.apple.com is a 2.28GB file of the full ...

iPhone SQLite Database Reading And Writing

So I am trying to work with SQLite in one of iPhone applications and I am using the sqlite3 library. I am able to access the database and even make a query; in fact the query accesses the exact data but for some reason the string I am getting back is a long integer and not the string I was looking for. Here is the database and code: Fi...

Xcode: how to install the iOS documentation in Xcode?

I currently have Xcode 3.2.3 installed (sans iOS SDK). It seems to have automatically downloaded for me the (OSX) Cocoa dev library -- but not iOS (UIKit) documentation. In Xcode preferences, I see "documentation set" options for "Mac OSX 10.6 Core Library" and "Xcode 3.2 Developer Tools Library" (both already downloaded) -- plus some J...

How to select range of values when using arc4random()

Can I set a range of numbers when using arc4random()? For example 50-100 only. ...

Debugging an iOS app with an external accessory connected via Dock

Am I missing something glaringly obvious or is there no way to debug an iOS app which uses an external accessory that's connected via the 30-pin dock without using a bucket load of logs etc. I want to be able to use things such as breakpoints and Instruments. Is there a way to remote debug perhaps, over Wi-Fi, Bluetooth? Note: Yes, I ...

Creating and Destroying Objects for passing between Views

Overview of app My RVC has an object of custom type 'Entry' that has various values (AssetURL, Notes for item). I pass an instance of this to two viewControllers in order to add information about the Entry into this instance for saving. I do this successfully, but am unsure about how I should be creating / destroying my objects. If I ...

Xcode: getting Xcode to recognize already-downloaded document sets + future updates atomic?

I had Xcode 3.2.3 installed with the "Mac OS X 10.5 Core Library" and "Xcode 3.2 Developer Tools Library" document sets fully downloaded. Then I had to re-install Xcode with the download from developer.apple.com, in order to get the iOS SDK. The previous "Mac OS X 10.5 Core Library" and "Xcode 3.2 Developer Tools Library" document set f...

Is it possible to know when the iPhone will go to sleep?

Is there any notification I can listen to that will alert me that the phone will go to sleep? I have implemented the following: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resignActive:) name:UIApplicationDidEnterBackgroundNotification ...

This one line of code has the expected ; before and unary minus errors for xcode iphone. It just one line! Ahhh!

Alright. So I asked a question here but I feared that I anwsered it myself and closed the dicussion. No Idea if I did that. That question is available here; http://stackoverflow.com/questions/3411650/is-it-me-or-xcode-somethings-wrong-with-my-braces-and-it-just-causes-errors-p let me go ahead with my code that gives the expected ; and ...

how to use the compiling time as automatic versioning-info ?

is there any constant or #pragma to get the time and date, when the programm was beeing compiled to get a kind of an automatic version-info ? ...

Localization of Default.png is not working

Hi I wonder if anyone has encountered the same problem and how they solve it. I want to localize Default.png so I do the following steps which from what I understand should be the correct way (please correct me if I'm wrong). Select Default.png in xcode Command-I to Get Info Click on Make File Localizable Go back to General Tab (wh...

iPad protocol problem

Hello guys, I have a little problem; I have this protocol defined as so below: @protocol someProtocol <NSObject> - (void) changedStoryForIndexPath: (NSIndexPath *) indexPath; @end I have it defined in a file named "ListViewController.h", logically I have to import the header in another file like: #import "ListViewController.h" then ...

install iphone sdks side by side

Im trying to get my xCode to contain all iPhone sdk's from 4 back to 2. But when I download the DMG files, it seems to only allow me to have an xCode with SDK versions 2 - 3.1 OR 3.2 - 4, not all together. How can I install the SDK's into one xCode so I can build for all different OS versions? Thanks EDIT:: Ok so I know I can set the...

how to retain the xml value into another controller xcode

Hi friends... i want to retain the xml value for another controller.and wanna to display the list on Picker view.then i like to choose one of them and call the another controller. How can i retain the xml value of previous controller class. i need the help. ...

How to find source of print() or NSLog() console output in Xcode.

I'm not sure if this is possible. Here is an example situation: Something is printing to my console and I don't know where it is coming from in the code. I did a quick search using the Finder in Xcode on terms such as 'NSLog' and 'print'. Nothing relevant came up. Is there any quick way that Xcode has of finding where the source of th...

Programmatically create iCal event, and test for event existence

An example of how to programmatically create an iCAL event in the default calendar, using Objective-C. The code checks if the event already exists, and sets the button state accordingly. I hope this example is useful. -(void)initCalendar { // An array of 1 dictionary object, containing START and END values. NSMutableArray* pvDict =...

How to suppress compiler warnings en masse in Xcode.

Within several projects, I am using 3rd party code that produce more than a few compiler warnings. I obviously do not want to go through and modify code of actively updated 3rd party projects. This leaves me with a lot of unnecessary warnings that drown out warnings in MY code. I have used some compiler flags to suppress specific warni...

How do I display my info view in my iApp

I am writing my first iPhone App, a test case before I write my life saving app to help me learn how things are done on this platform. So I used the standard ModelViewController widget and created my app. I put my UI on the default view and added all the glue code in the ViewController.m/.h files: event handlers, IBOutlet mappings to c...

How do you display a browseable list of images obtained from an RSS feed?

I have a requirement to grab images from an rss feed and display these images in much the same way as browsing your picture library and I really dont know where to start first. I can get tutorials on the rss reader but I really dont know the component to use to allow the user to "swish" through the images on screen Any help much apprec...