interface-builder

tab bar controller and placing objects

I'm using a Tab Bar Controller in Interface Builder with 3 navigation controllers. IB is not allowing me to put more than one object in a view controller. For instance, I can't place both an image and a rect button or two images etc... anyone know if i'm making a mistake here? i hope i explained it clearly enough. i've attached a scree...

UIScrollView only works in landscape

Hello- Trying to get up to speed on UIScrollView for an app that I'm working on. Found a tutorial at http://www.tckdeveloper.com/Tutorials/iPhone/ScrollViews.html that helped out and that got the scroll view working in landscape mode. Started adding more content to the view so that scrolling was needed in the portrait view as well. When...

use three20 ui into interface builder

hi all, I added to my project three20 lib, compile ok with no problem... but If I wish add a TTLabel for example directly by Interface Builder, how can I do this? thanks in advance ...

XIB files vs. defining layout in code in iPhone

Aside from the WYSIWYG editor, what are the advantages of using XIB/NIB files over defining the layout in code in iPhone/iPad/iOS? While I don't find XIB files much useful, many iOS developers do, which makes me suspect I might not know their benefits or how to use them properly. ...

How to reuse common subelements of a custom UITableViewCell with iOS Interface Builder?

I have several custom UITableViewCell, which share a lot of common subelements. I tried creating a UIView and using it as a subview for all the table cells, but obviously this wouldn't work, since entities in IB are object instances, not classes or templates. How can I capture these common subelements in a custom control and drag it i...

UIButton resizes when I change font?

I have several UIButtons, I'm trying to bulk change the font for all of them in InterfaceBuilder, but when I change the font, they auto-resize to the original image dimensions instead of what I had them set to, screwing up the layout. I would like to avoid having to resize and move everything around again any time I change the font. I ...

make an osx preference panel with section

I need to make a preference panel with section like this. but what is the exactly compoment has effect like these (section I means "General,Accounts,RSS...") ...

iOS Launch Images for UITableView

According to the iPhone Human Interface Guidelines every app needs a launch image. My app is just a navigation controller which contains a table view. How can i simulate an empty tableview and navigation bar as per the guidelines. "Simulate Interface" in IB fills the view with the standard California data. I tried creating a basic navig...

Problem with IB

This is my first post on SO, so hi! I'm new to Xcode and Obj-C too so don't be too harsh. I am following the demo from Standford University youtube.com/watch?v=L-FK1TrpUng For some reason i've hit an error. Rather than starting from scratch i'd prefer to figure out where I have gone wrong. Ok so here goes. I have two view controller...

Adding a navigationController to a xib file in interace File

Hi all, I have a existing xib file, it's a simple uiviewcontroller, but now I want a put a navigation controller in this xib file, because this view is modal, so the navigation controller in the mainWindow don't work. So, if I put a navigationController in my xib file, what is the view that I must link with the file owners..? ...

How much do experienced Cocoa programmers rely on Interface Builder for wiring up their apps?

In IB one can instantiate controllers, build up references to UI elements, and define action targets. It is also possible to do that programmatically. I wonder what (most) seasoned Cocoa developers prefer? In many other environments, I would not bother too long with interface builders (lower case), but the Apple tools are clearly a clas...

View from the xib file is not showing/opening...

Im having strange problem.. Im trying to open a View in the Xib file.. when I double click it.. I am not getting anything ... I don't see the view.. but when I run the App ... view is there.. whats wrong why I can't see the view ??? plz help... Thanks in advance.. ...

how to add a uiscrollview in IB

hello, how is it possible to add an image to be set inside an uiscrollview using just interface builder and no code. i tried simply adding an image into the scrollview and it didnt work. i know this is a really simple answer however i didnt find any IB related help on achieving this ...

NSOpenGLView Subview Not Redrawing

In interface builder, I have an NSWindow with an NSView subview, and a custom NSOpenGLView as a subview of the NSView. I have my depth buffer set as 24 bit and a double buffer enabled. Everything else is set to the default value. I've used my NSOpenGLView elsewhere so I know the OpenGL parts work correctly. If I put an NSLog call in ...

tranisition from iphone to ipad nibs

hello, i am wondering how its possible to have an iphone nib that has some uitextfields and some labels to be automatically repotitioned if the device is an ipad. (i dont want a second nib) im trying to get my iphone nib to autoresize in the middle of the screen if the device is an ipad so that all the text fields and buttons arent place...

xcode - how to write multiple lines in a label

I have a xib file of type View XIB. In it I have a View controller, and in the View controller I have a label. I have long text that I want to break, but it doesn't - it gets truncated. I tried this solution - I did it in the attribute window - but it doesn't help. ...

To set an order of initialization of objects at an application launch

It is possible to set an order of initialization of objects at an application launch? For example: I have two objects in IB: myObj1, myObj2. Both of them implement method -initWithCoder: Properties of objects sets in IB. myObject2 Initialize is depend from properties of myObj1. Question: Is exist methods that set order of objects i...

How to controll second UIView (subview) from a different UIViewController file in one XIB

Hi Guys. I am strugling on the following task. I am trying to control my subview from another viewController class. What I did and does not work is this. I inserted an object and changed it class to my second viewController class. Then I connected its UIButton outlet to a button I have on my subview. I then connected the buttons ...

NSTableView leak

I wrote a very simple to-do-list program(it only has 3 methods). Then I did a Build&Analyze to make sure everything checked out. When I used the Leaks performance tool it told me I had a leak. I couldn't figure out where the leak was coming from so i commented out ALL of my code and still had a leak. So for a test I made a NEW cocoa proj...

building stretchable Image in interface builder

Hello Everyone, I am trying to build a stretchable image in interface builder. Is this even possible? I have searched the web and cannot come up with a proper solution. I'd appreciate any answers. ...