FROM : Andrew Kimpton
DATE : Fri Nov 09 22:42:37 2007
On Nov 8, 2007, at 5:00 PM, Ken Ferry wrote:
> Hi Jesse,
>
>> You can see that right
>> below the scroll view there are two lines that form a etching of some
>> sort. From top to bottom, a dark (black?) line followed by a lighter
>> line.
>>
>> http://hogbaysoftware.com/files/leapardscreen.png
>
> Yes, there is something new here. Take a look at -[NSWindow
> contentBorderThicknessForEdge:] and friends.
>
> http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSWindow
>
I'm trying to get that look in my main window too - and unfortunately
nothing I've tried seems to work.
The window is a textured window it has a large view under the content
view which in turn contains some smaller views, a sibling to this view
is a button, a progress bar and a text field. I have approx 20-30
pixels of space above and below the large view (which contains the
other sibling views).
The large view has no 'etching' around it at all. Adding :
[[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSMinYEdge | NSMaxYEdge];
[[self window] setContentBorderThickness:10.0 forEdge:NSMinYEdge |
NSMaxYEdge]; // Try 10.0 just to get an effect
To my windowcontrollers awakeFromNib doesn't make any difference either.
I don't see what else is needed from my reading of the Release notes.
Any other pointers ?
> -Ken
> Cocoa Frameworks
Andrew 8-)
P.S. You can see a screenshot of the incorrect look at http://awkward.org/downloads/window_no_etching.png
DATE : Fri Nov 09 22:42:37 2007
On Nov 8, 2007, at 5:00 PM, Ken Ferry wrote:
> Hi Jesse,
>
>> You can see that right
>> below the scroll view there are two lines that form a etching of some
>> sort. From top to bottom, a dark (black?) line followed by a lighter
>> line.
>>
>> http://hogbaysoftware.com/files/leapardscreen.png
>
> Yes, there is something new here. Take a look at -[NSWindow
> contentBorderThicknessForEdge:] and friends.
>
> http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSWindow
>
I'm trying to get that look in my main window too - and unfortunately
nothing I've tried seems to work.
The window is a textured window it has a large view under the content
view which in turn contains some smaller views, a sibling to this view
is a button, a progress bar and a text field. I have approx 20-30
pixels of space above and below the large view (which contains the
other sibling views).
The large view has no 'etching' around it at all. Adding :
[[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSMinYEdge | NSMaxYEdge];
[[self window] setContentBorderThickness:10.0 forEdge:NSMinYEdge |
NSMaxYEdge]; // Try 10.0 just to get an effect
To my windowcontrollers awakeFromNib doesn't make any difference either.
I don't see what else is needed from my reading of the Release notes.
Any other pointers ?
> -Ken
> Cocoa Frameworks
Andrew 8-)
P.S. You can see a screenshot of the incorrect look at http://awkward.org/downloads/window_no_etching.png
| 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

