git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30695
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
];
wxASSERT_MSG(theDefaultFont, wxT("Invalid default font for wxCocoaFontDialog!"));
];
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];