-initWithCoder: decoded bordered buttons, separator, transparency, and
automatic resize control using -decodeBoolForKey:, which returns NO
when a key is missing.
A CPButtonBar placed in Interface Builder as a
custom view contains none of these keys in its archive, clearing the
theme's values.
Each attribute now uses the archived value when the key
is present and falls back to the theme's value otherwise.
-[CPButtonBar initWithFrame:] set the autoresizing mask to
CPViewWidthSizable | CPViewMinYMargin, which pinned the bar to the
bottom of its superview.
Positioning a view in its superview belongs to the caller: an NSView created in code has no autoresizing mask, and a CIB sets it from the archive. Remove the assignment in -[CPButtonBar initWithFrame:] and add -[CPButtonBarTest testAButtonBarMadeInCodeHasNoAutoresizingMask].
Protects the add, remove and action controls placed below table and outline views by verifying that a button bar supplies usable buttons independently of the active theme.
* CPButtonBarTest: Verifies the standard size of the plus, minus and
action popup buttons; button placement within the bar, order and
shared borders; closure of the gap left by a hidden button; right
edge alignment of right buttons; and acceptance of application
buttons.