ui/cocoa/toolkit.m

changeset 21
012418e7dc90
parent 15
7a36f91c22f7
child 23
decc6bf584aa
equal deleted inserted replaced
20:2dda1ad6dc7a 21:012418e7dc90
64 UiCocoaWindow *window = (UiCocoaWindow*)obj->widget; 64 UiCocoaWindow *window = (UiCocoaWindow*)obj->widget;
65 [window makeKeyAndOrderFront:nil]; 65 [window makeKeyAndOrderFront:nil];
66 } else { 66 } else {
67 printf("Error: ui_show: Object is not a Window!\n"); 67 printf("Error: ui_show: Object is not a Window!\n");
68 } 68 }
69 }
70
71 void ui_set_enabled(UIWIDGET widget, int enabled) {
72 [widget setEnabled:enabled];
69 } 73 }
70 74
71 void ui_main() { 75 void ui_main() {
72 [NSApp run]; 76 [NSApp run];
73 [pool release]; 77 [pool release];

mercurial