Initial implementation of NSScroller.

Reinstate NSCursor and NSColorWell changes that got lost.
Utilize config.h file instead of compiler defines.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
netcrep 1997-03-05 01:11:17 +00:00
parent 6e7bcfc175
commit 1c8d394839
24 changed files with 916 additions and 144 deletions

View file

@ -34,7 +34,7 @@
//
// class variables
//
static id MB_NSBUTTON_CLASS = nil;
id gnustep_gui_nsbutton_class = nil;
//
// NSButton implementation
@ -61,12 +61,12 @@ static id MB_NSBUTTON_CLASS = nil;
//
+ (Class)cellClass
{
return MB_NSBUTTON_CLASS;
return gnustep_gui_nsbutton_class;
}
+ (void)setCellClass:(Class)classId
{
MB_NSBUTTON_CLASS = classId;
gnustep_gui_nsbutton_class = classId;
}
//
@ -86,7 +86,7 @@ static id MB_NSBUTTON_CLASS = nil;
// set our cell
[[self cell] release];
[self setCell:[[MB_NSBUTTON_CLASS alloc] init]];
[self setCell:[[gnustep_gui_nsbutton_class alloc] init]];
return self;
}