[Top][All Lists]

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

NSBrowser patch

From: Serg Stoyan
Subject: NSBrowser patch
Date: Sat, 28 Sep 2002 02:01:13 +0300

Hi everybody!

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 

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]