Re: Glossy bar at bottom of Mail and NetNewsWire
Re: Glossy bar at bottom of Mail and NetNewsWire
- Subject: Re: Glossy bar at bottom of Mail and NetNewsWire
- From: Simon Whitaker <email@hidden>
- Date: Wed, 16 Aug 2006 23:11:17 +0100
Worth knowing that NetNewsWire uses RBSplitView, which is available
free:
http://www.brockerhoff.net/src/rbs.html
(Also Path Finder, Font Explorer X, Gizmo Project and many others,
according to the RBSplitView website)
On 16 Aug 2006, at 9:31 pm, I. Savant wrote:
Eric:
You need a custom view for the left-hand side (the view with the
glassy bar) and you need a custom split view with a 1-pixel divider
thickness. These are two separate things you'll need to create.
For the split view subclass, override -dividerThickness to return
1 (one pixel wide). Override -drawDividerInRect: to fill the entire
rect with light gray or whatever you desire. Done.
For the pretty mail view, you'll want a custom NSView subclass.
In drawRect, define an area the height of the bar at the bottom. To
exactly copy the gradient you can (with your favorite graphics
tools) copy a 1-pixel-wide section of the bar. Add that image to
your project. Using the well-documented drawing routines, you'll
composite that 1-pixel-wide image across the width of your view's -
bounds, at the bottom of the view ... this should stretch it across
the view, giving you one long, solid bar. You can draw the grip
lines in code or composite them yourself from another "borrowed"
image capture from Mail's own bar.
To handle the resizing, you might try defining a rectangle around
the grip area and tracking mouse moves, adjusting the size as
needed. This page should get you started:
http://www.cocoadev.com/index.pl?DraggingNSViews
Hope this helps.
--
I.S.
On Aug 16, 2006, at 3:49 PM, Eric Czarny wrote:
Hey All,
I have been toying with UI designs and was wondering if anybody
has any
suggestions on how to recreate that glossy bar at the bottom of
the main
windows (both contain an 'Action' button, in case it wasn't clear
what I am
referring to) in Mail and NetNewsWire. Ideally mine would act as an
NSSplitView as well. Any suggestions?
Cheers,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Simon Whitaker
mail - web - flickr
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden