diff --git a/core/sys/darwin/Foundation/NSOpenPanel.odin b/core/sys/darwin/Foundation/NSOpenPanel.odin index ac5f9674e..482347daa 100644 --- a/core/sys/darwin/Foundation/NSOpenPanel.odin +++ b/core/sys/darwin/Foundation/NSOpenPanel.odin @@ -29,3 +29,7 @@ OpenPanel_setResolvesAliases :: proc "c" (self: ^OpenPanel, setting: BOOL) { OpenPanel_setAllowsMultipleSelection :: proc "c" (self: ^OpenPanel, setting: BOOL) { msgSend(nil, self, "setAllowsMultipleSelection:", setting) } +@(objc_type=OpenPanel, objc_name="setAllowedFileTypes") +OpenPanel_setAllowedFileTypes :: proc "c" (self: ^OpenPanel, types: ^Array) { + msgSend(nil, self, "setAllowedFileTypes:", types) +}