On Oct 13, 2014, at 6:54 PM, Luther Baker <[email protected]> wrote:
> A few years back, many Mac apps had a similar looking bottom bar on the > left hand side of the app. Specifically, apps that had a "Source" style > outline view on the left hand side had this silverish gradient styled > bottom bar that often consisted of "plus" and "minus" buttons on the left > and a gripper control on the right. > Is there a simple way to create this? It looks like a simple view with a > simple gradient --- but it does have gripper functionality. Since the buttons that go in such a button bar are usually gradient buttons, I have used an NSButtonCell configured as a gradient button to do the drawing of the background. That way it will definitely match the style of the buttons. Apple is deprecating the use of NSCell and its subclasses. You could use an actual NSButton (or make your view class a subclass of NSButton) and make it non-interactive. Drawing the actual grip lines is done manually or with an image. As Graham noted, the grip functionality is a built-in feature of NSSplitView, provided you implement the relevant delegate method. Regards, Ken _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
