]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/dirdlg.mm
Fix numpad Del not working in wxRTC
[wxWidgets.git] / src / osx / cocoa / dirdlg.mm
index e68bf5020b8812f8a40aef545720155ca5825691..9ab49d86ec3e12ddd5f96a504069c32924563b63 100644 (file)
@@ -99,9 +99,7 @@ int wxDirDialog::ShowModal()
     }
     if (returnCode == NSOKButton )
     {
-        wxCFStringRef resultpath( [[[oPanel filenames] objectAtIndex:0] retain] );
-        
-        SetPath( resultpath.AsString() );
+        SetPath( wxCFStringRef::AsString([[oPanel filenames] objectAtIndex:0]));
         result = wxID_OK;
     }
     return result;