interface-builder

Assigning same action to multiple buttons at once

Hello, can I assign same action to multiple buttons in the Interface Builder once they are all selected by one connection? ...

What's the code equivalent to the autoresizing mask anchoring options in IB?

How can I get a NSTextField (or any object) to respect the autoresizing options below via code? I want to add new objects to the view dynamically, but when I increase the height of the view, they are anchored to the bottom left, as opposed to the top left as shown, and so new textfields are dropped on top of the old ones. Is this even p...

How to set up UIScrollView in Interface Builder with UI elements outside the main iPhone view?

I am building a data entry form in my iPhone app, and there are more data fields than will fit on the screen. I figured I should put them into a UIScrollView so that the user can scroll through the form. What's the best way to build this in Interface Builder? I know that I can do it programmatically, but I'd like to do it in Interface Bu...

How to unit-test IBOutlet connections ?

I've been trying to verify in my tests (GTM) that when a nib file is loaded, its IBOutlets were properly connected in InterfaceBuilder. However I keep getting nil references, despite calling [myViewController viewDidLoad] before asserting that the reference should exist. Are there any gotchas here, or should this be mocked somehow ? c...

How to show/hide different windows using obj-c in xcode.

Hi, I' wondering how I would go about having two windows in interface builder and then being able to show and/or hide either of them from xcode with objective-c? Any ideas? Thanks ...

Managing interface builder's window layout

I have my macbook pro hooked up to an apple cinema display. I want to work on my code on the laptop but have interface builder on the cinema display. It needs to be this way because my laptop screen doesn't have the resolution to show a full iPad interface layout in IB so I would need to scroll up and down. The thing I am fighting with ...

How do I compose a subview of the root view in Interface Builder?

Hello. I'm trying to create a view that's full of controls (buttons, text views, labels, etc.) that can scroll, since I don't have enough screen space for all the controls. I understand that I need the root view in my application to be a UIScrollView and I need to attach to that a UIView with all my controls in it. The problem is, aft...

How can I fix the behaviour of UIPicker and UIDatePicker views when they are pushed to a landscape navigation controller?

I have found something I don't understand with the UIPicker and UIDatePicker views - when I make a view with either of these, centered at the top of the view, I set it horizontally to have all the auto resize options selected (Looks like: H<-->H in interface builder, third tab of the inspector in the red box). This works as expected whe...

IB: Where is the Bindings Pane

Hello, Cocoa newbie here... I know this sounds stupid but I can't find the Bindings Pane in Interface Builder. I have the latest xCode( 3.2.3 ) but tried with other versions too, still the same. The Tools menu does not list it and Cmd-4 opens up the Identity inspector. Screenshot What could be the cause? Thanks ...

How do I edit iPad-specific XIB after upgrading project to Universal

I have an app project that I upgraded to a Universal App for the iPad. XCode created a Resources-iPad folder and duplicated my .xib file in there with the -iPad tacked onto the file name. That's all well and good. But when I edit that XIB it doesn't seem to understand this is an iPad XIB. For instance, the Window object is 320x480 an...

How to see the tab bar controller in Interface Builder

I created a Tab Bar Application in XCode. Then I clicked on MainWindow.xib. In the document window there is a Tab Bar Controller. When you double-click on the window icon, the window is shown. Shouldn't something similar occur if you double-click on the Tab Bar Controller icon? ...

Create a second Window

Hi I want to run an OpenGlView in a second window. I can open this window "simualtion", but there is nothing to see, which I created in the Interface Builder. I think the problem is that I created a completely new window. I try this way, because I want to close the old window and open the new one with one and same method, because I want ...

Iphone interface builder

hey all my question about how the developers makes their interface the buttons, slider, segmented control and other is any program can make those thing ? and then import it to interface builder ? my brother is a graphic designer and he work a lot a 3d modeling he can make all those thing in 3ds max, maya or cinema 4D but how to tell the ...

Sharing NSMenuItems across multiple NSMenus...

Hi, I've got multiple menus in the same application and would like to share submenus between them. For simplicity's sake, let's say one is the main menu, the other the dock tile menu.. I've got submenus that contain quite a few items (let's say font names), many of which I need to keep an iboutlet reference to for various reasons. In...

Can't connect IBOutlets in XCode Tab Bar Application

I started with a Tab Bar Application. I deleted the SecondViewController.xib and in Interface Builder I deleted the associated tab bar button. Then in XCode I created a SecondViewController and a ThirdViewController. I added two tab bar buttons in IB and made these view controllers the file owners for their respective buttons. Then in th...

Does Value Changed event work for Text Fields at all in Interface Builder?

Hi, I'm trying to set up methods to be executed when value of certain text field is changed and saved. I tried to hook up this method with Value Changed event in Iterface Builder. It doesn't respond and I use this same event with some other control/classes and it works. There is also no delegate method usable for that purpose. Last re...

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 ...