Fixed some build and runtime errors.
This commit is contained in:
parent
eb0b1d1ab7
commit
a5a9c464bf
|
@ -121,5 +121,9 @@ static void controlUpdateState(uiControl *c)
|
|||
|
||||
uiControl *uiNewControl(uintmax_t type)
|
||||
{
|
||||
return uiControl(newTyped(type));
|
||||
uiControl *c;
|
||||
|
||||
c = uiControl(newTyped(type));
|
||||
c->Internal = uiNew(struct controlBase);
|
||||
return c;
|
||||
}
|
||||
|
|
|
@ -244,8 +244,8 @@ static uiBox *finishNewBox(BOOL vertical)
|
|||
|
||||
b->view = [[NSView alloc] initWithFrame:NSZeroRect];
|
||||
|
||||
b->children = [NSMutableArray alloc];
|
||||
b->stretchy = [NSMutableArray alloc];
|
||||
b->children = [NSMutableArray new];
|
||||
b->stretchy = [NSMutableArray new];
|
||||
|
||||
b->vertical = vertical;
|
||||
if (b->vertical) {
|
||||
|
|
|
@ -66,7 +66,7 @@ uiGroup *uiNewGroup(const char *title)
|
|||
//TODO [g->box setBorderType:TODO];
|
||||
[g->box setTransparent:NO];
|
||||
[g->box setTitlePosition:NSAtTop];
|
||||
uiDarwinSetControlFont(g->box, NSSmallControlSize);
|
||||
//TODO uiDarwinSetControlFont(g->box, NSSmallControlSize);
|
||||
|
||||
uiDarwinFinishNewControl(g, uiGroup);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ void *mapGet(NSMapTable *map, id key)
|
|||
{
|
||||
NSValue *v;
|
||||
|
||||
v = (NSValue *) [self->items objectForKey:sender];
|
||||
v = (NSValue *) [map objectForKey:key];
|
||||
return [v pointerValue];
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ struct uiWindow {
|
|||
|
||||
- (void)registerWindow:(uiWindow *)w
|
||||
{
|
||||
mapSet(self->windows w->window, w);
|
||||
mapSet(self->windows, w->window, w);
|
||||
[w->window setDelegate:self];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue