bug-gnustep
[Top][All Lists]
Advanced

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

NSBrowser patch again


From: Serg Stoyan
Subject: NSBrowser patch again
Date: Tue, 1 Oct 2002 12:09:49 +0300

Hi everybody!

I'm posting patch again with minor cleanups to bug-gnustep because of
no response in gnustep-dev.

----------------------- Previous post --------------------------
 This a NSBrowser patch changes behaviour of setSeparatesColumns
 method. Here is a set of changes and rules to use:

 1. setSeparatesColumns:NO does the following:
    - removes bezel borders from scrollviews and horizontal sroller;
    - adds black vertical lines between columns and black horizontal
      line between columns and horizontal scroller;
    - draws bezel border around NSBrowser;

 2. setSeparatesColumns:NO takes effect only if setTitled:NO (or if
    isTitled returns NO). This is a behaviour of OPENSTEP's NSBrowser
    and IMHO quite reasonable;

 3. setSeparatesColumns:YES does reverse work (adds borders etc.)

 4. space between separated (bordered) columns is set to 4 point 
    (OPENSTEP);

 5. default maxVisisbleColumns is set to 3 (OPENSTEP). Also this avoids
    annoing changing number of columns, for example, from 3 to 4 when
    separation changes.

 Also attached simple test program and you can play with NSBrowser.
 For example if you want to see the work of new setSeparatesColumns:NO,
 you have to click Untitle then Unseparate (see 3.) menu items.
-----------------------------------------------------------------------

--
Serg Stoyan

Attachment: NSBrowser.m.patch.gz
Description: Binary data

Attachment: NSBrowser.test.tgz
Description: GNU Unix tar archive


reply via email to

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