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]; |