interface-builder

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

Building UITableViewCells in Interface Builder

I am wonder if it is better to build my cells in Interface Builder, or programmatically? The reason I am leaning toward IB is that my cells are going to have a bit of customization, and it would be much easier this way. Are their drawbacks to the IB approach? Also, are there any good tutorials about how to use a cell in IB? ...

Objective-C: How to use both "." and "," as a decimal separator or at least convert one to another on-the-fly

I have an instance of NSTextField, e.g. someTextField, for which I will use the number formatter to limit the input to numbers only. The problem comes with the localization combined with the specific keyboard layouts used. I would like to allow both the, say, american and european users to enter their localized decimal separators. As ...

XCode/Cocoa + Quartz Composer + Interface Builder woes.

Hi, So, I can't seem to get this (I thought rather simple) Cocoa app working properly. I have a Quartz Composer patch which writes text files based on GUI input, then recalls the text files and displays them on a second display (ie projector.) Everything works as expected from inside QC. That's not (as far as I can tell) the problem....

IBActions foo and foo:

In Interface Builder I in Library->Classes when I select a class that I made in XCode, then display the Actions, I can see two with the same name: foo foo: What is the difference between these two foos? ...

How to create "Reference Bindings" in Interface Builder?

I had some sample code I was working on and broke the link to a Reference Bindings and can't find how to get it back. The docs are not helpful at all and google is not return anything useful. The original looked like this http://mp.polymicro.net/pastebin/20100821-CaptureIt-Picture-1.png ...

How do I make Interface Builder connections programatcally?

I'm building an iPhone app with xcode and IB and I find it very tedious to have to manually create oulets and actions and then draw lines between interface elements and the controllers. Every other IDE I've used does this automatically, so why not IB? How do I create the outlets, actions, and connections programatically? ...

Is someone willing to look at my (very small) project on DropBox and give me a hint on my IB connections?

Hello, I am working on a very small (one view) iPhone app (iOS 4.0.2 on Xcode 3.2.3) and I think that I am missing something in how I have made my IBOutlet and IBAction connections in IB. I am hoping that one (or several) of you kind folks out in the ether will be willing to connect to my dropbox and dl the project and give me a hint as...

How to do bindings from Interface Builder with custom control?

If I want to bind to properties of my custom control from Interface Builder do I need to write my own IB plugin? Will I have to do it programmatically otherwise? ...

UIView Subview Does not autoresize on orientation change

In my iPhone app, I have a view controller with two views (essentially, a front & back view). The front view is the main UIView, and the back view is a secondary UIView which is added as a subview using [self.view addSubview:backView] when showing the back and [backView removeFromSuperview] when hiding it. However, when the orientation c...

How do i get to the subviews of UITabBar in XCode 4

(The videos/tutorials I have seen for XCode 3* doesn't help me). I am talking about the view view-controllers associated with each tab-button. Olav ...

Getting iOS outlets wired in InterfaceBuilder

I'm new to developing in iOS and succesfully ran through a tutorial on how to create and connect outlets in a Mac OSX Cocoa App. However, when I try to follow the same process for my iPhone app, I keep hitting walls... (Apologies for the lengthy example- please bear with) Project A: In XCode: Create new Mac OSX Cocoa Application Cre...

How to load several nib files with NSBundle loadNibNamed: ?

I'm trying to have my view hierarchy loaded through calls to loadNibNamed. For a single nib, in my ApplicationViewController : UIViewController : - (void) loadView { [super loadView]; [[NSBundle mainBundle] loadNibNamed:@"ApplicationViewController" owner:self options:nil]; } But then in Su...

iphone: Find other UI Elements inside UITableCell without using IBOutlet

I have a bunch of custom UITableCells that I have built in interface builder. These are then associated with their correct cell index and every looks great in my tableView. Each cell has a few buttons, so rather than creating an outlet for each and every table cell button, is there a way to just "find" any UIButton types within the cur...

best practice for creating repeating cocoa UI element groups

Anyone have any examples of methods for creating a UI with multiple (one or more) lines (groups) of UI elements? There will be at least two different "groups" of elements (labels, text fields, check boxes, etc), but there will be common columns (headers). The number of rows (lines) of elements is determined at run-time - there will be ...

Localization of views

Hello, I am trying to make my app localized. I have followed this procedure http://www.switchonthecode.com/tutorials/a-simple-localization-example-for-the-iphone. And have deleted all localization and done it over again. I've seen other tutorials with exactly the same procedure. My view to localize is named InfoView.xib. I have: ...

nib no longer displays

One of the nib files in my program has stopped displaying when loaded. In desperation, I've tried rebuilding it from the ground up. When I first created the new file, with a xib dressed up with the labels and text fields, but without any code in the .h or .m (other than the starting defaults) that .xib would display. Once I cut and past...

Application crashes with UITextViewDelegate

Hi, I'm new to iPhone programming and Objective-C and am having some trouble with my UITextView. I have a view with a text view as its subview. I created a separate class which I want to be the delgate of the text view. In my header for this delegate class, I have the statement @interface MessageTextViewDelegate : NSObject UITextVie...

login form in iphone native application

i am trying to do the login form i have created two uitextfields for username ,password and one uibutton for login. when i enter password in password textfield i want to display all the text as '*' or any special characters like in the following images is there any default ways in sdk to do this or we have to do it logically if any ...

Change "Controller Key" list for bindings in IB Inspector

Hello. I have next question: I create own Controller ( myController:NSObjectController ) and it has own attributes, for example NSString* title; Now I want to bind this attribute to some text field. Can I made that attribute 'title' display in 'Controller Key' menu of inspector binding window in IB; (There where 'selection', 'canADD'...