Re: Bottom - Source/Accessory ToolBar question
Re: Bottom - Source/Accessory ToolBar question
- Subject: Re: Bottom - Source/Accessory ToolBar question
- From: Luther Baker <email@hidden>
- Date: Mon, 13 Oct 2014 21:00:33 -0500
Thanks both of you!
-Luther
On Mon, Oct 13, 2014 at 7:21 PM, Ken Thomases <email@hidden> wrote:
> On Oct 13, 2014, at 6:54 PM, Luther Baker <email@hidden> 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@hidden)
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:
This email sent to email@hidden