This commit is contained in:
Twinaphex 2016-06-08 16:39:46 +02:00
parent 9e5ad14da0
commit 8088df5f09
2 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,8 @@
static bool ui_browser_window_cocoa_open(ui_browser_window_state_t *state)
{
NSOpenPanel* panel = (NSOpenPanel*)[NSOpenPanel openPanel];
NSArray *filetypes = [[NSArray alloc] initWithObjects:BOXSTRING("dylib"), BOXSTRING("Core"), nil];
NSOpenPanel* panel = (NSOpenPanel*)[NSOpenPanel openPanel];
NSArray *filetypes = [[NSArray alloc] initWithObjects:BOXSTRING(state->filters), BOXSTRING(state->filters_title), nil];
[panel setAllowedFileTypes:filetypes];
#if defined(MAC_OS_X_VERSION_10_6)
[panel setMessage:BOXSTRING(state->title)];

View File

@ -67,6 +67,7 @@ typedef struct ui_browser_window_state
{
void *window;
char *filters;
char *filters_title;
char *startdir;
char *path;
char *title;