Fred, Please see bug #25236.
https://savannah.gnu.org/bugs/index.php?25236 The whole window does resize on Mac OS X when a toolbar is added, not the content view. I attached a test program there and added it's output in a comment to the bug. Thanks, GC Gregory Casamento -- Principal Consultant - OLC, Inc # GNUstep Chief Maintainer ________________________________ From: Fred Kiefer <fredkie...@gmx.de> To: GNUstep Developer <gnustep-dev@gnu.org> Sent: Friday, January 2, 2009 4:55:24 PM Subject: Re: Question on NSToolbar Fred Kiefer wrote: > Richard Frith-Macdonald wrote: >> On 30 Dec 2008, at 19:07, Fred Kiefer wrote: >> >>> I am currently in the process of changing the GNUstep toolbar handling >>> to work on the window decoration view instead of using a separate view >>> to integrate the toolbar. >> If you are working on that, please could you also look at drawing menus >> within windows. >> For development of an mswindows theme, it would be really good if we >> could have another NSInterfaceStyle for mswindows style menus, and in >> that case the top level menu view should obviously be placed within the >> window decoration view, so I'd imagine that doing that would have quite >> a bit in common with nstoolbar. >> > Yes, this was part of the original concept when I set out to work on > that. Currently I am still rather busy with the toolbar code itself, but > perhaps I leave that for now as it is and move on to the integration > into window decoration. > > I would expect that we always have the menu as the topmost view in the > window, then the toolbar and last the actual contents view. Currently > the toolbar increases the size of the window, when switched on. It could > as well decrease the size of the contents view. Which should we > implement in the future? > I just pushed that change out. Please give it a try. Everything related to the in window menu is still missing. What I did was move the toolbar handling from the window to the window decoration view and made that view aware of the toolbar on resizing and when doing size computations. And I changed the code to resize the content view instead of resizing the whole window. I think this is what Apple is doing and it will lead to less flickery displays. This change may break existing applications and it may not in all cases be the changes fault. Please inspect what you get carefully and report back possible improvements. I think I will have to go back to the toolbar code now and improve the drawing code a bit, to me it looks like sometimes it is drawing outside of the view. _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev
_______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev