]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/aboutdlg.cpp
splitted wxApp docs in wxApp+wxAppConsole docs; fix the signature of the documented...
[wxWidgets.git] / src / mac / carbon / aboutdlg.cpp
index 191598e543e318f3c8eec3e9ad8501aeec6668cb..243de8b7d7b2a1a69358fdf82a8d417ba4ca8b01 100644 (file)
 #include "wx/mac/private.h"
 
 // helper class for HIAboutBox options
-class AboutBoxOptions : public wxMacCFRefHolder<CFMutableDictionaryRef>
+class AboutBoxOptions : public wxCFRef<CFMutableDictionaryRef>
 {
 public:
-    AboutBoxOptions() : wxMacCFRefHolder<CFMutableDictionaryRef>
+    AboutBoxOptions() : wxCFRef<CFMutableDictionaryRef>
                         (
                           CFDictionaryCreateMutable
                           (
@@ -48,7 +48,7 @@ public:
 
     void Set(CFStringRef key, const wxString& value)
     {
-        CFDictionarySetValue(*this, key, wxMacCFStringHolder(value));
+        CFDictionarySetValue(*this, key, wxCFStringRef(value));
     }
 };
 
@@ -69,7 +69,10 @@ void wxAboutBox(const wxAboutDialogInfo& info)
         opts.Set(kHIAboutBoxNameKey, info.GetName());
 
         if ( info.HasVersion() )
-            opts.Set(kHIAboutBoxVersionKey, info.GetVersion());
+        {
+            opts.Set(kHIAboutBoxVersionKey,
+                     wxString::Format(_("Version %s"), info.GetVersion()));
+        }
 
         if ( info.HasCopyright() )
             opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyright());