cdyer
cdyer

Reputation: 1259

Creating gradient button bar in cocoa

My question is almost exactly the same as this question, however the answer accepted (and only) answer was to use BWToolkit which is no longer an option for me because it isn't compatible with Xcode 4.

enter image description here

How can I create a similar bar in interface builder or programmatically, without BWToolkit?

Upvotes: 2

Views: 753

Answers (1)

Dutchman
Dutchman

Reputation: 180

You can look at the source code of BWToolkit. It uses a custom NSView subclass to do the drawing. Cocoa hasn't got a built-in control for this.

Alternatively, you can use BWToolkit, but just the parts you need (BWAnchoredButtonBar, BWSplitView, BWAnchoredButtonBar and the NSColor and NSView categories). You don't need to include the entire framework in your app.

Upvotes: 2

Related Questions