interface-builder

A good place to find frameworks with Interface Builder plug-ins…

Someone on here recently recommended BWToolkit, and it really impressed me, so I started googling for more IB plug-ins. I've found a couple on random blogs, but haven't been able to find any kind of repository/aggregator for them. Anyone know where I can find more of these? Thanks. ...

How do I assign a name to a control and retrieve it in an event method?

I have a IBAction such as: - (IBAction)showPicker:(id)sender; How can I get the name of the control from the sender variable? I am typically a c# coder so have tried the following to no avail senderName = ((UIButton *)sender).name; I need something more descriptive than the control id (not the button title either). I have 5 button...

Looking for info on custom drawing of interface components (Cocoa)

It seems like more and more OS X apps these days are doing all kinds of fancy drawing stuff for custom controls. Apps like Twitterific, Things, EventBox, Versions just to name a few.... So basically I'm looking for any information on how to get started doing this kind of thing. Not sure if it is just done by subclassing controls and usi...

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController loadView] loaded the nib but no view was set.

From what I understand of the SDK, this exception is raised when the bindings in IB are not proper. But in my case, the view is loaded fine for the first two times. I then move back from the view using the NavigationController. The third time when I try to open the view, I get this exception. The fact that it opens correct the first two...

Bindings using Interface Builder (for iPhone apps)

How does one bind an iPhone SDK control (say a UISlider) using Interface Builder? Unlike regular Cocoa applications, the bindings tab does not seem to be present when the iPhone-app XIB is opened using Interface Builder ...

How to give NSWindow a particular background color

I am writing a cocoa application which has a NSWindow. I want to change the background color of the window to a specific color. But the window properties in the inspector only provide "Textured Window" alternative. How can I make the color of the window as desired? ...

How to create equivalent of Java's CardLayout or ASP:MultiView with UIView and subViews?

Ideally I'd like to be able to create the views in Interface Builder and then swap them with code. Any pointers to sample code or tutorials would be appreciated. ...

InterfaceBuilder - UIViewController subclass not recognized as subclass

I'm working on a simple iPhone app. I have 1 UINavigationController and 2 subclasses of UIViewController. I have a MainWindow.xib file, a PersonListView.xib, and a PersonDetailView.xib. The MainWindow.xib has the UINavigationController with the view linked over to the PersonListView.xib file. The PersonListView.xib has the File's Own...

Loading a Reusable UITableViewCell from a Nib

I am able to design custom UITableViewCells and load them just fine using the technique described in the thread found at http://forums.macrumors.com/showthread.php?t=545061. However, using that method no longer allows you to init the cell with a reuseIdentifier which means you have to create whole new instances of each cell at every cal...

Has anyone seen a tutorial of building a Cocoa Touch plug-in for Interface Builder

Does anyone know where I can find an example or a tutorial of building a Cocoa Touch plug-in for Interface Builder? ...

Larger alternative to default UITextfield font that looks GOOD

Hey there everyone. In interface builder i've created a UITextfield within a subclass of a UITableViewCell. The default font is just too small. If I make it bigger in interface builder it looks a bit ugly. Not as crisply rendered. I'd like a font similar to that used in the addressBook application when you edit a contact. The text thei...

I am having trouble making connections between code and Interface Builder

I am having a peculiar problem with the iPhone SDK. I have tried to run several tutorials from different sources on my development machine. The problem always seems to be in connecting the code to a view in Interface Builder. If I have a button or data field (or some other library function) and I declare some properties in the viewcon...

Interface Builder caching bad data (voodoo)

Sometimes IB will hold onto old or bad references, and I cannot seem to remove or edit them. EDIT I have made this a wiki question with the intention of gathering more data on the phenomenon. Answers involving situations where other coders have encountered this are welcome. This happened to me again last night with a table controller. ...

Using one NSArrayController from multiple XIBs

I'm having some problems displaying the contents of one NSArrayController in two windows defined in different XIBs. In my main window (in MainMenu.xib), I have an NSTableView which is bound to an NSArrayController In my second XIB, I have another window that contains an NSTableView. I created a new NSArrayController, and bound the tabl...

Releasing memory for objects added using Interface Builder

I have a situation where I build a view with a table and another view for table header (containing images and labels and buttons). Now I connected the table, image, labels, buttons to variables in my Controller class. Should I release the memory in -dealloc method for all those variables that I connected using Interface Builder? I believ...

On OS X, seperating a GUI into multiple NIB files and NSView subclasses

I am developing an OS X/Cocoa application and I want behavior like this: There is a sidebar with different options, let's say "Option A", "Option B", and "Option C". When you click A, B, or C, it loads a corresponding GUI into the main pane. Each GUI is a different NSView subclass, and it is defined in a different NIB/XIB file. For exa...

How to add a file selector/opener in cocoa with Interface Builder?

Hey all, I'm wondering how to make a button or input field in Interface Builder react in such a way that on click it opens a file dialog and lets you select one or more files and puts them into a specified array/table... Once the button is pushed and files are chosen (this seems a like quite trivial thing) I guess it will already conta...

link an Array Controller to an Array in XCode via outlets

hello, I'm trying to find a way to link an array controller to an Array. I know via an outlet I can fill textfields and even tableviews in the .xib file made with Interface Builder. I was hoping it would be possible to have one easy outlet (NSArray) and put it into an Array Controller. In turn, a table will link its contentfield to the...

How can I make an NSOutlineView where some of the entires are buttons?

I want to create an NSOutlineView subclass where some of the entries look like buttons. It would look something like this: + Fruits + Organic - Apples - Bananas [Add Item] + Non-organic - Cherries [Add Item] [Add Item] + Vegetables - Carrots [Add Item] Where all of the "[Add Item]"'s are buttons. I have...

How can I divide a bound array in parts that automatically fill the table?

I used this 'tutorial' to bind my array called 'collection' to a NSTableview on my interface: http://www.cocoadev.com/index.pl?NSArrayController The interfacebuilder stuff isn't that hard. It becomes difficult when I try to actually show the data in my array into the view. in my .h file: @interface MyDocument : NSDocument { NSMuta...