gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on NSToolbar


From: Quentin Mathé
Subject: Re: Question on NSToolbar
Date: Fri, 2 Jan 2009 21:54:01 +0100

Le 2 janv. 09 à 20:26, Fred Kiefer a écrit :

Quentin Mathé wrote:
Btw, basic support for toolbar customization is available in the Toolbar branch. I'm just mentionning it in case you want to reuse it later on.
See http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/Toolbar/
This branch includes various changes to existing toolbar related files
and some new files such as GSFlow and GSToolbarCustomizationPalette.
GSFlow provides the possibility to layout subviews in a flow style, as
Mac OS X does for the toolbar items presented in the toolbar
customization palette.

Toolbar customisation sounds very interesting. What is the concept
behind flow? Is it another layout view like GSTable, GSHBox and GSVBox?

Yes, it's a NSView subclass in the same spirit. It implements a layout management policy where subviews are dynamically arranged line by line. Each time a line is filled with subviews, a new line is started and filled with the remaining subviews and so on. When the view is resized, the subviews are dynamically reflowed line by line as needed. Unlike a dynamic grid layout such as NSCollectionView (added in Mac OS 10.5), there is no underlying grid that align or snap the subviews to specific locations.

I don't know where the name flow layout really comes from, but the first time I read about it, it was the FlowLayout class in Java AWT.

I have a look at all that, as soon as I have finished my current task.

Great :-)

Cheers,
Quentin.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]