X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f8d0633570c0ff2384ae413ff37f900f526b57..8028be3a32dce959242c786510e2da6910d72b56:/src/mac/carbon/fontdlgosx.mm diff --git a/src/mac/carbon/fontdlgosx.mm b/src/mac/carbon/fontdlgosx.mm index cfc8839222..d1b741372e 100644 --- a/src/mac/carbon/fontdlgosx.mm +++ b/src/mac/carbon/fontdlgosx.mm @@ -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]; } @@ -264,7 +265,7 @@ int wxFontDialog::ShowModal() // // So we set up delegates for both the color and font panels, // and the if the font panel opens the color panel, we - // stop the modal loop, and start a seperate modal loop for + // stop the modal loop, and start a separate modal loop for // the color panel until the color panel closes, switching // back to the font panel modal loop once it does close. //