xcode

iPhone TabbarController Switch Transition

I've implemented gestures (touchBegan-moved-ended) in order to allow for swiping through my tabs. It works. I'd like to add a slide-from-left and slide-from-right transition. It would be better if it could be part of the gesture if statement which tells me if the swipe is towards the right of left. Since I determine which tab is displaye...

How do I duplicate my xcode project? (iPhone SDK)

How do I duplicate my xcode project? (iPhone SDK) By the way, I simply duplicated/renamed the entire project folder. But when I started working in the new (duplicated) project (after changing app ids, provisioning profiles) I started getting errors about targets. I have no clue about what targets are or anything either so. Hmmm. Hope th...

Parsing NSStrings to ensure a correctly formed JSON string within XCode

I am reading string data from a PLIST which I am using to create a JSON string (incidentally for use within Facebook Connect). NSString *eventLink = [eventDictionary objectForKey:EVENT_FIND_OUT_MORE_KEY]; NSString *eventLinkEscaped = [eventLink stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *eventName = [event...

iPhone build configurations - Entitlements.plist

Is it possible to have two Entitlements.plist files so that the one which the debugger can attach is associated with the debug build configuration whilst the one without would be associated with the release configuration? ...

iPhone needs cleaning targets before recompile

Everytime I do "Build & Go" the app to my device, It installs the app with a white icon, shows a black screen and "Failed to load NSMainNibFile MainWindow" in the debugger. However after cleaning, and then recompiling it works fine. Is this normal? How do I go about this? ...

Play midi file on the iPhone.

Is it possible to play .mid files directly via some API, or one have to convert the midi file to e.g. AAC first? ...

Responder chains for nil-targeted actions and events

Hi, Do events (i.e. -keyDown: and -keyUp:) follow the same responder chain as nil-targeted actions? Thanks. ...

How To Get Xcode Interface Builder To Pop Up When I Click My NIB File?

Hi guys, I am at work and trying to make an application for my company in Xcode, however when I click the Nib file I cannot get the interface builder to pop up. I am on a Mac that has lockdown control on it, and I am wondering if this is affecting my development environment? When I double-click the Nib file nothing happens. It just modal...

Selecting xcode project template

Hi I am new to iphone development. I have to develop an iphone application which is basically a questionare. When user runs the application he has to answer around 30 questions, each one at a time. I am planning to use the Navigation template project for this application. Where i can create a view with question and optional answers (in ...

Core Data unique attributes

Is it possible to make a Core Data attribute unique, i.e. no two MyEntity objects can have the same myAttribute? I know how to enforce this programatically, but I'm hoping there's a way to do it using the graphical Data Model editor in xcode. I'm using the iPhone 3.1.2 SDK. ...

Is there any way to view the Console (application output) from the Project view of Xcode?

The All-In-One variant of Xcode operates mostly how I would like my IDE to behave – and with the relatively new and nice inline debugger bar, often my code / fix cycles can be completed within the Project view without switching to the Debug view at all. This is handy because I customize my editors just the way I want and I have the code ...

How to start a major iPhone app update in Xcode

I have an app in the iPhone app store and have released several minor updates to it. I want to begin work on some major feature additions and reorganization, but don't want to lose the source code of my most recent version in case everything goes horribly wrong. Should I start a new Xcode project from scratch and copy my existing source...

xcode location (installation path) help

Hi, I am new to mac os. I started to deveople Iphone appliactions and it was strange to me cause I had to look in finder everytime to open xcode so I moved it in applications folder. But is not working anymore and I dont know where was the prevoius location in order to move there again. Where should i put? Plzz help ...

Using XCode to learn C with K&R, but getting too many errors.

I'm want to learn C programming with K&R using XCode, but I can't even get the Hello World to work right - it's giving me errors it shouldn't, I guess because it's being very technical. Can I get XCode to relax on requirements? Would greatly appreciate some advice! Thanks. ...

Saving the audio file in documents directory.

Hello friends, I am developing a application where i have to save the audio file and later mail it. Can you give me some idea regarding this like the format in which it should be saved so that it can be played later anytime and also mailed. So please let me know the step wise process or any sample code would be helpful. Thanks in advanc...

Am I not understanding Obj-C at all? Why won't this NSLog message display?

main.m #import <Cocoa/Cocoa.h> int main(int argc, char *argv[]) { return NSApplicationMain(argc, (const char **) argv); } CoolClass.h #import <Cocoa/Cocoa.h> @interface CoolClass : NSObject <NSApplicationDelegate> { } - (void) applicationDidFinishLaunching : (NSNotification *) aNotification; @end CoolClass.m #import "CoolC...

Does Xcode have code autoformat feature?

Is any way to autoformat a source code in the Xcode IDE? ...

releasing View Controller which are in Dictionary - in objective c

Hello ! Every on here. I was just confusing a little bit for the following issue. I have coding in my project as follow. I am adding view controllers' view to the each cell of table view. let me explain how... An array, like these NSMutableArray *arrTbl=[[NSMutableArray alloc] init]; NSMutableDictionary *dOne=[[NSMutableDictionary a...

How to stop a LaunchDaemon in iPhone programatically?

Hi there I have a LaunchDaemon in my app. It fires perfectly on iPhone Start and keeps firing after a specific amount of time, but now i wanna know is there any way i can stop that launchDaemon and make it not fire if some condition is reached? ...

Xcode Selection in "Groups & Files" Tree keeps jumping to the enclosing Group

I have noticed this really annoying behaviour in xcode at the moment where I try and select a file in the "Group & Files" tree and xcode "automatically" un-selects it and moves the focus to the enclosing group. The SCM Group is in a perpetual spinning state and I assume that this is related however I can't seem to prevent it. There is n...