• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Glossy bar at bottom of Mail and NetNewsWire
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Glossy bar at bottom of Mail and NetNewsWire


  • Subject: Re: Glossy bar at bottom of Mail and NetNewsWire
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 16 Aug 2006 16:31:17 -0400

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
  • Follow-Ups:
    • Re: Glossy bar at bottom of Mail and NetNewsWire
      • From: Simon Whitaker <email@hidden>
References: 
 >Glossy bar at bottom of Mail and NetNewsWire (From: "Eric Czarny" <email@hidden>)

  • Prev by Date: Re: Cocoa binding and threads.
  • Next by Date: Re: Glossy bar at bottom of Mail and NetNewsWire
  • Previous by thread: Glossy bar at bottom of Mail and NetNewsWire
  • Next by thread: Re: Glossy bar at bottom of Mail and NetNewsWire
  • Index(es):
    • Date
    • Thread