interface-builder

Unfamiliar with technique to solve pre-populating textfields (w/out access to a viewDidLoad or similar method) on Mac Desktop

Hey, I have a mainMenu.xib - that sets up all my interface items (button, textfields, etc). I have a LogController that has access to all these items via IBOutlet and IBAction. Works fine - All connected and running well. However, I want to have NSUserDefault values pre-populated in the textfields. However, I can't figure out how - si...

iPhone and User Defined Runtime Attributes

What happened to "User Defined Runtime Attributes" under the Identity inspector in Interface Builder when building iPhone UIs? I used to define a custom outlet for UITableView's tableHeaderView in versions before 3.1/3.2 or when it might have disappeared. ...

How do you create a Keynote-like interface in Cocoa and IB?

Hi again, the app I want to create will have an interface very like Keynote, with a list of pages on the left and one page in full on the right. These kinds of interfaces are very common yet I don't know how to do them in Interface Builder. Are there any ready-made components? Apple doesn't offer any, afaik. Or does every developer re...

IBPlugin and paths to framework

IBCocoaSimulator crashes when IB cannot find the framework, I assume that happens to you too. I can run IBCocoaSimulator without crash, when I manually copy my framework+ibplugin from the build dir into /Users/username/Library/Frameworks. I'm doing this with Finder, this is not optimal, but works. I have searched for a smarter way and ...

What's the correct way to perform initialization code whether an object is loaded from a nib or created programmatically?

I've noticed that if you load connected views from a nib you have to override initWithCoder if you want to add initialization code because the designated initializer doesn't get called (which does make sense), and if you don't load the view from a nib then the same code needs to be executed in the designated initializer. So in order to ...

How do I set up a proxy object in the main application NIB?

Hello! I would like to set up a proxy object in the application NIB file. The problem is that the NIB file is the main application NIB that gets loaded automatically by the application and therefore I cannot set up the UINibProxiedObjectsKey dictionary as described in the documentation. Is there a way to set up a proxy object in the main...

Is there a way to change the height of a UIToolbar?

I've got a UIToolbar in Interface Builder and I've noticed that it's locked to being 44px tall. Ideally I'd like to make this larger. Do Apple allow resizing of this control? and if so, how do I go about it? ...

Iphone View explanation in detail (View, Superview, etc)

Hey, I'm looking for an in-depth breakdown/explanation of the iphone's view usage. Like, what controllers have what types of views, how they relate (child <> parent), how they can be nested, added and removed, etc. Preferably something with some pictures would be nice too (I'm a visual learner). But yeah, in-depth, technical, explana...

Unable to write to NSTextField from Model Controller object

After always running monolithic blocks of code from within my AppController object, I've just learned how to modularize my code using separate model controller objects (so much neater and less confusing to work with :-)) My simple test app has a main AppController and two model objects (Model1 and Model2). I can successfully pass data f...

How to specify the view controller classes to be used by UITabBarController?

In interface builder I select the Tab Bar Controller item. The inspector shows me a list of associated view controllers. For any strange reason, I can not define anywhere the exact name for an view controller. I have an DetailsViewController and an SetupViewController. However, I can only select generic names such as "Navigation View con...

Setting up a Navigation Controller with a Map View in Interface Builder

I'm trying to create a modal view which pops up when the user presses a button. The modal view has a navigation bar with a map view as the main view. I'm having trouble setting this up in Interface Builder. When I set the view outlet for my File's Owner's view to the view inside the Navigation Controller, the only thing that show up is t...

How to disable AM/PM in UIDatePicker

How to disable or hide AM/PM in UIDatePicker from code / interface builder? I want to have 24 hours time picker mode in UIDatePicker. Please help ...

UISegmentedControl - altering height in Interface Builder

I'm creating a number of static custom UITableViewCells and have dragged a UISegmentedControl onto one of the custom cells. Whilst the segmented control allows me to alter its width I cannot alter its height in Interface Builder (that property is greyed out on 44 in the 'size' section of the property inspector). I know that a UISegmen...

How do I change the table and cell backgrounds to custom images in Interface Builder and xcode?

How do I change the basic table to custom images in Interface Builder and xcode? Interface builder provides a boring white background for each cell. I want it to look more custom. I want to change that into something like this: http://tinypic.com/view.php?pic=51ufwg&amp;s=6 Thank you. ...

Possible bug in Interface Builder?

Hi, I've a window with a horizontal split view. On the bottom pane of the split view, I have a nssegmentedcontrol, aligned to the center. On the bottom of the nssegmentedcontrol I have 5 tabs that are controlled by the segmented control - click in one of the cells and the corresponding tab opens. My problem is, if I completely minimize...

Making a subview with InterfaceBuilder in Cocoa OSX

I usually don't use interface builder but from what I have gather it seems that interface builder if mostly for building self contained window. Is it possible to create a view with IB and then import this NIB file and use it as a subview? ...

Weird layout problem with UINavigationController.

I've configured a NIB as follows: ...but when I display this NIB as a modal view controller, it appears on the simulator as: I recall seeing this problem a long time ago on a project, but I can no longer remember what I did to fix it. Any idea what I've done wrong here? Thanks very much. ...

UITabBar + UINavigationBar conflict title

Hi, I have a UITabBar and a UINavigationBar created in IB, when I launch my application everytime I navigate the UINavigation title change because I'm using self.title = @"NAME"; my problem is that the UITabBarItem will change with the same name at the same time. I want to put a static name only for the UITabBarItem, how to do it i...

How do create a one window app with cocoa and interface builder?

I'm just starting out with interface builder and I'd like to create a tabbed, single window app similar in design to Coda or Versions. However, i can't figure out what approach I should be taking. I think I'll probably need to create my own tab bar and some sort of controller to load/unload different 'views', but what should the individ...

Get size of IBOutlet UIImageView

Hello, I need to get the size of an IBOutlet UIImageView drawn in Interface Builder. But if I read the IBOutlet UIIMageView.image.size.width or .height in the viewDidLoad, viewWillAppear or viewDidAppear method I always get 0 !!! Where (which method) and how (may be an other variable ?) can I get this information ? Thank you for your...