NSTextView not Scrolling Vertically

November 6th, 2015

Filed under: Cocoa, Interface Builder, Mac Development | Be the first to comment!

I had a problem with a text view that would not scroll vertically. The fix was to select the text view in Interface Builder and use the size inspector to make the text view resizable vertically.


Connecting Menu Items to IBActions in a Mac Storyboard

February 23rd, 2015

Filed under: Cocoa, Interface Builder, Mac Development | 6 comments

A common pattern in Mac application development is to create a menu item, create an IBAction for that item in one of your classes, and connect the menu item to the IBAction. When the person running your application chooses that menu item, your application performs the IBAction. If you’re using storyboards to develop your Mac […]


Xcode 6: No Simulate Document in Interface Builder

September 26th, 2014

Filed under: Interface Builder, Xcode | 1 comment

In Xcode 4 and 5 you could test your user interface in Interface Builder by choosing Editor > Simulate Document. Apple removed the Simulate Document menu item in Xcode 6. The workaround is to use the assistant editor. After switching to the assistant editor, click the navigation button in the jump bar, which is to […]


Xcode 5: Auto Layout Buttons

October 15th, 2013

Filed under: Interface Builder, Xcode | Be the first to comment!

If you open a xib file or storyboard in Xcode 5, you should see the following set of buttons at the bottom of the canvas: These buttons allow you to perform common auto layout tasks. The buttons running from left to right are the following: Align Pin Resolve Auto Layout Issues Resizing Behavior If you […]


Xcode 5: New Xib File Format

September 26th, 2013

Filed under: Interface Builder, Xcode | Be the first to comment!

Xcode 5 introduces a new xib file format that works better with version control. New Xcode 5 projects use the new file format. If you have an existing project, selecting the xib file from the project navigator should prompt you with an alert asking if you want to upgrade the xib file to the new […]


Xcode 4: Finding User Interface Elements

April 4th, 2011

Filed under: Interface Builder, Xcode | 7 comments

One of Xcode 4’s biggest changes is its integration with Interface Builder. There is no longer a separate Interface Builder application. Select a xib file from the project navigator to create your application’s user interface. You may be wondering where the user interface elements are located in Xcode 4. They are in the object library. […]


Interface Builder 3.2: Outlets and Actions

September 20th, 2009

Filed under: Interface Builder, Xcode | Be the first to comment!

In previous versions of Interface Builder, you used the identity inspector to add outlets and actions to a user interface element. Interface Builder 3.2 moved this functionality to the Library. If the Library window isn’t open, choose Tools > Library to open it. Click the Classes tab in the Library window. Select a class. Use […]


Interface Builder 3 Change: No Subclass Creation

January 16th, 2008

Filed under: Cocoa, Interface Builder, Xcode | 7 comments

Older versions of Interface Builder let you create subclasses for Cocoa applications and generate source code files for the subclasses you created. As an example, you could drag an OpenGL view to a window, subclass the OpenGL view, and have Interface Builder create .h and .m files for the subclass. But Interface Builder 3 no […]