]> git.saurik.com Git - wxWidgets.git/commitdiff
guess to get initial font selection working on OSX 10.3
authorRyan Norton <wxprojects@comcast.net>
Mon, 22 Nov 2004 17:18:58 +0000 (17:18 +0000)
committerRyan Norton <wxprojects@comcast.net>
Mon, 22 Nov 2004 17:18:58 +0000 (17:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/fontdlgosx.mm

index cfc88392224350056339e0d799dbc65a37be6750..baf8975be2d765ce56917715181805c0d199b8bb 100644 (file)
@@ -209,10 +209,11 @@ bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
             ];
             
         wxASSERT_MSG(theDefaultFont, wxT("Invalid default font for wxCocoaFontDialog!"));
-     
-        //set the initial font of the NSFontPanel 
-        //(the font manager calls the appropriate NSFontPanel method)
-        [[NSFontManager sharedFontManager] setSelectedFont:theDefaultFont isMultiple:NO];
+
+        //Apple docs say to call NSFontManager::setSelectedFont
+        //However, 10.3 doesn't seem to create the font panel
+        //is this is done, so create it ourselves
+        [[NSFontPanel sharedFontPanel] setPanelFont:theDefaultFont isMultiple:NO];
 
     }