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 […]