ui/cocoa/window.m

changeset 47
97792f44d919
parent 28
794a5c91c479
child 125
3335268a8073
equal deleted inserted replaced
46:4a5e0b9b6992 47:97792f44d919
191 191
192 192
193 return obj; 193 return obj;
194 } 194 }
195 195
196 void ui_close(UiObject *obj) {
197 // TODO
198 }
199
196 char* ui_openfiledialog(UiObject *obj) { 200 char* ui_openfiledialog(UiObject *obj) {
197 NSOpenPanel* op = [NSOpenPanel openPanel]; 201 NSOpenPanel* op = [NSOpenPanel openPanel];
198 if ([op runModal] == NSOKButton) { 202 if ([op runModal] == NSOKButton) {
199 NSArray *urls = [op URLs]; 203 NSArray *urls = [op URLs];
200 NSURL *url = [urls objectAtIndex:0]; 204 NSURL *url = [urls objectAtIndex:0];

mercurial