interface-builder

Combining two iphone applications (1 ViewController, 1 TabBarController)

Hi there, I am currently working on an application in which I am making a catalogue that will contain different products. So far I have made my startup menu, which includes three buttons (one for the catalogue, one for settings and one for instructions). When pressing the catalogue button, the app switches to the CatalogueViewController...

Can you create a UIBarButtonItem with a Custom View in Interface Builder

I know how to use initWithCustomView to create and add a UIBarButtonItem with a custom view in code. But I prefer to do things like this in Interface Builder when I can. I can't seem to find any way to create a custom UIBarButtonItem and set the custom view. ...

NSDictionaryController Selection as the Content of another NSDictionaryController

Basically I have two combo boxes whose content are bound to two NSDictionaryControllers. However the content of the second combo box depends on the selection of the first. How can I accomplish this in interface builder taking advantage of the fact that my objects implement KVO protocol. It seems that the bookComboBox selection changing d...

UIScrollView moves on its own

I have a full screen UIScrollView that has several possible layout configurations. It is basically a "contact" card eith some buttons, imageViews, Labels , and text fields. When it loads, buttons will be moved or removed based on the content available. Oddly, the Scorll View does not always start in the same position. Sometimes it loads...

NSWindow created in IB won't show modally in the application

Hi, I have an application that when pressing a button it should show a modal window. I have some questions about it but I'm going to narrow it to what it's giving me a headache. I want to add that I'm already doing something alike that when applied to this particularly case won't work. What I already do is to show modally a NSOpenPan...

iPhone: Create a reusable component (control) that has some Interface Builder pieces and some code

I want to create a reusable component (a custom control) for the iPhone. It consists of several standard controls prearranged on a View, and then some associated code. My goals are: I want to be able to use Interface Builder to lay out the subviews in my custom control; I want to somehow package the whole thing up so that I can then ...

NSArrayController -(selected object)-> NSUserDefaults

I have created a preference pane that allows the user to select a QTCaptureDevice. In Interface Builder, I bind a KVC-compliant method in my model class that retrieves an NSArray of QTCaptureDevices to an NSArrayController, which is in turn bound to an NSPopupButton. This all works; the list of QTCaptureDevices appears in my NSPopupBut...

Trying to understand QTCompressionOptionsWindowTest

Hi, I'm trying to build an application that uses QTKit, with some compress options. I saw this example in the apple developer page QTCompressionOptionsWindow that uses a Window for that purpose. in MyController.m line 65 there is a comment: // ******** Compression Options Window ***** // create our window with the media type and se...

Interface Builder Plugin Image inspector property problem on load

Hi. i have created a custom NSView that displays an image. i have created a property in Inspector view with binding to File's Owner. Everything works fine in runtime image changing. But nothing is loaded when i save and load xib file. here is the simplified code: IBDocument *document = [IBDocument documentForObject:self]; [self->defau...

File's owner not responding when control dragging

Hi, I am beginner in iphone dev so excuse the simplicity of the question. When I do control drag from a slider in my view to "file's owner", the methods available in my file's owner class do NO LONGER show up. In fact, I can't even slect "file's owner" anymore. I can however select "first responder", and it's methods do show up. When...

Moving and existing UI on a UIScrollView

I have some xibs with all sorts of text controls (UITextFields, UITextViews). Since the keyboard obscures some of these text controls when text input starts, I followed Apple's guideline for managing content located under the keyboard. In short, the solution involves moving all interface elements on a UIScrollView. Doing it from Interfa...

Interface Builder Plugin crash with assetLibrary:didFinishDraggingAssets:info:shouldSlideBack:

hello I created Plugin for providing access to my Frameworks objects. Objects are working good except one controller. When I drag him from library to file arise very interesting assert. Assertion Message: An exception was raised while -[IBLibraryController assetLibrary:didFinishDraggingAssets:info:shouldSlideBack:] was executing. O...

How to insert a subview with xib?

Hello! I'm confused something fierce over having multiple views. I simply want to have a button on my main view that activates a new view, which in turn would have an (x) button which goes back to main view. For the life of me, I can't figure out how to do this with two separate .xib files. How might this be done? Thanks! ...