NSSlider implemented. Optimizations in displaying and flushing mechanism. A bunch of memory allocation problems fixed.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2494 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ovidiu Predescu 1997-10-09 22:55:31 +00:00
parent aee90a695e
commit 9837b14866
59 changed files with 1577 additions and 5103 deletions

View file

@ -30,6 +30,11 @@
#include <AppKit/NSColorWell.h>
#include <AppKit/NSColor.h>
#define ASSIGN(a, b) \
[b retain]; \
[a release]; \
a = b;
@implementation NSColorWell
//
@ -53,11 +58,17 @@
is_bordered = YES;
is_active = NO;
the_color = [NSColor blackColor];
ASSIGN(the_color, [NSColor blackColor]);
return self;
}
- (void)dealloc
{
[the_color release];
[super dealloc];
}
//
// Drawing
//
@ -107,13 +118,13 @@
- (void)setColor:(NSColor *)color
{
the_color = color;
ASSIGN(the_color, color);
}
- (void)takeColorFrom:(id)sender
{
if ([sender respondsToSelector:@selector(color)])
the_color = [sender color];
ASSIGN(the_color, [sender color]);
}
//