]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/utilscocoa.mm
freeze whole window for TLW
[wxWidgets.git] / src / osx / carbon / utilscocoa.mm
index 7604f0f277e4d067a0de4034120c7b27fcb92246..c787a15a336ae56a19b540f79feda2efa5c3e7ae 100644 (file)
@@ -194,7 +194,7 @@ void wxNativeFontInfo::OSXValidateNSFontDescriptor()
         traits |= NSFontItalicTrait;
 
     desc = [NSFontDescriptor fontDescriptorWithFontAttributes:
-        [[NSDictionary alloc] initWithObjectsAndKeys:
+        [NSDictionary dictionaryWithObjectsAndKeys:
             wxCFStringRef(m_faceName).AsNSString(), NSFontFamilyAttribute,
             [NSNumber numberWithFloat:m_pointSize], NSFontSizeAttribute,
             [NSNumber numberWithUnsignedInt:traits], NSFontSymbolicTrait,