Setting BorderThickness moves resize widget?!?

2009-09-29 Thread Knut Lorenzen

Dear List,

please take a look at this image:
http://Knut.macdisk.de/png/2pixelsapart.png

(Picture shows my App in front of Safari before/after)

I would like to have a Statusbar in my App and I am using

[mainWindow setContentBorderThickness: 16.0 forEdge: NSMinYEdge];

and

[mainWindow setContentBorderThickness:0.0 forEdge: NSMinYEdge];

respectively, in order to switch between both.

It works fine, but the resize widget moves up 2 pixels when setting  
ContentBorderThickness.
Please also note, that the rectangular corner becomes rounded when  
setting ContentBorderThickness and restores to rectangular when  
setting ContentBorderThickness back to 0.


Cheers,

Knut

___
Dipl.-Phys. Knut Lorenzen
http://Knut.MacDisk.de




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Setting BorderThickness moves resize widget?!?

2009-09-29 Thread Quincey Morris

On Sep 29, 2009, at 14:55, Knut Lorenzen wrote:


please take a look at this image:
http://Knut.macdisk.de/png/2pixelsapart.png

(Picture shows my App in front of Safari before/after)

I would like to have a Statusbar in my App and I am using

[mainWindow setContentBorderThickness: 16.0 forEdge: NSMinYEdge];

and

[mainWindow setContentBorderThickness:0.0 forEdge: NSMinYEdge];

respectively, in order to switch between both.

It works fine, but the resize widget moves up 2 pixels when setting  
ContentBorderThickness.
Please also note, that the rectangular corner becomes rounded when  
setting ContentBorderThickness and restores to rectangular when  
setting ContentBorderThickness back to 0.


Well, you don't actually ask a question here, so I'll have to make up  
my own:


Q. Should it move away from the rounded corner?
A. Apparently.

Q. Is that a bug?
A. Apparently not.

Q. Do I want it to do that?
A. We can't help you with that one.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Setting BorderThickness moves resize widget?!?

2009-09-29 Thread Gregory Weston

Knut Lorenzen wrote:


Dear List,

please take a look at this image:
http://Knut.macdisk.de/png/2pixelsapart.png

(Picture shows my App in front of Safari before/after)

I would like to have a Statusbar in my App and I am using

[mainWindow setContentBorderThickness: 16.0 forEdge: NSMinYEdge];

and

[mainWindow setContentBorderThickness:0.0 forEdge: NSMinYEdge];

respectively, in order to switch between both.

It works fine, but the resize widget moves up 2 pixels when setting
ContentBorderThickness.
Please also note, that the rectangular corner becomes rounded when
setting ContentBorderThickness and restores to rectangular when
setting ContentBorderThickness back to 0.


This really should be promoted to the main docs somewhere, but it's in  
the release notes for AppKit in 10.5 (when this method was added).


http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKitOlderNotes.html 



The behavior of -setContentBorderThickness:forEdge:NSMinYEdge and - 
setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge for  
non-textured windows will do the following: The top gradient will be  
repeated in the bottom border, separator lines will be drawn between  
the content and the bottom border, and the bottom corner will be  
rounded.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com