Changed to use the values from the defaults database if specified. Minor fixes to the compilation process.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ovidiu Predescu 1997-11-01 21:20:49 +00:00
parent 8b0975e122
commit 0639c42c5f
6 changed files with 32 additions and 9 deletions

View file

@ -37,6 +37,7 @@
#include <AppKit/NSColor.h>
#include <AppKit/NSScrollView.h>
#include <AppKit/NSMatrix.h>
#include <AppKit/NSTextFieldCell.h>
#define COLUMN_SEP 6
@ -342,7 +343,7 @@
_browserCellClass = classId;
// set the prototype for the new class
[self setCellPrototype: [[_browserCellClass alloc] init]];
[self setCellPrototype: [[[_browserCellClass alloc] init] autorelease]];
}
- (void)setCellPrototype:(NSCell *)aCell
@ -523,7 +524,7 @@
NSScrollView *sc;
int n = [_browserColumns count];
bc = [[NSBrowserColumn alloc] init];
bc = [[[NSBrowserColumn alloc] init] autorelease];
// Create a scrollview
sc = [[NSScrollView alloc]
@ -1001,7 +1002,8 @@
return;
// Ask delegate if selection is ok
if ([_browserDelegate respondsTo: @selector(browser:selectRow:inColumn:)])
if ([_browserDelegate respondsToSelector:
@selector(browser:selectRow:inColumn:)])
{
int row = [sender selectedRow];
shouldSelect = [_browserDelegate browser: self selectRow: row
@ -1010,8 +1012,8 @@
else
{
// Try the other method
if ([_browserDelegate
respondsTo: @selector(browser:selectCellWithString:inColumn:)])
if ([_browserDelegate respondsToSelector:
@selector(browser:selectCellWithString:inColumn:)])
{
id c = [sender selectedCell];
shouldSelect = [_browserDelegate browser: self