Verified some stuff.

This commit is contained in:
Pietro Gagliardi 2015-07-29 13:35:49 -04:00
parent fde28fefe2
commit 10eefc7a61
3 changed files with 0 additions and 6 deletions

View File

@ -37,10 +37,8 @@ static uiCombobox *finishNewCombobox(BOOL editable)
c->cb = [[NSComboBox alloc] initWithFrame:NSZeroRect];
[c->cb setUsesDataSource:NO];
[c->cb setButtonBordered:YES];
NSLog(@"TEST intercellSpacing %@", NSStringFromSize([c->cb intercellSpacing]));
[c->cb setCompletes:NO];
uiDarwinMakeSingleViewControl(uiControl(c), c->cb, YES);
NSLog(@"TEST intercellSpacing %@", NSStringFromSize([c->cb intercellSpacing]));
} else {
c->pb = [[NSPopUpButton alloc] initWithFrame:NSZeroRect pullsDown:NO];
// TODO preferred edge

View File

@ -31,12 +31,10 @@ uiProgressBar *uiNewProgressBar(void)
p = (struct progressbar *) uiNewControl(uiTypeProgressBar());
p->pi = [[NSProgressIndicator alloc] initWithFrame:NSZeroRect];
NSLog(@"TEST thread %d tint %d stopped %d", (int) [p->pi usesThreadedAnimation], [p->pi controlTint], (int) [p->pi isDisplayedWhenStopped]);
[p->pi setControlSize:NSRegularControlSize];
[p->pi setBezeled:YES];
[p->pi setStyle:NSProgressIndicatorBarStyle];
[p->pi setIndeterminate:NO];
NSLog(@"TEST thread %d tint %d stopped %d", (int) [p->pi usesThreadedAnimation], [p->pi controlTint], (int) [p->pi isDisplayedWhenStopped]);
uiDarwinMakeSingleViewControl(uiControl(p), p->pi, NO);
uiControl(p)->Handle = progressbarHandle;

View File

@ -54,7 +54,6 @@ uiSlider *uiNewSlider(intmax_t min, intmax_t max)
s = (struct slider *) uiNewControl(uiTypeSlider());
s->slider = [[NSSlider alloc] initWithFrame:NSZeroRect];
NSLog(@"NOTE thickness %f\n", [s->slider knobThickness]);
// TODO vertical is defined by wider than tall
[s->slider setMinValue:min];
[s->slider setMaxValue:max];
@ -64,7 +63,6 @@ NSLog(@"NOTE thickness %f\n", [s->slider knobThickness]);
cell = (NSSliderCell *) [s->slider cell];
[cell setSliderType:NSLinearSlider];
NSLog(@"NOTE thickness %f\n", [s->slider knobThickness]);
uiDarwinMakeSingleViewControl(uiControl(s), s->slider, NO);