interface-builder

NSFormatter used with a NSPopUpButton

I have a NSPopUpButton whose content values are bound to an NSArray of NSNumbers. The NSPopUpButton correctly displays the array of numbers in it's popup-menu. However, when I change the selected value, I receive a message: HIToolbox: ignoring exception 'Unacceptable type of value for attribute: property = "tempo"; desired type = NSNumb...

How to disable resizing of the subview of NSSplitView in Interface Builder?

I've created in Interface Builder a NSSplitView with two subviews. I want the left-side view to have fixed width. I've tried to define autosizing rules for both subviews but the left subview still changes width on window resizing (split view fills up a window). May be that caused by NSSplitView's Autoresizes Subviews property? (I can't u...

Should I use Interface Builder to create Table Cells?

I'm doing a tableview, whose data provider can offer quite a lot of data. There will be an additional Details view for each cell, but I'm thinking that the initial cell could (should) show quite a lot of info, too. Better usability, fancy look & feel, fun to create. The problem is that it's quite a lot of manual coding to create a cell ...

How to do UITextField's leftView in Interface Builder?

Looking at UITextField item in Interface Builder, cannot see any way to set leftView property. Would like the put there an icon to show user that this is place for text input. The overlay view displayed on the left side of the text field. @property(nonatomic, retain) UIView *leftView Can it be set using IB at all? ...

How can I simulate the same Window layout as Finder?

How can I make a window with same basic structure as the Finder window (a menu/source list to the left with icons that can be organized, and the content in a larger view on the right)? ...

IKImageView and scroll bars

I'm trying to use the IKImageViewDemo provided by apple (http://developer.apple.com/mac/library/samplecode/IKImageViewDemo/index.html) and I'm trying to add scrollbars to it. I've tried two things: 1) embedding the IKImageView in a ScrollView. This had all sorts of weird effects, like the image was no longer located where it should have...

How to set NSToggleButton to start in state 0 from Interface Builder?

How can I in Interface Builder set NSButton of type toggle with Title and Alt.Title to start with the Title (e.g. the state 0)? The moment I set the button as toggle and set the Alt.Title it displays Alt.Title in View and I can't find the option to set it to start in the 'default' state (state 0). I could set it pragmatically but is th...

Need help understanding how IB-created UIViews are added programmatically

I am in a situation where one of my ViewControllers has many special cases and I need an elegant way of handling them. The general idea is that the bottom half of my View is identical in each case. The top half changes for each case. In accordance to DRY, I want to avoid make copies of my ViewController for each special case and changi...

IBOutlet keyword strictly required?

Hello there, I am pretty new to iphone programming therefore I apologize if my question could result trivial or obscure. In many examples and tutorials I have seen that in the declaration of the outlets within Xcode (interface section of the view controller) the keyword "IBOutlet" is used or it is not, in conjunction with the class the...

How do I create UIViewController using Xib-file?

Sorry if this question has already been answered but I can't find an answer. I'm creating an app in which I have an UITableViewController and when the accessorybutton in the right side of a cell is selected a new instance of a UIViewController should be created containing the interface found in a .xib-file. The new UIViewController will...

MainMenu.xib with dispositioned main window

Each time I create any type of cocoa project (document-based, with core-data and/or spotlight importer) and open MainMenu.xib, I get a warning sign in bottom right object palette window corner saying that window is out of screen bounds. Why is this so? Any remedy? ...

Enabling open file menu item in a non-document-based application

I would like to enable the grayed out open file menu item within a non-document-based application. Document-based applications automatically give you a nice open file dialog with file extension filters based on plist entries etc... Surely, a simple elegant method exist to re-enable this functionality. I have... Added document types to...

How to refer to an object instance created/instantiated in interface builder?

When working in interface builder you can layout your interface with different types of objects but I'm unclear as to whether these are instances of objects or some sort of factory method or something like that. Basically if you use Interface builder to layout your objects, especially with subclasses of uiview, how do you refer to a spec...

A problem when change view of NavigationController in InterfaceBuilder?

default it link to RootViewController when i want to change it to another view it got some crash did it have a solution (InterfaceBuilder) for change view to another class ? when run program got some error [Session started at 2010-01-20 10:17:14 +0700.] 2010-01-20 10:17:16.560 AsianDelight[2816:207] *** Terminating app due to uncaugh...

Unable to set text in NSTextView

::Edit:: It works now? haha, maybe I just didn't save my latest IB...who the hell knows. Thanks! Hey, This is my first time playing around with desktop applications (I have experience with iphone applications) and I'm stuck - My text view will not update to show any text: .m: @synthesize textView; NSString *txt = [[[NSString all...

Where is 'Class Actions' in the 'Object Identity' panel in Interface Builder?

I thought I was fairly experienced at iPhone development, but I'm tripping up on the Stanford iPhone course on the very first video http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.3124430053.03124430055 (38 mins in) Cannistraro, the teacher, drags an NSObject into the MainWindow.xib. And when he inspects the Ob...

Can NSCollectionView autoresize the width of its subviews to display one column

Hi, I have an NSCollectionView that contains a collection of CustomViews. Initially it tiled the subviews into columns and rows like a grid. I then set the Columns property in IB to 1, so now it just displays them one after another in rows. However, even though my CustomView is 400px wide, it's set to autoresize, the NSCollectionView...

Problem setting Value for UILabel (iPhone SDK)

Hi all, I'm reasonably new at the iPhone SDK, so please forgive me if this answer's ridiculously obvious. I have a ViewController connected to a .xib file (they are called FirstViewController) I also have a custom class called MyCustomClass. In this class, I have a method like this: - (void)setTheText { [myLabel setText:@"foo"]; ...

interface builder setters? please punch me!

if you have an IBOutlet on an ivar like IBOutlet UIView *view; @property (nonatomic, retain) UIView *view; that object created by ib will be managed by ib, but what if you have, UIView *view; @property (nonatomic, retain) IBOutlet UIView *view; does ib now use your setter to set that object? that would mean the setter has added +...

iPhone -- customizing a grouped table view in Interface Builder

I am writing an iPhone app. According to the design, it is supposed to contain a lot of grouped table views. In these views, the rows are frequently not similar to each other. For example, on one screen, one row is the name of a task, another is its owner, another is its description, yet another is its history (which is supposed to be...