Re: Update of Typography panel

2012-01-31 Thread Martin Wierschin
>> 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). > > I'm confused. Isn't this precisely what you said _didn

Re: Update of Typography panel

2012-01-31 Thread Kyle Sluder
On Mon, Jan 30, 2012 at 11:38 PM, Martin Huber wrote: >>> 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

Re: Update of Typography panel

2012-01-31 Thread Martin Huber
>> 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 NSTextVi

Re: Update of Typography panel

2012-01-31 Thread Martin Wierschin
> But if i set a new active font with [[NSFontManager sharedFontManager] > setSelectedFont:isMultiple:], an already opened Typography panel is not > adjusted to the features of the new font. Instead it continues to show the > features of the last font. > > How can I refresh the Typography panel

Update of Typography panel

2012-01-26 Thread Martin Huber
Hi, I am trying to support the Typography panel (available through the Fonts panel). I can get the user settings by implementing -changeAttributes: in the first responder. But if i set a new active font with [[NSFontManager sharedFontManager] setSelectedFont:isMultiple:], an already opened Typ