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