FROM : Rob Keniger
DATE : Mon Nov 05 03:57:09 2007
On 05/11/2007, at 3:33 AM, <email_removed> 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
DATE : Mon Nov 05 03:57:09 2007
On 05/11/2007, at 3:33 AM, <email_removed> 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
| Related mails | Author | Date |
|---|---|---|
| jesse | Nov 4, 18:33 | |
| Chris Hanson | Nov 5, 01:00 | |
| Rob Keniger | Nov 5, 03:57 | |
| Jesse Grosjean | Nov 8, 22:29 | |
| Ken Ferry | Nov 8, 23:00 | |
| Andrew Kimpton | Nov 9, 22:42 | |
| Ken Ferry | Nov 10, 02:10 | |
| Andrew Kimpton | Nov 10, 04:41 | |
| Jesse Grosjean | Nov 10, 05:30 | |
| Antonio Nunes | Nov 10, 08:41 | |
| Jesse Grosjean | Nov 11, 16:28 |






Cocoa mail archive

