>> How can I refresh the Typography panel to show the features of the active >> font? > > It's been a while since I looked at this annoying problem, but IIRC > NSTextView's "updateFontPanel" was the only method with the magic needed to > update the Typography panel. You'll have to call NSTextView's > "setTypingAttributes:" and "updateFontPanel" methods. > Thank you for your answer. I was just about to create a dummy NSTextView, when I found the (obvious) solution: I have to use [[NSFontManager sharedFontManager] setSelectedAttributes:isMultiple:]. This updates the Typography panel (at least with 10.7).
Martin _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com