Re: Bottom - Source/Accessory ToolBar question
Re: Bottom - Source/Accessory ToolBar question
- Subject: Re: Bottom - Source/Accessory ToolBar question
- From: Graham Cox <email@hidden>
- Date: Tue, 14 Oct 2014 11:05:14 +1100
Pretty sure you have to make it yourself.
Making it act as a "gripper" for the split pane is easy enough, that class has a way to nominate an additional region for dragging the split bar via its delegate:
-[NSSplitViewDelegate splitView:additionalEffectiveRectOfDividerAtIndex:]
The gradient you have to create yourself, though NSGradient maks this easy. Unfortunately there isn't a built-in way to get that that will match the current OS appearance automatically, so if you want it to look flat on Yosemite you have to detect the OS version in your own drawing code. Otherwise it's a really simple view class, and the buttons are just added as subviews on top.
--Graham
On 14 Oct 2014, at 10:54 am, 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.
>
> Stunt Software's "On the Job" has this http://stuntsoftware.com/onthejob/
> ... Omni's OmniFocus had this -
> http://www.macworld.com/article/1132832/omnifocus1.html ... as does The Hit
> List - http://www.karelia.com/products/the-hit-list/mac.html ...
>
> Is there a simple way to create this? It looks like a simple view with a
> simple gradient --- but it does have gripper functionality. I just want to
> make sure I'm not missing something that every other desktop developer
> knows about. I think it is an older technique and might not be encouraged
> much by the HIG anymore (Omni has moved away from that style -
> http://www.omnigroup.com/omnifocus ) .... I almost want to know how, just
> for posterity as much as anything else.
_______________________________________________
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