
In this post I will introduce you my preferences window approach
For sure is not the only one you will come across, but is definitely one of the easiest ways. In this case the toolbar is created with Interface Builder so is compatible only with 10.5 or later. (less code)
So let’s start…
STEP #1 Preferences window controller
Click here to read more »
You ever tried to create a toolbar using Interface Builder?
I know that is not compatible with earlier versions of OS X but it is so easy, you can’t even imagine! You simply drag and drop the NSToolbar to the window and you have implemented one of the standard interfaces for your preferences window!
Although you will notice that toolbar items are not selected! You need to add the code, to get the selectable toolbar items!
-(NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar {
return [[toolbar items] valueForKey:@”itemIdentifier”];
}
