I have a toolbar, with two items, both selectable. When I click on an item it shows as selected, as you can see here:

I’m unable to set an item initially. At first both items are unselected, but I want the first to be selected. This is how things look until I manually click on an item:

What must I do to set the first item as selected at application startup?
So you’re using
NSToolbar– usesetSelectedItemIdentifier. Each of your items should have a unique Identifier specified in Interface Builder.For example, I’ve just created a simple project with an NSToolbar in the main window view, added two items (from the defaults), and hooked up an outlet as below:
AppDelegate.h:
AppDelegate.m: