mirror of
https://github.com/Airr/nim-cocoa.git
synced 2024-11-24 09:45:30 +00:00
Fixed typo for NSSaveDialog
This commit is contained in:
parent
4aa9f3d968
commit
f4a06bf928
@ -2,4 +2,4 @@
|
||||
|
||||
import NSFunctions
|
||||
|
||||
proc newSaveDialog*(parent: ID, types: cstring): cstring {.cdecl, importc: "createSaveDialog".}
|
||||
proc newSaveDialog*(parent: ID, title: cstring, types: cstring): cstring {.cdecl, importc: "createSaveDialog".}
|
@ -38,7 +38,7 @@ char* createSaveDialog(id parent, const char* title, const char* types) {
|
||||
|
||||
if ([NSApp runModalForWindow:parent] == NSFileHandlingPanelOKButton) {
|
||||
NSString* path = [[widget URL] path];
|
||||
// return strdup([path UTF8String]);
|
||||
return strdup([path UTF8String]);
|
||||
}
|
||||
return strdup([path UTF8String]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user