• 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: Smart way to get "etched" borders in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smart way to get "etched" borders in Leopard


  • Subject: Re: Smart way to get "etched" borders in Leopard
  • From: Rob Keniger <email@hidden>
  • Date: Mon, 5 Nov 2007 12:57:09 +1000


On 05/11/2007, at 3:33 AM, email@hidden wrote:

Can someone tell me what the smart way to get etched (not sure if that's
the right term) borders for a Leopard only app. My app will used a
Textured Window, and I want to have borders that look like the borders in
iChat at the top and bottom of the scroll view.


I know you can do this with non-textured windows by calling:

[self setContentBorderThickness:<bottom border width> forEdge:NSMinYEdge];

in the -initWithContentRect:styleMask:backing:defer: method of an NSWindow subclass.

This will give you a nice beveled bottom bar on the window.

Since textured and non-textured windows are essentially the same in Leopard except for the dark gray background this may be an option for you.

--
Rob Keniger
_______________________________________________

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


References: 
 >Smart way to get "etched" borders in Leopard (From: email@hidden)

  • Prev by Date: Comparing NSColor instances
  • Next by Date: Re: Comparing NSColor instances
  • Previous by thread: Re: Smart way to get "etched" borders in Leopard
  • Next by thread: initWithContentsOfURL question
  • Index(es):
    • Date
    • Thread