diff --git a/cocoa/dlg.m b/cocoa/dlg.m index f29448e..91dc592 100644 --- a/cocoa/dlg.m +++ b/cocoa/dlg.m @@ -93,7 +93,8 @@ - (NSInteger)runPanel:(NSSavePanel*)panel { [panel setTitle:[[NSString alloc] initWithUTF8String:self->params->title]]; } if(self->params->numext > 0) { - [panel setAllowedFileTypes:[NSArray arrayWithObjects:(NSString**)self->params->exts count:self->params->numext]]; + [panel setAllowedContentTypes:[NSArray arrayWithObjects:(NSString**)self->params->exts count:self->params->numext]]; + } if(self->params->relaxext) { [panel setAllowsOtherFileTypes:YES]; @@ -133,4 +134,4 @@ - (DlgResult)load { return DLG_OK; } -@end \ No newline at end of file +@end