xcode

Tab Bar shows in simulator but not in Interface Builder

On my desktop when I create a Tab Bar application Interface Builder is not displaying it. On my laptop this is not the case. The problem is kind of hard to explain so I made a video and posted it here. http://www.youtube.com/watch?v=JO60BcPgWqk Does anyone know if this behavior is normal? ...

How does one add additional items to NSMenu in Interface Builder?

I'm using Xcode for the first time. I've been following a tutorial, and I'm completely stumped by something that's surely trivial. I've dragged a "Menu" from the Library into my "MainMenu.xib" window. Double-clicking this menu makes it appear. No trouble thus far. Editing the three items is intuitive, as is deleting items. How on eart...

3 split views on an ipad screen?

Basically, this is what I want: the screen divided into 3 areas (squares), where the contents (labels, buttons or other controls) rotate with the device. in portrait: x-top x size 768x768 x-bottom ------------+-------------- y-top | z-top y 384x384 | z 384x384 z-bot | z-bot in landscape...

Navigating .Xib files in an IBAction

I have an app with several views and controllers. They all work together fine in a TabBar. One of the views has a UIPickerView in it with a ToolBar above it with three tabbar items connected to IBActions, again working fine. I now want to use one of the tabbar items to change view instead of what I originally wanted it for. Trouble is I ...

iPhone app, running other code while flipping a view

In xCode, writing an iPhone app, should I NOT put code after/while flipping a view? I seem to get random crashes.... { FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideView" bundle:nil]; controller.delegate = self; controller.modalTransitionStyle = UIModalTransitionStyleFlipHor...

Calling a Method from a different Class - iPhone SDK

Hi all, I am trying to call the method "foo" which is in the class called "fooClass". In another class i have my appDelegate and I want to execute the method foo in applicationdidfinishlaunching. I have imported the class "fooClass" into the appDelegate header file and I did initiate it in applicationdidfinishlaunching with this: "fooC...

How to Include Chipmunk libraries to iPhone Xcode project?

[SOLVED] I copy the chipmunk folder structure from cocos2d+chipmunk template and build OK. Classes/Chipmunk/include/src for 'src' folder Classes/Chipmunk/chipmunk for 'include' folder Thanks to Beta for trying to help. ::::: I download chipmunk 5.3.1 and try with a simple example but I receive this compiled errors: Undefined symb...

Upgrading Xcode and Interface Builder

If I already have XCode and IB installed on my system, if I download the newest version and install it, does it automatically upgrade me to the newest version, or do I have to uninstall the old versions first? ...

html video code

Hello all, I am writing video code in an iphone, based on HTML. With the following code the movie will play but when I click done the video stops but the html page is gone, all I see is a giant video play button taking up the entire screen. Anyone have any ideas how to go back to the page where the video was clicked? a href="videos.m...

Can I include a framework in another framework?

I'm writing a framework (called Lighthouse.framework) that, in turn, uses code from another framework (RegexKit.framework, to be precise). I have copied RegexKit.framework into my own framework, so that it has a structure like the following: Lighthouse.framework/ Versions/ A/ Frameworks/ RegexKit.framework Ligh...

Multiple Copies of XCode - Testing code against older versions of iPhone SDK

I am interested in testing my current iPhone app against an older version of the SDK (3.1.3). I know that I can compile my code to run on this version of the SDK, but I want to test it to make sure it still works since I am using newer APIs and using weak linking so that it will continue to work on older iOS versions. Ever since upgraded...

How can I preload a Core Data database as a part of the build process for an iPhone project?

Here's my situation, and it's probably fairly common but I have yet to find a satisfactory way to do it. I am developing an iPhone application that will have a read-only, pre-loaded Core Data database stored in the app's bundle. I completely understand how to deploy such a thing. That isn't my problem. My problem is How do I pre-load t...

Why can't I assign variable value directly?

I am new Objective C. I am trying to understand and workout problems from Stephen Kochan's Programming in objective c 2.0. This problem is from chapter 8. What I don't understand is: why can't I assign variable values directly when I can get them. For example: This does not give me a error or warning. But it also does not set the v...

XCode - Can't access Repository to Configure

I have a working SVN repository (used the Bitnami 1.6.6 build), which I have validated is functioning with SvnX. Here's the symptom. I load up XCode, go the SCM menu, and select Configure Repositories, and then try to add a Subversion repository. Nothing happens. It was working (see note below) but now a new Repository isn't create...

attempting to initialize a mutable array, and then load it with images that are referenced by name

Howdy one and all, I am trying to write my first iOS app that is not out of a book (though I guess I am stitching things together like crazy....) At this point, I am attempting to initialize a mutable array, and then load it with images that are referenced by name (they are in with the project.) This is what I have so far, and based u...

UIImagePickerController not working on 4.0.2

Is anyone else having this problem? After upgrading to new xcode+sdk 4.0.2, the library image picker does show some built in images, but it never calls... - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo; Instead it calls... - (voi...

Can we know the contents of NSBundle in Xode project?

Hello, How to know the contents of NSbundle in XCode Porject?? bcoz issue is, I have placed a config.doc file in resource folder of my XCode project and i want to read the contents of that config.doc file, but it says that config.doc file is not found. How to solve this problem?? This is how my code looks like: -(void)applicationDid...

Creating Xcode project from command line

Hello, My question is how can i create and XCode project from the command line. By create I dont mean building a project. I mean how can i create a project forlder i.e shift + cmd + N. Regards M ...

How to edit the contents of resource file[Ex:config.doc] in XCode?

Hello, How to change the contents of .doc file in Resource folder in XCode? Like how we have the pathForResource to read the contents of file, do we have any method to write to or overide the contents of .doc in resource? Plz help.. Thank You. ...

navgation, tableview, tab bar

hi, i would like to design my app as follow: at start, nav bar with table view. when user select certain row, it will drill down to a view with tab bar, navigation table view. is this possible? the tab bar doesn't appear until a view is drill down. i have done the 2 view separately and no problem with each. but when i try to integrate ...